The popular Unix/Linux command sudo for Windows - well, sort of.
The popular Unix/Linux command sudo for Windows - well, sort of.
“sudo” command (do as super-user) for Windows’ command prompt. Usually, when using a command line utility which needs elevated privileges, you’ll need to open a new instance of the command processor via the system menu. There are also tools which make this process easier, but these usually still open a new command processor window, which means you have to re-type the command (or try to copy it, which is comparable horrible) instead of just using the “up” key and adding the “sudo” command, as one does on Linux.
This little program wants to help. It works pretty much just as Linux’es sudo:
sudo <program_to_execute>
will launch
Here you go: https://github.com/hst125fan/sudo.exe/releases/latest. For better accessibility, move the executable to some location which is referenced in your PATH system variable. As this program does some stuff with elevated rights, some anti-virus programs moan about it. Don’t trust me (or the CI)? Read the source code and build it yourself … see below.
Pretty straightforward, use VS2017 Community, open the contained soulution file and compile it.
sudo sudo
will not work (obviously)