Skip to content

Wow! Windows is Coming up With its Linux Like Sudo Command

Yes! You read that right. A leak shows a sudo utility for Windows operating system.

sudo windows

Back when running Linux Apps in Windows became a reality and Systemd was made available for WSL, many users were hyped about the possibilities that could come out of such levels of interoperability.

But, that momentum kind of died down over the years. Luckily, that hype train is going to get started real soon thanks to a recent development that shows sudo being offered on Windows.

If you are not familiar, sudo is a command that effectively allows users to run programs with the security clearance of an administrator.

So, let's begin without any further ado!

Sudo on Windows: What to Expect?

a screenshot of the sudo settings on windows
Pic Credits: Windows Latest

Spotted first by Windows Latest on a leaked Windows Server preview build that was accidentally pushed to the Windows 11 Update servers last week, there was a dedicated setting called “Enable sudo” in the System settings.

As you can see above, there are three distinct options available on how sudo may run apps when you enable it on Windows. The first is to open apps in a new window; most likely a terminal window, the second one is with input disabled; possibly to prevent any unwanted actions during command execution.

And, the third one is to execute a command in the current window; without opening a new window.

a screenshot of the sudo enabling warning prompt on windows
Pic Credits: Windows Latest

If you were to choose any one of those, then a warning would pop up, saying that running sudo can expose your device and personal data to security risks or harm your device.

After enabling, you should be able to run sudo commands from PowerShell, the Command Prompt, or any other terminal emulator for Windows.

But, there's a catch. As of writing, we don't really have a concrete date as to when support for sudo will be introduced into the stable builds of Windows, and whether it will be shipped as part of the upcoming Windows 11 24H2 update or not.

Only time will tell how Microsoft intends to implement sudo into Windows, and whether it would be made available for everyone, or will be an opt-in affair.

💬 Well, I didn't expect this day to come, but, it's coming. Were you expecting this?

More from It's FOSS...