Windows doesn’t have sudo, Windows has a thing they’re calling sudo.
It’s basically
runas
, but then it pops up the UAC prompt and you have to give admin credentials 😒…runas
is much easier, you give the creds in a command line, no windows poping up, nothing, it just works.It is a bit like
pkexec
which also brings up a graphical password prompt.Exactly… which is NOT sudo.
Not only the prompt, but also the credentials screen… i mean… how stupid can you get 🤦. You can’t pass the credentials in cmd 🤣🤣🤣 and you made THIS command to be used it 🤣 🤦.
They have it! It’s OK, it’s usable, it’s called
runas
, but no, we wanna copy stuff from POSIX OSes 🤪 drrrrrrr…
Why is it not Admdo?
Because they wanna copy the cool kids. Just look at Win11 and say that’s not a KDE/GNOME ripoff… though the removal of settings thing, looks more like GNOME.
Sudo for linux skips leg day
But actually what does Sudo do? Everyone using windows just default to running everything in administrator when something is not working as intended
Sudo has an even higher authority than what an admin is in Windows. In Windows, you can’t (easily) run something as the highest authority there is, SYSTEM. In Linux, that is easily doable with sudo.
So basically, the sudo in Windows is a joke, because it just runs things as admin… and that was already doable with runas in cmd, if you provide administrator credentials of course. The trouble is, with sudo in windows, another prompt shows up, which is basically the “give admin credentials” prompt (the UAC one as well, if you don’t have that one disabled). They could have at least coded it so that it doesn’t act like pkexec and ask you for credentials in a separate prompt, but ask you for creds in the same cmd window, which is what Linux does when you type in sudo (asks you for the root password, but doesn’t open a second prompt, as expected). They could have done that, but no, they decided to complicate things. Why? Beats me, have no idea.
So, other than being not a true sudo as in POSIX OSes, it complicates things even more by adding at least one other prompt. They already had a prefectly good tool for that, runas. You just pass the creds in the same command and it runs the command with those creds, simple and elegant. But, they wanted to copy POSIX OSes and came up with a shitshow of prompts and the whole world laughing at their “sudo” which is nothing more than “run as admin”, which, as I said earlier, is nothing like what sudo is POSIX OSes.
linux users when the windows sudo replica still values user security and uses uac and doesn’t just let you make changes to core system files because you happened to know a four letter command 👿👿👿👿
A four letter command, correct privileges and a password?
UAC is no different from having a sudo password. They both have security measures. Sudo actually has fairly granular permissions if you can be bothered to set them up.
Windows still allows you to modify system files it’s just more difficult. If you want a Linux system that doesn’t let you do that those exist too, they are called immutable linux distros.
Windows does contain DRM protected files that it will not allow you to touch. Some games on the Microsoft Store for example.
Not to counter your point, just that I find it insane.
Linux and Unices assume you know what you’re doing
Windows assumes that the user has the mental prowess and knowledge of a 5 year old
Both can result in disaster, in glorious ways
hate this take. can we stop calling normal, non-techie people idiots?
it’s like saying the safety on a gun was designed for babies and makes the FOSS community look toxic as fuck.
This incident will be reported
Real gamers know the way to power on windows is though NT AUTHORITY\SYSTEM