Feature request: sudo

Thomas Wolff towo@towo.net
Thu Jan 19 21:53:59 GMT 2023


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.


More information about the Cygwin mailing list