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?
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.
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?
Here's why you should opt for It's FOSS Plus Membership
- Even the biggest players in the Linux world don't care about desktop Linux users. We do.
- We don't put content behind paywall. Your support keeps it open for everyone. Think of it like 'pay it forward'.
- Don't like ads? With the Plus membership, you get an ad-free reading experience.
- When millions of AI-generated content is being published daily, you read and learn from real human Linux users.
- It costs just $2 a month, less than the cost of your favorite burger.