• ☂️-
    link
    fedilink
    222 months ago

    no, microsoft. the linux cli tools are good but thats not the main reason why we ditched you.

  • @OsrsNeedsF2P@lemmy.ml
    link
    fedilink
    162 months ago

    Way to lazy to find a source but IIRC one of the Sudo devs said this was horrible because it’s “like Sudo” but not 1:1 so people will make assumptions about it that will lead to security issues

    (Usually idc about security but for Sudo…)

    • @breakingcups@lemmy.world
      link
      fedilink
      172 months ago

      Like that time they made their own Powershell imitation of curl? (before deciding it was an abomination and finally including stock curl, but not removing the old Powershell commandlet because of backwards compatibility so now curl and curl.exe are two different things and you’ll want the latter)

    • JackbyDev
      link
      fedilink
      English
      62 months ago

      Which is frustrating because 99% of the time people just want a way to run a command as admin without relaunching cmd as an admin.

    • Rikudou_Sage
      link
      fedilink
      122 months ago

      Hardcore Linux users would still not count it and would still wait for Linux on desktop to finally take off.

      Source: Linux has 6.73% share on desktop. Except 2.25 percent points are ChromeOS, which is not FOSS enough, so Linux only has 4.48% on desktop.

      • @Rooty@lemmy.world
        link
        fedilink
        82 months ago

        Do what Apple did - take the BSD kernel and build the userland on top of it. NT is fucked beyond repair, let it die.

        • Midnight Wolf
          link
          fedilink
          English
          52 months ago

          (in the tone of “I’d like a Pepsi” “Is Coke okay?”)

          “is Wine Beer okay?”

    • @Wispy2891@lemmy.world
      link
      fedilink
      7
      edit-2
      2 months ago

      And don’t forget the horrible practice of putting everything in ~/ because everyone loves cluttered home directories

      I tried the new Microsoft aishell on Windows 11 and the config is saved on ~\.aishell instead of %appdata%\\Microsoft\aishell

      WTF Microsoft you forgot that you’re on windows?? Can you follow the guidelines that you decided?

    • @Treczoks@lemmy.world
      link
      fedilink
      32 months ago

      Maybe one day, the Windows UI will only be one of the many Linux window managers, and the rest of Windows will just be a compatibility layer.

    • JackbyDev
      link
      fedilink
      English
      12 months ago

      I believe so, yeah. I used to have a script that would start a local Cassandra service and that’s what I had to use (because I didn’t want my live-in session of cmd to be admin 24/7.

  • @bruce965@lemmy.ml
    link
    fedilink
    3
    edit-2
    2 months ago

    FYI this has already been a thing for a long while thanks to an open source third-party implementation, and also works on Windows 10. I use it all the time, it’s very similar to Linux’s and I’ve never had any issues so far. Not sure if Microsoft’s official solution will be any different/better.

    https://github.com/gerardog/gsudo

  • It feels like a potential security nightmare. If your desktop at work is compromised and you have your domain admin come over and take a look; they might decide not to elevate the whole session, exercising appropriate caution and protocol in doing so, but just wing it with a quick sudo !! because the previous command didn’t go through.

    I don’t quite remember if this works properly, but I think !! should expand to sudo “previous command” at least in bash.

    • @spujb@lemmy.cafe
      link
      fedilink
      English
      42 months ago

      it uses the UAC flow so it’s closer to right click > run as administrator than runas, so you will be required to enter credentials in the UAC dialogue (not the terminal) unless you are using an admin account (which at any workplace taking security seriously you should not be)

      and in powershell it’s $$ to execute the previous command :)

      disclaimer: not an admin i just use these tools