delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/19/16:55:02

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9E563858430
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1674165258;
bh=Pe2PUVEFDQwWcRGgf1q5FOOZB+klK0eE6TbuDEpoeDc=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=Rlj38z2ZOWV3snx+keN9b7lrdusyH1rEmziifUTJS6mvW+0Bu9sADcAsflych1daS
KtaqMoSVW8EvRGYSY2RjYTF+uICm6k8L7/mMiIOaJhALmrzhDempJ6kTB8Uiz2W+YU
DRwlJg/u16BPHxdd8NgwNaQj3Ln91XPOLQVxDVhc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 360D03854380
Message-ID: <047d0e2f-e21a-2a8f-2bb4-e39c89762a30@towo.net>
Date: Thu, 19 Jan 2023 22:53:59 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Subject: Re: Feature request: sudo
To: cygwin AT cygwin DOT com
References: <CAF8HOZJ9U36twWekhwtrC6w7DMdvde0z3PxrP65ExZYxDLf2Xg AT mail DOT gmail DOT com>
In-Reply-To: <CAF8HOZJ9U36twWekhwtrC6w7DMdvde0z3PxrP65ExZYxDLf2Xg@mail.gmail.com>
X-Provags-ID: V03:K1:f9sPQg3xBY01+WEitMDueygWp7AfEcDCeVrtv5jRhXPlNoSEjzL
Qkqod7kS/AQx6j/sSY+MFkDlBhrcUlwg96w381Yx6Wh4gbnml3LTyH9YFV5doHhjkPtRZ91
pykc0qwJjRDMVOZy4KSKS/b/Uj3PC9gOXRjRV0DreUyvU8IXbWIkxiY/cKeAVsqog/hqXUo
HIyarRUbweRftXbpS4liw==
UI-OutboundReport: notjunk:1;M01:P0:hCO0uSPtC/U=;xT1zrSphYlaO4f5qOLN+8MEpngr
g3lMSDqP0q9xsZTEhhPkMtL/Ce+lWndh02sOPUa9i+HZff/M/pKYEnlCx9G8eFFDLxeER0U7p
CyN77a2rnor66wd0O+l9Qx3EWQePsVaRdkgvxqVC+5/sEMuQs8lJ7DECSCfmVt17yhGFGA1cY
oBEusetfsAvdqchxTw/Orc9/NjXkdFGnyJXrSPyOMahErpBOskjITLf3/HiVzubYPOWGskzdy
Pc5nb56U5l8NYzDQ5j61JaqMg/YlveDCBZM+uesASIaBBLYgLq7wvM4t3Aw/LDQKUBhegmXev
BooM9HycS7IsopLwHtzM2ynZfyazwI1gkijtEcMfdpu3L4WvN9cIi10L8tYuzYXvJHWckWHff
9twIuaIWDcoWw3juCzg4UC1i+8O/3BbjS7zCaaro3+QdUUmniMFO5FHgRBWF/n3KX33p922+A
vkC2Ldz0HxVaCiHpP8Xc1U4wOIetepiUlFuBvtT+yPgdejdlMbZS1nx7fxUU5JdFp8QgzAt9E
1nWmKogusuzpy4SjOk6ROEqI2f48cEV3nTAaoO4GMDXUWkBSlF+4j4X6a0ICit7AYZTf1ujtY
/2tzssLCUcuofUBBCKAZMdP+qHoKK+a7oENjpEEm5APlJu0X7dhHB+7xG6bqudEmGrExMs8Bu
ixJx9geiHjAWGF509BcO4BIE/+m53xWf2UYLqN/w/A==
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HTML_MESSAGE,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_MSPIKE_H2,
SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
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: Thomas Wolff via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Thomas Wolff <towo AT towo DOT net>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Am 19.01.2023 um 20:17 schrieb Jochen Wiedmann via Cygwin:
> 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
There used to be a su tool in cygwin.
See future of su 
<https://sourceware.org/pipermail/cygwin-apps/2012-May/030226.html> and 
"su" command removed / coreutils-8.23-2 
<https://sourceware.org/pipermail/cygwin/2014-September/217105.html> for 
some discussion.

-- 
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