Microsoft mentioned it is introducing Sudo for Home windows 11 as a part of an early preview model to assist customers execute instructions with administrator privileges.
„Sudo for Home windows is a brand new means for customers to run elevated instructions instantly from an unelevated console session,“ Microsoft Product Supervisor Jordi Adoumie said.
„It’s an ergonomic and acquainted resolution for customers who wish to elevate a command with out having to first open a brand new elevated console.“
Sudo, quick for superuser do, is a program for Unix-like computer operating systems that permits customers to run applications with the safety privileges of one other consumer, often a consumer with elevated permissions (e.g., administrator).
The function is obtainable for Home windows 11 builds 26045 and later. It may be enabled by heading to Settings > System > For Builders, and setting „Allow sudo“ to On.
Sudo for Home windows comes with three choices: run purposes in a brand new elevated console window, run the elevated course of within the present window however with the enter stream (stdin) closed, and in inline mode.
„The inline configuration possibility runs the elevated course of within the present window and the method is ready to obtain enter from the present console session,“ Redmond warns in its documentation.
„An unelevated course of can ship enter to the elevated course of throughout the similar console home windows or get data from the output within the present home windows on this configuration.“
Microsoft mentioned it is also within the technique of open-sourcing the undertaking on GitHub, urging different customers to contribute to the initiative in addition to report points and file function requests.