Microsoft embraces its inner penguin as sudo sneaks into Windows 11
(2024/02/08)
- Reference: 1707404409
- News link: https://www.theregister.co.uk/2024/02/08/windows_11_sudo/
- Source link:
Microsoft has accidentally announced the arrival of sudo in Windows, bringing to an end fervent industry chatter about the tool emerging in the company's flagship operating system.
According [1]to the now-deleted post , the component is due to arrive in the Canary Channel of the Windows 11 Insider program. The build number mentioned was 26052 – at the time of writing, the current public build is 26040.
Sudo (superuser do) has long been a powerful administrative tool for Unix-like operating systems. At its core, it allows one user to run programs with the security privileges of another, usually an administrator.
[2]
Windows has long had the option to Run As Administrator, yet sudo permits a little more finesse compared to firing up an elevated console session. Instead, a user can choose to elevate an individual command.
[3]
[4]
The project, which Microsoft intends to make available as open source on GitHub, can be enabled through either the Windows settings page or the command line.
Three options are available: running commands in a new, elevated console window, which works in a similar way to the existing RunAs command and, according to Microsoft, will be the default behavior. The next option is Input Closed, where the elevated process will run in the current window but won't accept any user input. The final option, which will be most familiar to users of other operating systems, is Inline, where the elevated process will be able to take input from the current window.
[5]Raspberry Pi Pico cracks BitLocker in under a minute
[6]Microsoft brings its cloudy virtual desktops on-prem to AzureStack HCI
[7]Windows 11 24H2 is coming so we can all shut up about Windows 12 for another year
[8]Mozilla slams Microsoft for using dark patterns to drive Windows users toward Edge
A UAC dialog will also pop up, asking for confirmation of the elevation.
Hints that sudo was on the way [9]turned up at the end of last month , but last night's post was the first official confirmation from Microsoft that the tool was headed into Windows 11.
[10]
Microsoft pulled the blog post shortly after publication - maybe it broke its own embargo? We can speculate about the reasons for doing so but have asked Microsoft to confirm.
Nevertheless, the sudo update will be welcomed by users familiar with its presence in Linux and macOS, even though administrators have had alternatives over the years. Microsoft called out one, [11]gsudo , which has a number of extra features and configurations over and above this upcoming implementation.
Microsoft uses its Insider program to try out features that may never make it into production code. However, if implemented well, finally introducing sudo-like functionality in Windows will quickly win over administrators. ®
Get our [12]Tech Resources
[1] https://devblogs.microsoft.com/commandline/introducing-sudo-for-windows/
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[5] https://www.theregister.com/2024/02/07/breaking_bitlocker_pi_pico/
[6] https://www.theregister.com/2024/02/06/azure_virtual_desktops_azurestack_hci/
[7] https://www.theregister.com/2024/02/02/windows_12_windows_11_24h2/
[8] https://www.theregister.com/2024/02/02/mozilla_slams_microsoft_dark_patterns/
[9] https://twitter.com/thebookisclosed/status/1750930423754952973
[10] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[11] https://github.com/gerardog/gsudo
[12] https://whitepapers.theregister.com/
According [1]to the now-deleted post , the component is due to arrive in the Canary Channel of the Windows 11 Insider program. The build number mentioned was 26052 – at the time of writing, the current public build is 26040.
Sudo (superuser do) has long been a powerful administrative tool for Unix-like operating systems. At its core, it allows one user to run programs with the security privileges of another, usually an administrator.
[2]
Windows has long had the option to Run As Administrator, yet sudo permits a little more finesse compared to firing up an elevated console session. Instead, a user can choose to elevate an individual command.
[3]
[4]
The project, which Microsoft intends to make available as open source on GitHub, can be enabled through either the Windows settings page or the command line.
Three options are available: running commands in a new, elevated console window, which works in a similar way to the existing RunAs command and, according to Microsoft, will be the default behavior. The next option is Input Closed, where the elevated process will run in the current window but won't accept any user input. The final option, which will be most familiar to users of other operating systems, is Inline, where the elevated process will be able to take input from the current window.
[5]Raspberry Pi Pico cracks BitLocker in under a minute
[6]Microsoft brings its cloudy virtual desktops on-prem to AzureStack HCI
[7]Windows 11 24H2 is coming so we can all shut up about Windows 12 for another year
[8]Mozilla slams Microsoft for using dark patterns to drive Windows users toward Edge
A UAC dialog will also pop up, asking for confirmation of the elevation.
Hints that sudo was on the way [9]turned up at the end of last month , but last night's post was the first official confirmation from Microsoft that the tool was headed into Windows 11.
[10]
Microsoft pulled the blog post shortly after publication - maybe it broke its own embargo? We can speculate about the reasons for doing so but have asked Microsoft to confirm.
Nevertheless, the sudo update will be welcomed by users familiar with its presence in Linux and macOS, even though administrators have had alternatives over the years. Microsoft called out one, [11]gsudo , which has a number of extra features and configurations over and above this upcoming implementation.
Microsoft uses its Insider program to try out features that may never make it into production code. However, if implemented well, finally introducing sudo-like functionality in Windows will quickly win over administrators. ®
Get our [12]Tech Resources
[1] https://devblogs.microsoft.com/commandline/introducing-sudo-for-windows/
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[5] https://www.theregister.com/2024/02/07/breaking_bitlocker_pi_pico/
[6] https://www.theregister.com/2024/02/06/azure_virtual_desktops_azurestack_hci/
[7] https://www.theregister.com/2024/02/02/windows_12_windows_11_24h2/
[8] https://www.theregister.com/2024/02/02/mozilla_slams_microsoft_dark_patterns/
[9] https://twitter.com/thebookisclosed/status/1750930423754952973
[10] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZcUItUQwggdJBRC2hUDmrQAAAFY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[11] https://github.com/gerardog/gsudo
[12] https://whitepapers.theregister.com/
I genuinely thought it already existed
malfeasance
Then I realised that I have it installed via scoop which resolves to this:
https://github.com/lukesampson/psutils/blob/master/sudo.ps1
Shirley...
Anonymous Coward
... the Windows version should be 'sodu'
gv
"Those who don't understand Unix are condemned to reinvent it, poorly."
Henry Spencer, in Introducing Regular Expressions (2012) by Michael Fitzgerald
Sudo
The next logical step, for true sudo should be:
sudo delete_microsoft_carp.sh
That should leave us with all Microsoft carp removed, except WSL and logon application.
Hopefully after that Microshaft will supply embedded X11 server so we could properly install a window manager of our choice.
The last step should probably be removal of NT kernel and replacement with native Linux kernel.