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: 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 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Wolff via Cygwin Reply-To: Thomas Wolff Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" 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. -- 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