SoylentNews
SoylentNews is people
https://soylentnews.org/

Title    Windows Version Of The Venerable Linux “sudo” Command Shows Up In Preview Build
Date    Wednesday February 07 2024, @10:34PM
Author    janrinok
Topic   
from the dept.
https://soylentnews.org/article.pl?sid=24/02/06/1329251

Arthur T Knackerbracket has processed the following story:

Microsoft opened its arms to Linux during the Windows 10 era, inventing an entire virtualized subsystem to allow users and developers to access a real-deal Linux command line without leaving the Windows environment. Now, it looks like Microsoft may embrace yet another Linux feature: the sudo command.

Short for "superuser do" or "substitute user do" and immortalized in nerd-leaning pop culture by an early xkcd comic, sudo is most commonly used at the command line when the user needs administrator access to the system—usually to install or update software, or to make changes to system files. Users who aren't in the sudo user group on a given system can't run the command, protecting the rest of the files on the system from being accessed or changed.

In a post on X, formerly Twitter, user @thebookisclosed found settings for a Sudo command in a preview version of Windows 11 that was posted to the experimental Canary channel in late January. WindowsLatest experimented with the setting in a build of Windows Server 2025, which currently requires Developer Mode to be enabled in the Settings app. There's a toggle to turn the sudo command on and off and a separate drop-down to tweak how the command behaves when you use it, though as of this writing the command itself doesn't actually work yet.

The sudo command is also part of the Windows Subsystem for Linux (WSL), but that version of the sudo command only covers Linux software. This one seems likely to run native Windows commands, though obviously we won't know exactly how it works before it's enabled and fully functional. Currently, users who want a sudo-like command in Windows need to rely on third-party software like gsudo to accomplish the task.

The benefit of the sudo command for Windows users—whether they're using Windows Server or otherwise—would be the ability to elevate the privilege level without having to open an entirely separate command prompt or Windows Terminal window. According to the options available in the preview build, commands run with sudo could be opened up in a new window automatically, or they could happen inline, but you'd never need to do the "right-click, run-as-administrator" dance again if you didn't want to.


Original Submission

Links

  1. "following story" - https://arstechnica.com/gadgets/2024/02/windows-version-of-the-venerable-linux-sudo-command-shows-up-in-preview-build/
  2. "by an early xkcd comic" - https://xkcd.com/149/
  3. "@thebookisclosed" - https://twitter.com/thebookisclosed/status/1750930423754952973
  4. "experimented" - https://www.windowslatest.com/2024/02/01/first-look-windows-11-is-getting-native-macos-or-linux-like-sudo-command/
  5. "third-party software like gsudo" - https://github.com/gerardog/gsudo
  6. "Original Submission" - https://soylentnews.org/submit.pl?op=viewsub&subid=62033

© Copyright 2024 - SoylentNews, All Rights Reserved

printed from SoylentNews, Windows Version Of The Venerable Linux “sudo” Command Shows Up In Preview Build on 2024-11-08 22:54:42