delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/19/14:19:00

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE3D13858C20
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1674155900;
bh=fl76lKaCuppCvTC3hp9DhsHlVFxptyPxweuS2ZczGYw=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=KasAOzjRdxylq/9Qn6l+xFuf0iN0eSkMo7twaCWypFFukdv97RfjgmcIHc4otvR0O
+XYnoPILgVEdfwnOrKSp83yYw4G5axEPNiF66ER0Qb3J/urBp0ornGYDMzF6qxQTKk
nPbde6KhVR1K+tTj53W9RnYZLBEnA7NAuu6r38C4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EDC03858C52
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=as9tqGLb9VqeZr7sas1bBwkx2IGAEdVk84aWgLnQJMw=;
b=7rLtuHXPcFfKJ6oWq4OGT8NOtQiBehT0XrxT3yIButTR1s974+zs5Mgjcm+sJSpCaO
oIOsj6TERAdmDOISRdWLn2A5WexzhatWS5Hszm1SDnFrCKnDR0NFmFVJhM6MHX9SoS1d
SFyZkKtAlXACG9SVwh4VumHYpQrj5SGSzXHLdW5P3XeeFVal7ERaM99roDOfQJzMV3lD
Nr7D/i9KYg09fwGSN/NsWfjhwKdGMoTyx0XUwrlf+ctznxEb+fdv5Gu1QQ76pU9ImOIT
Cx4I6TYHYDdYKtsVzv57Z9wHHnBcF/ZcE81V1lcue6hPUjH3c9KiD/WMBBRrXwjhV6cK
TemA==
X-Gm-Message-State: AFqh2krSrtITfnnVFpI5sfOuBIFOT1612biqjJAdsc8NtXzz96SvrmUL
uy9w8KG0+dJWV2cFAYmt4Yy1yTc0qUvAVybdIeq2joU=
X-Google-Smtp-Source: AMrXdXuwXXXvqQGWC4fCMBr085czn4gc+xB9Vlmb+OTqjHFDk4mUeJIZ0EHwFswIoIf8ZodTEjRM66QIEZx/rFMIxdY=
X-Received: by 2002:a17:903:130a:b0:192:c405:5e82 with SMTP id
iy10-20020a170903130a00b00192c4055e82mr1138417plb.9.1674155881667; Thu, 19
Jan 2023 11:18:01 -0800 (PST)
MIME-Version: 1.0
Date: Thu, 19 Jan 2023 20:17:51 +0100
Message-ID: <CAF8HOZJ9U36twWekhwtrC6w7DMdvde0z3PxrP65ExZYxDLf2Xg@mail.gmail.com>
Subject: Feature request: sudo
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_05, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jochen Wiedmann via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jochen Wiedmann <jochen DOT wiedmann AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi,

as someone who is quite used to typing

  sudo do something

I would really like to do the same in my CygWin bash.In my opinion,
this could be implemented
relatively simply, and straightforward as follows:

  - Accept an array of strings with the command, that is being
executed with administrator
    privileges.
  - Use the standard Windows API to execute some functionality with
admin privileges.
    In the current case, that functionality would be a simple exec
with the above command line.

The result would be a sudo executable without some of the configurable
features of the
Linux/Unix sudo (like execution without password,  or execution of
special command lines
without root privileges), but just the same for all practical
purposes. I think, that a lot of users
would benefit.

Thanks,

Jochen


-- 
Philosophy is useless, theology is worse. (Industrial Disease, Dire Straits)

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019