17 votes

Windows gets Linux's sudo superpower: Here's how to turn it on

14 comments

  1. [11]
    arrza
    Link
    I don't have much to add, but seeing sudo.exe in one of the screenshots made me shudder a little. Also, can MS get away with blatantly ripping off this functionality? Taking not just the concept,...

    I don't have much to add, but seeing sudo.exe in one of the screenshots made me shudder a little.

    Also, can MS get away with blatantly ripping off this functionality? Taking not just the concept, but the name as well? I understand they totally will, because the linux foundation probably has better fights to pick, it just doesn't seem right.

    7 votes
    1. [3]
      krellor
      Link Parent
      No, please, harmonize further. I don't want to remember dir on windows and ls on Linux. The number of times I've auto piloted ls into a command prompt (before power shell was a thing) has made me...

      No, please, harmonize further. I don't want to remember dir on windows and ls on Linux. The number of times I've auto piloted ls into a command prompt (before power shell was a thing) has made me appreciate when at least the basic commands just work across systems.

      31 votes
      1. [2]
        babypuncher
        (edited )
        Link Parent
        Microsoft has actually added aliases for a lot of popular *nix tools that map to their PowerShell counterparts. It's convenient. However one thing I like about PowerShell is how verbose all the...

        Microsoft has actually added aliases for a lot of popular *nix tools that map to their PowerShell counterparts. It's convenient.

        However one thing I like about PowerShell is how verbose all the command names are, as it makes understanding what a script does a lot easier without having to consult a bunch of man pages. So I would hope that they keep using verbose names with Unix-y aliases.

        11 votes
        1. krellor
          Link Parent
          I agree, I like the verbose cmdlet names when I'm writing a Windows specific automation or tool, but prefer the aliases when I'm using an interactive shell and just need to traverse a few...

          I agree, I like the verbose cmdlet names when I'm writing a Windows specific automation or tool, but prefer the aliases when I'm using an interactive shell and just need to traverse a few directories, look around, and do some bulk operations.

          2 votes
    2. donn
      Link Parent
      This is a completely new implementation that happens to use a similar name. Even if not, Sudo is not owned by the Linux Foundation, it's owned by Todd Miller who licenses it extremely liberally:...
      • This is a completely new implementation that happens to use a similar name.
      • Even if not, Sudo is not owned by the Linux Foundation, it's owned by Todd Miller who licenses it extremely liberally: https://github.com/sudo-project/sudo/blob/main/LICENSE.md
      • Even if not, It would be extremely petty and pointless
      19 votes
    3. [3]
      balooga
      Link Parent
      Reading about the ongoing CrowdStrike fallout, I have the same sinking feeling. Microsoft’s security track record has been abysmal lately. As Steve Gibson would say, what could possibly go wrong?

      Reading about the ongoing CrowdStrike fallout, I have the same sinking feeling. Microsoft’s security track record has been abysmal lately. As Steve Gibson would say, what could possibly go wrong?

      4 votes
      1. [2]
        babypuncher
        Link Parent
        How was the CrowdStrike fiasco Microsoft's fault? The bug was in CrowdStrike's kernel driver. Buggy kernel modules in Linux can just as easily cause a kernel panic, and in fact CrowdStrike's own...

        How was the CrowdStrike fiasco Microsoft's fault? The bug was in CrowdStrike's kernel driver. Buggy kernel modules in Linux can just as easily cause a kernel panic, and in fact CrowdStrike's own Linux product has done it before. It is a risk inherent with any third party code that runs in ring 0.

        16 votes
        1. balooga
          (edited )
          Link Parent
          You’re absolutely right, I shouldn’t have implied a connection between the two. All I meant was that the CrowdStrike incident demonstrated how reliant the world is on Windows systems and what can...

          You’re absolutely right, I shouldn’t have implied a connection between the two. All I meant was that the CrowdStrike incident demonstrated how reliant the world is on Windows systems and what can happen when they fail en masse. And, also, Microsoft has had a terrible security track record lately, and they’ve been lucky not to have been responsible for something on the scale. But I worry it’s only a matter of time, the way things are going.

          3 votes
  2. [3]
    agentsquirrel
    Link
    Why is this news? You can just run CMD.exe as administrator, and, like, bam, you've got admin rights. Anyone who has been admin'ing Windows boxes for any length of time knows this.

    Why is this news? You can just run CMD.exe as administrator, and, like, bam, you've got admin rights. Anyone who has been admin'ing Windows boxes for any length of time knows this.

    6 votes
    1. [2]
      Comment deleted by author
      Link Parent
      1. conception
        Link Parent
        Too, in theory, you can limit what is sudo’d versus an open admin command prompt.

        Too, in theory, you can limit what is sudo’d versus an open admin command prompt.

        2 votes
    2. jackson
      Link Parent
      you can also use su on linux to achieve the same effect but people often choose to use sudo instead

      you can also use su on linux to achieve the same effect but people often choose to use sudo instead

      2 votes