back to article Microsoft embraces its inner penguin as sudo sneaks into Windows 11

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 to the now-deleted post, the component is due to arrive in the Canary Channel of the Windows 11 Insider program. The build number …

  1. elsergiovolador Silver badge

    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.

    1. MrDamage

      Re: Sudo

      Bob was a dog, not a fish.

    2. A Non e-mouse Silver badge
      Meh

      Re: Sudo

      Hopefully after that Microshaft will supply embedded X11 server

      Wayland, surely...?

      1. bombastic bob Silver badge
        Unhappy

        Re: Sudo

        DID YOU ACTUALLY SAY 'WAYLAND'?

        No. Just No.

      2. dns53

        Re: Sudo

        Microsoft is already doing this https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps

    3. katrinab Silver badge
      Trollface

      Re: Sudo

      sudo Remove-WindowsInstallation -Force -Confirm:$false -AcceptAll -AutoReboot

  2. malfeasance

    I genuinely thought it already existed

    Then I realised that I have it installed via scoop which resolves to this:

    https://github.com/lukesampson/psutils/blob/master/sudo.ps1

  3. Anonymous Coward
    Anonymous Coward

    Shirley...

    ... the Windows version should be 'sodu'

    1. Someone Else Silver badge

      Re: Shirley...

      "sodudu"?

      1. cookieMonster

        Re: Shirley...

        sudo runas sodudu

  4. gv

    "Those who don't understand Unix are condemned to reinvent it, poorly."

    Henry Spencer, in Introducing Regular Expressions (2012) by Michael Fitzgerald

    1. Charlie Clark Silver badge
      Coat

      Let me know when the Linux lot gives up on the reinventing it poorly bit.

      Mine's the one with 101 Things to Hate About Linux (2003 edition) by I M Grumpy.

    2. bazza Silver badge

      Rather wondering how that saying should be restated, for a *nix that's busily swinging over to re-inventing more and more of Windows (a SystemD ref, just in case it's needed)...

      Should anyone wish to contribute such a restatement, perhaps it's best expressed as the regular expression required to ammend the old to the new.

    3. jilocasin
      Happy

      The UNIX Hater's Handbook.

      Don't forget the Unix Hater's Handbook. That oldie but goodie.

      Repository of history, bewilderment, and humor.

  5. Charlie Clark Silver badge

    Not so keen on permission escalation

    I prefer to run admin shells when necessary.

  6. theOtherJT Silver badge

    Good... I guess...

    ...but I have to wonder why now? What are they up to that this extremely obvious addition has finally made the cut after, what, three decades?

    Says a lot about how I've come to view Microsoft that I view even what appears to be on the face of it good news with abject suspicion.

    1. cookieMonster
      Thumb Up

      Re: Good... I guess...

      Probably because you weren’t born last week

    2. doublelayer Silver badge

      Re: Good... I guess...

      I don't know. I've seen and participated in many arguments with other Linux users who think sudo is a bad idea and it should only be su. I disagree with that, but it's not just one person who thinks that. That's effectively what Windows had before, and it was pretty easy for a program that needed administrator to ask to elevate itself, effectively allowing them to act like there was a sudo option. Maybe Microsoft thought that was enough for a while, and while I prefer the functionality that sudo provides, it's not a necessity.

  7. Someone Else Silver badge

    Just sudo?

    Why don't they simply implement a proper bash shell (that includes sudo, of course), and take that Warm, Steaming Heap that they laughingly (and smugly) refer to as "power shell" out back and shoot it?

    1. doublelayer Silver badge

      Re: Just sudo?

      Lots of people have implemented bash for Windows. It's not hard to use one of those. Of course, bash doesn't include sudo, it runs the sudo you already have, so you'd need someone to make sudo for Windows. Fortunately, Microsoft appear to have done that, so if they implemented it as a program and not a shell command, bash for Windows can use sudo too.

      As for PowerShell, I don't like it very much, but I can't pretend that bash is somehow perfect. Its peculiarities are mostly just things that I've had more experience getting around. PowerShell, while ugly, has more support for handling complex data types and objects that can be treated as objects instead of serializing and deserializing them in turns so you can pass them around. Sometimes, this can be helpful.

    2. bombastic bob Silver badge
      Devil

      Re: Just sudo?

      I have often considered that the BEST kind of windows would be an MS desktop running on Linux or one of the BSD's, much like Apple with OSX

      WIthin this you would only need a native X11 server (one that supports 'DISPLAY' and remote clients, of course) in addition to the Win32 API as a layer to the kernel AND for regular Win32 programs.

      In effect, an MS-blessed version of WINE.

      1. doublelayer Silver badge

        Re: Just sudo?

        That is not what Mac OS is. There's some stuff in there that is from BSD, but the kernel is not the same, the APIs are not the same, the system services are not the same. The differences between Mac OS and BSD are far more than a desktop and a set of APIs.

    3. BPontius

      Re: Just sudo?

      Why does Windows need to be like Linux? Use the Linux WSL in Windows, dual boot Linux and Windows or move to Linux and bash away!

  8. Anonymous Coward
    Anonymous Coward

    Undows or Windix?

    That's all.

  9. IvyKing
    Flame

    What's with sudo being a Linux innovation??

    According to the sudo website, sudo was originally implemented on a BSD 4.1 installation in 1980. That means M$ is embracing its inner Oskie Bear (Cal mascot) or inner Daemon or maybe inner Holy Hubert.

  10. trindflo Silver badge

    Will the new sudo still disconnect mapped drives?

    One of the annoying things that happens with elevated command prompts in Windows is that it sort-of disconnects all your mapped drives within the elevated sessions. I believe RunAs does the same thing. There is a registry setting to defeat it, but it is still annoying anyway you flavor it.

  11. Anonymous Coward
    Linux

    Microsoft sudo fervent industry chatter?

    Where .. when .. unless you're easily excited by a Linux emulator running as a VM under the native OS. What is the point of "Windows Subsystem for Linux".

  12. G2

    Sysinternals PsExec ?

    Windows has had a 'sudo' command for years now, it's part of the Sysinternals Suite and is called psexec (or psexec64 - for x64 systems).

    This new sudo probably means Microsoft is starting now to integrate (or...*cough* embrace, extend, extinguish?) the Sysinternals functions / tools into the baseline windows installation?

    i've been using psexec quite nicely to run cmd.exe as SYSTEM account for years: "psexec64 -sdi cmd.exe" and up pops a terminal window that can run anything with superuser rights (SYSTEM).

    It can also run things as other user accounts when appropriate parameters are provided.

  13. Zippy´s Sausage Factory

    Windows is slowly moving to be a Unix clone, it seems. Which is nice.

  14. Jon 66
    Coat

    Now I can get a sandwich

    https://xkcd.com/149/

  15. ldo

    Hands Up Those Who ...

    ... type “sudo su”.

    Come on, I’ve seen you.

    1. cob2018

      Re: Hands Up Those Who ...

      Umm ...... no.

      The correct form ( for me, at least ) is "sudo su -"

  16. Peter Black

    Switch user

    That’s it. Do.

  17. FirstTangoInParis Silver badge
    Linux

    Next will be GRUB

    Come on, Microsoft, you know you want to!

  18. martinusher Silver badge

    They'll get there -- eventually

    If you need Linux like functionality on Windows then there's always been Cygwin. The neat thing about this package is that the shell commands also works from the Windows command line (although you'd normally be working inside bash if you're running shell commands or scripts).

    Cygwin is likely the reason why Microsoft started adding their pseudo-Linux to Windows. As such its a true "embrace, extend, extinguish" addition because its sufficiently genuine to look like the real thing but it really isn't. I was surprised at what it couldn't do, it gave me the impression that its primary purpose was to hold the line, to keep people corralled in Windows while those proprietary tweaks are gradually added. (That's the trick to Powershell -- its almost like Bash but not at all like it at the same time so while you can take Bash scripts and run them under Cygwin you can't do anything with Powershiell outside of a Windows environment.)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like