microsoft / sudo

It's sudo, for Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why i can't use command `sudo rm -rf "C:\"`

8MiYile opened this issue · comments

because not have rm command
or i'm not update my windows?

(It's just a joke, the joke comes from the following picture)
image

Because it's still not linux / unix ? . It's just an elevation command for windows.

Because it's still not linux / unix ?

that's a bug with windows then

Because it's still not linux / unix ? . It's just an elevation command for windows.

Agree. The sudo command is just an elevation command, prompting for the highest privileges in Windows.
The sudo is just asking for UAC for further permissions, but does not replace the rem and rd commands in Windows.

Oh, and, by the way, please don't run this command inside your work machine:

sudo rd C:\ /s /q

I won't take any responsibility for your losing files in C:\ after doing that.

So as the poster mentioned it is just a joke, so this issue can be closed

An elevated operation isn't necessary to be executed with the highest privilege.
On Windows you are still executing the command under the current user, except it's elevated. So you are only able to do what a normal admin user is permitted.
The user that has the highest privilege is TrustedInstallers, if you really want to do things like removing all files in the system directory, you would need to run the elevated command as TrustedInstallers.

An elevated operation isn't necessary to be executed with the highest privilege. On Windows you are still executing the command under the current user, except it's elevated. So you are only able to do what a normal admin user is permitted. The user that has the highest privilege is TrustedInstaller, if you really want to do things like removing all files in the system directory, you would need to run the elevated command as TrustedInstaller.

Yeah true. Hope this sudo thing won't be implemented into Windows Server 2025 or Windows 11 Pro for Workstation (or higher privileges in Active Directory/Workspace/Workgroup). It only raises even more problems with security in Windows.

The sudo command must be done by a third party, the one won't force the user to have this by the default of the operating system installation, with full source code and full responsibility.

is anyone going to fix this

is anyone going to fix this

Fix what?

windows not being unix