From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by sourceware.org (Postfix) with ESMTPS id 360D03854380 for ; Thu, 19 Jan 2023 21:53:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 360D03854380 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo.net Received: from [192.168.178.72] ([91.65.247.133]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N2mS2-1oZQ7S3VdM-0137Fj for ; Thu, 19 Jan 2023 22:53:54 +0100 Content-Type: multipart/alternative; boundary="------------jK6YW80BjthSYh8Yr02wXNer" 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@cygwin.com References: From: Thomas Wolff In-Reply-To: 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 List-Id: This is a multi-part message in MIME format. --------------jK6YW80BjthSYh8Yr02wXNer Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 and "su" command removed / coreutils-8.23-2 for some discussion. --------------jK6YW80BjthSYh8Yr02wXNer--