Windows 11 will soon have a built-in sudo command designed for developers. Sudo, short for “superuser do,” is widely used on Unix-based operating systems such as Linux and macOS to run programs with higher security privileges or as another user. It is useful for developers who want to test scripts, for example.
Microsoft is using sudo within Windows to allow developers to run elevated tools directly from a non-elevated console session. “It is an ergonomic and familiar solution for users who want to raise a command without having to first open a new elevated console.” explains Jordi AdoumieMicrosoft product manager.
Sudo is being tested as part of the latest Canary version of Windows 11 today, so it won’t be available for regular versions of Windows 11 until later this year. Microsoft will allow the sudo command to be configured in three modes: a new window, with input disabled, and online. The mode most similar to Linux sudo is inline, while the other modes lock things down more.
“Over the next few months we will be working to expand the Sudo for Windows documentation and share more details about the security implications of running Sudo in the ‘Inline’ configuration,” says Adoumie.
Microsoft is also making open source for this. sudo project on GitHuband plans to share more about plans for sudo in the coming months.