>The answer isn't to use a different name; the answer is to actually support most of the sudo interface.
The answer is to do either.
i.e. the complaint about using the name while offering a different, incompatible interface is valid.
Re:Sudo for Windows
by JoshTriplett on Thursday February 08, 2024 @09:57PM
(#39310861)
Yes, I agree.
I do think it was correct to use the name, though, which means they should be more compatible.
The fact that doas has far fewer users, and examples everywhere show `sudo xyz` as the way to run xyz as root, shows that people do not adapt to a different name.
Microsoft has been trying, for years, to get developers to use Windows systems. This is another good step towards doing so.
The answer isn't to use a different name; the answer is to actually support most of the sudo interface.
But that said, there's a subset of the sudo interface that would cover the majority of what most people need on a regular basis:
-H (change home directory)
-i (act like a login shell, which may not be meaningful on Windows but could at least be ignored for compatibility)
-E (preserve the environment)
-u (set the user to something other than root)
-g (set the group)
-s (just run a shell)