Sudo for Windows (2024)

github.com

63 points by luispa 7 hours ago


petterroea - 2 hours ago

sudo makes sense as a name, but it is worth noting that it hurts the original projects.

Famously, the curl project receives tonnes of issues and support requests from people who run `curl` in PowerShell, not knowing it is an alias meant for convenience instead of the actual curl command[1].

Sudo for windows is already relatively old and doesn't seem to have been adopted much, but my prediction is that adoption would mean people would complain on forums that commands they found on the internet don't work. "Why wouldnt it? I have sudo?". Then people will have to explain to them that "No you do not have sudo, you have the windows version of sudo, which is not real sudo" and it will confuse.

When it comes to tools, I strongly believe naming things similarly to concepts the user already knows is a disservice to the user. This isn't UX for your mom and pop, it is a tool to perform a job, and learners get confused when suddenly the same thing isn't actually the same thing at all. It is mislearning, and I would argue almost anyone who does mentoring has seen this in action.

[1]: https://daniel.haxx.se/blog/2016/08/19/removing-the-powershe...

RajT88 - 2 hours ago

Do you want to allow the following program from an unknown publisher to make changes to this computer?

Program Name: Sudo.exe

Publisher: Unknown

File Origin: Downloaded from the Internet

twelvedogs - 23 minutes ago

Unless this is improved greatly from the last time I used it is pointless, any command you would use it for instead requires you to right click, open as administrator a command prompt to get the expected result

overflowy - 4 hours ago

We had https://github.com/gerardog/gsudo long before this came out.

gnabgib - 7 hours ago

(2024) At the time (587 points, 423 comments) https://news.ycombinator.com/item?id=39305452

userbinator - 2 hours ago

I'm surprised they didn't call it Run-AsAdministrator or some other awkward Microsoft-ism.

onemoresoop - 2 hours ago

Lipstick on a pig, Windows is turning into a botched version of linux.

G_o_D - 2 hours ago

https://m.majorgeeks.com/files/details/nsudo.html Been using it to run my cleanup or uninstaller utilities as SYSTEM/TRUSTED INSTALLER, so stubborn in use files that are not easily deletable not even with lockhunter or unlock file utilities that ultimately fallback to delete on next reboot.

With nsudo its fizz

9dev - an hour ago

Funny that this pops up when Linux at the same time is moving on to something better than sudo.

archargelod - 2 hours ago

> Everything about permissions and the command line experience is different between Windows and Linux. ... certain elements of the traditional sudo experience are not present in Sudo for Windows, and vice versa. Scripts and documentation that are written for sudo may not be able to be used directly with Sudo for Windows without some modification.

Then why is it named `sudo`? Just to create confusion?

Also, something like sudo is clearly not possible on modern Windows, because Microsoft thinks it owns your computer and won't allow Admins to do certain things.

paweladamczuk - 2 hours ago

The embracing continues

DeathArrow - an hour ago

What's wrong with good old runas command?

- an hour ago
[deleted]
ButlerianJihad - 19 minutes ago

Sandwich https://xkcd.com/149/

SugarReflex - 3 hours ago

sudon't

- 2 hours ago
[deleted]
- an hour ago
[deleted]