Microsoft is bringing Linux’s sudo command to Windows 11

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 like Linux and macOS to run programs with higher security privileges or as another user. This is useful for developers wanting to test scripts, for example.

Microsoft uses sudo in Windows to allow developers to run elevated tools directly from a non-elevated console session. “This is an ergonomic and familiar solution for users who want to elevate a control without having to first open a new raised console.” explains Jordi Adoumieproduct manager at Microsoft.

Sudo can be controlled in Developer Settings in a future version of Windows 11.
Image: Microsoft

Sudo is being tested as part of the latest Canary version of Windows 11 today, so it won't be available on standard 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 inline. The mode most similar to Linux's sudo is inline, while the other modes lock things down more.

“Over the coming months, we will work on expanding the documentation for Sudo for Windows and share more details on the security implications of running sudo in the 'Inline' configuration,” says Adoumie.

Microsoft also offers this system as open source sudo project on GitHuband plans to share more about sudo's projects in the coming months.

Source link

Scroll to Top