20 comments

  • petterroea2 days ago
    sudo makes sense as a name, but it is worth noting that it hurts the original projects.<p>Famously, the curl project receives tonnes of issues and support requests from people who run `curl` in PowerShell, not knowing it is an alias meant for convenience instead of the actual curl command[1].<p>Sudo for windows is already relatively old and doesn&#x27;t seem to have been adopted much, but my prediction is that adoption would mean people would complain on forums that commands they found on the internet don&#x27;t work. &quot;Why wouldnt it? I have sudo?&quot;. Then people will have to explain to them that &quot;No you do not have sudo, you have the windows version of sudo, which is not real sudo&quot; and it will confuse.<p>When it comes to tools, I strongly believe naming things similarly to concepts the user already knows is a disservice to the user. This isn&#x27;t UX for your mom and pop, it is a tool to perform a job, and learners get confused when suddenly the same thing isn&#x27;t actually the same thing at all. It is mislearning, and I would argue almost anyone who does mentoring has seen this in action.<p>[1]: <a href="https:&#x2F;&#x2F;daniel.haxx.se&#x2F;blog&#x2F;2016&#x2F;08&#x2F;19&#x2F;removing-the-powershell-curl-alias&#x2F;" rel="nofollow">https:&#x2F;&#x2F;daniel.haxx.se&#x2F;blog&#x2F;2016&#x2F;08&#x2F;19&#x2F;removing-the-powershe...</a>
    • steve19772 days ago
      &gt; sudo makes sense as a name<p>It doesn&#x27;t though. There is no concept of a singular superuser like there is on UNIX. On Windows you have Administrator, but that is a role that can be assigned to any user.<p>And Administrators do not have full power, that would be the SYSTEM user. Which you cannot switch to with Sudo for Windows however - but you can with the runas tool, which has been around for decades.
      • vbezhenar2 days ago
        Minor nitpick, but there&#x27;s not necessarily a single super user in UNIX. You can create multiple users with uid=0 and they all will be super users.
        • ButlerianJihad2 days ago
          But they all have the same UID, and are technically &quot;the same user&quot;, even if you foolishly confer disparate usernames and passwords on them. When the system reverse-maps their UID it will display &quot;root&quot; because there is, ultimately, only one superuser on Unix.<p>The situation is the same for any userid and any groupid. If you try creating three ordinary users with a UID of 3005, they will be, essentially, the same user. There is no way at the system level to differentiate them, after they have authenticated. Because their files and processes are owned by the same UID.<p>This sharing of UIDs is generally discouraged and quite undesirable. It makes systems administration a real mess.
          • man8alexd1 day ago
            There is an old practice of having an alternative `toor` user with UID=0, with a different shell and password, in case someone screws the primary `root` account. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Toor_(Unix)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Toor_(Unix)</a>
        • steve19772 days ago
          See sibling reply. The uid is what defines the user, the name is just a convenient alias.
          • vbezhenar2 days ago
            Not really. You can have separate users with separate $HOME, separate passwords, separate groups, separate everything.<p>User is user. Uid is uid. It&#x27;s not the same. Uid is used for file permissions, that&#x27;s true.
            • ButlerianJihad2 days ago
              If you try and set up &quot;separate users&quot; with &quot;separate $HOME&quot; that map to the same UID, all those &quot;users&quot; will &quot;own&quot; all those same files, and all processes started by one another. They would be able to kill processes, delete&#x2F;modify&#x2F;add files, impersonate one another. Because <i>they are the same user</i>.<p>You would be unable to enforce quotas or privacy for any of them. Whatever they did on the system would be indistinguishable, because their process UIDs would be identical. Any files they created would be owned the same. Sure, set them up with unique lists of GIDs; it really doesn&#x27;t matter in the end.<p>I have no idea what you mean &quot;User is user&quot;, but you are right: UID is not the same as a username. The username exists only in the passwd(5) database, and not in the kernel, like at all. The kernel has no idea what usernames are, and that&#x27;s why they&#x27;re irrelevant to user administration.
      • tracker11 day ago
        Niggle: &quot;su&quot; from &quot;sudo&quot; is for substitute&#x2F;switch user in the su command, not &quot;super&quot; at all. By default the user being switched to in su is root&#x2F;uid:0.<p>There&#x27;s no such thing as &quot;Super User&quot; in context usage.
        • steve19771 day ago
          The historical and original meaning was superuser do and superuser is absolutely a thing in UNIX.<p>See here from the guy who invented it:<p><a href="https:&#x2F;&#x2F;hackaday.com&#x2F;2014&#x2F;05&#x2F;28&#x2F;interview-inventing-the-unix-sudo-command&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hackaday.com&#x2F;2014&#x2F;05&#x2F;28&#x2F;interview-inventing-the-unix...</a><p>and here<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LaAwl3HN5ds" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LaAwl3HN5ds</a> (from around 4:30 minutes... &quot;do a superuser thing&quot;)<p>Also the &quot;su&quot; command originally stood for &quot;superuser&quot;:<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20220317213155&#x2F;https:&#x2F;&#x2F;www.bell-labs.com&#x2F;usr&#x2F;dmr&#x2F;www&#x2F;man13.pdf" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20220317213155&#x2F;https:&#x2F;&#x2F;www.bell-...</a> (UNIX manual from 1971)<p>&quot;su allows one to become the super—user, who has all sorts of marvelous powers&quot;
    • boomlinde2 days ago
      Hopefully these aliases will be renamed to &quot;Copilot-Sudo&quot; and &quot;Copilot-Curl&quot; soon enough.
      • eddythompson802 days ago
        Uh clearly you don&#x27;t PowerShell enough. It should be `Invoke-CopilotSudo`
      • dainank2 days ago
        Maybe `wudo`? Windows Sudo!
        • al_borland2 days ago
          If sudo stands for “superuser do”, and on Windows they call this user an “Administrator”. It stands to reason they should call it `audo`.<p>Though this would be confusing, as people would pronounce it like “adieu”, which would make it sound like an alias for `logoff`.
          • NekkoDroid2 days ago
            &gt; It stands to reason they should call it `audo`.<p>&quot;Administrator&quot; doesn&#x27;t contain a &quot;u&quot;. `addo`&#x2F;`ado` both would make more sense and flows better off the tongue.
            • amenhotep1 day ago
              And once the initial install of something was complete, you&#x27;d then be able to run it with no further ado :D
            • al_borland2 days ago
              SuperUser DO<p>Administrator User DO
        • miroljub2 days ago
          Or &#x27;mudo&#x27;, Microsoft sudo.<p>With the added benefit of having appropriate meaning in some slavic languages.
          • leeman20161 day ago
            How about ms-sudo&#x2F;mssudo and ms-curl&#x2F;mscurl
            • freedomben18 hours ago
              I like the name MS-DOS. MicroSoft DO Superuser
    • Pay082 days ago
      &gt; Famously, the curl project receives tonnes of issues and support requests from people who run `curl` in PowerShell, not knowing it is an alias meant for convenience instead of the actual curl command[1].<p>Well, that explains a lot of the issues I was running into a few weeks ago...
    • pletnes2 days ago
      The curl alias in powershell is not compatible so it is an inconvenience. Must be one of the worst decisions to make it into windows, which is saying a lot.
      • NekkoDroid2 days ago
        The worst part is that Windows does ship cURL as a binary at `C:\Windows\System32\curl.exe` (may be dependent on some optional feature, dunno). Nowadays it does invoke this for me on my system, but I don&#x27;t remember if I did something for this to be the case.
      • al_borland2 days ago
        Most of the aliases are for convenience when working in an interactive shell, which will generally be dealing with more basic functions of a command. For scripting it is best practice to use the full commandlet names.
        • pletnes1 day ago
          Browsers let me copy-paste curl commands from developer tools. These don’t work with windows «curl».<p>I know a few flags of curl too. These also don’t generally work with «curl».
          • naikrovek1 day ago
            So type “curl.exe” instead of “curl” or remove the alias in PowerShell.
            • pletnes1 day ago
              I just avoid windows whenever I can.
    • 17186274401 day ago
      There is more than one sudo implementation though and the configuration can be already different. Also I don&#x27;t think you accidentally forget whether you are in a POSIX or a CMD shell.
    • fainpul2 days ago
      If you&#x27;re on Windows, run this once:<p><pre><code> &#x27;Remove-Alias curl, wget&#x27; &gt;&gt; $PROFILE </code></pre> Now please stop whining about these stupid aliases.
      • petterroea1 day ago
        This feels like a very dishonest take because the problem being discussed is clearly beginners being confused. How does your solution scale to the problem at hand?
        • fainpul1 day ago
          Of course it doesn&#x27;t help if a beginner doesn&#x27;t understand why their curl command fails. I wrote this half in jest, because everytime PowerShell comes up, people like to Bash it for its stupid aliases on Windows. Yes these aliases are really stupid, but if you are using PS on Linux, it&#x27;s not an issue and if you are on Windows, you just remove those aliases and continue living your life.<p>Some examples from this discussion:<p>&gt; The curl alias in powershell is not compatible so it is an inconvenience.<p>&gt; *nix fanboys were totes fine with wget and ls being an aliases in PowerShell for years but when they found out what PS is coming to Linux they made a biggest stink.<p>&gt; Only the old powershell.exe builtin to Windows has these aliases and it’s worse today because curl.exe is builtin and the curl alias takes priority when you run just curl.<p>&gt; It&#x27;s wget for Windows all over again<p>&gt; Ah yes, the &#x27;curl&#x27; alias in powershell, vs the &#x27;curl.exe&#x27; binary that uses the traditional options.
          • tracker11 day ago
            And thus, I mostly use git&#x27;s msys bash in my work Windows machine(s).
    • pjmlp1 day ago
      &gt; Sudo for windows is already relatively old and doesn&#x27;t seem to have been adopted much,...<p>Because probably this was pushed due to meet some OKRs (&quot;made an impact&quot;).<p>It adds nothing over runas, other than being a known name to folks educated in UNIX.<p>Which is hardly of any benefit, given that Windows is not UNIX.
      • tjarjoura1 day ago
        It seems like this adds much tighter integration between the caller and callee processes used named pipes and RPC communication, such as being able to share input&#x2F;output streams within the same terminal session, which is a significant value add compared to runas.exe.
    • tpoacher2 days ago
      Indeed. This is the &quot;Embrace&quot; stage.
    • petterroea2 days ago
      I, for one, have had to explain to Juniors multiple times that WSL isn&#x27;t Linux, and why it&#x27;s no replacement for Linux. Happens almost every time they try to do anything more advanced than a WSL hello world, and it inevitably fails.<p>I still let them try, because it beats me having to check &quot;is wsl good now&quot;, and they learn much better from personal experience than someone more senior who uses arch btw just telling them &quot;don&#x27;t use windows&quot;
      • StableAlkyne2 days ago
        Interesting, I&#x27;ve been using it with zero issues (including performance) for several years now. Compiled stuff, ran scientific calculations, trained neural nets with GPU passthrough, even switched over a workload from an old Red hat box to WSL Alma.<p>Only weirdness has been systemd can sometimes be quirky, and GUI stuff can be glitchy (which doesn&#x27;t affect me much, because 99% of what I do is in the terminal)<p>So, anecdotally it is perfectly adequate for workloads beyond a Hello World. What issues are you running into?
        • petterroea2 days ago
          Mostly its related to filesystem and permissions. Interface between windows and Linux, and mismatch in how the two work.<p>Compute etc is fine!
          • tracker11 day ago
            &#x2F;mnt&#x2F;c etc from within WSL, and access to Linux FS paths are effectively a plan-9 file share service... Beyond this, if you use Docker Desktop (or similar) with volumes on the host OS (Windows or Mac) it&#x27;s a weird FS sync between the host and container environment)... if you do volumes in WSL2 inside a Linux&#x2F;WSL environjment it works fine (normally).<p>Permissions between Windows and Unix are always (generally) a mismatch, as is the nature of OS differences.
          • yread2 days ago
            Yeah its best to avoid using the windows filesystem for anything else but a source of cp -r
          • pjmlp1 day ago
            Hardly any different from mounting UNIX filesystems that don&#x27;t obey exactly the same semantics.
      • bezier-curve2 days ago
        WSL1 is not Linux because it is mapping system calls from the Linux kernel ABI to NT. That sounds like what you&#x27;re describing. WSL2 is a Microsoft distro running in a VM that integrates into Windows.<p>I use WSL2 every day and it has some annoying quirks with how their Wayland implementation behaves with DWM, but otherwise it&#x27;s just a Linux environment.
        • sterlind1 day ago
          WSL2 isn&#x27;t exactly a distro. there&#x27;s CBL-Mariner, which <i>is</i> a distro used for utility&#x2F;plumbing, but it&#x27;s pretty hidden internally. WSL2 is mostly:<p>1) a lightly-patched Linux kernel<p>2) a bunch of esoteric bridge stuff, namely:<p>2A) 9P for mounting the Windows filesystem on Linux and vice-versa,<p>2B) a Wayland server implemented via RDP(?!)<p>2C) Hyper-V NICs, dynamic memory and other VM integrations.<p>2D) even weirder esoterica like whatever magic lets CUDA work (and... directx? for reasons??)<p>but there&#x27;s no canonical (pun intended) userspace. there are many Linux distros available; adapting a distro is usually pretty easy. for example, NixOS-WSL is lightweight and works quite well.<p>philosophically, WSL2 is a VM, but it&#x27;s not an emulator, if that makes sense. there&#x27;s a kind of convergence between OS and VM that&#x27;s been going on for a decade and WSL2 has been riding that wave.<p>(disclaimer: I work for MS but not on Windows or WSL. I just think the arch is neat.)
      • pjc501 day ago
        $ uname -a Linux MYPC 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU&#x2F;Linux<p>Dunno, looks pretty Linux to me.<p>(WSL1 did suck badly because it combined the limitations of NT - slow file ops and process spawn - with the limitations of a compatibility layer. WSL2 is good enough for compatibility testing work on e.g. dotnet)
        • petterroea15 hours ago
          It&#x27;s still running with windows as a host, and I&#x27;ve been met with friction and weird quirks in the interaction between them every time I have tried to use it myself, or watched someone else do so.
      • pjmlp1 day ago
        WSL 2.0 is literally a Linux VM running on top of Hyper-V, hardly any different of running a VM on a cloud vendor.<p>Nowadays WSL implies version 2.0, who is still using the half done implementation of WSL 1.0?<p>Or using Virtual Box, VMWare Workstation, QEMU,...
      • tjarjoura1 day ago
        As someone who develops for both Windows and Linux I find WSL to be very useful. Much better than my previous method of dual booting Linux and Windows. I&#x27;ve yet to run into a problem that I needed to boot into native Linux for.
      • tracker11 day ago
        WSLv2 is indeed Linux... kernel and all... it&#x27;s running in effectively a transparent VM with some utilities to aid in auto-mounting windows drives for access. WSLv1 used a translation layer (akin to WINE) to translate linux calls to windows calls. but WSL2 is indeed Linux.
      • DeathArrow2 days ago
        Actually, WSL is pretty good for development. Of course, I wouldn&#x27;t use WSL to run server software.
      • mastermage1 day ago
        wsl2 is literally just a linux vm isn&#x27;t it?
        • pjmlp1 day ago
          Yep, running on Hyper-V.
    • justsomehnguy2 days ago
      &gt;&gt; Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.[0]<p>Between that quote and &quot;You can&#x27;t fix stupid&quot; I always choose the one about circus.<p>*nix fanboys were totes fine with wget and ls being an aliases in PowerShell <i>for years</i> but when they found out what PS is coming to Linux they made a biggest stink. It didn&#x27;t even mattered what 99.999% of the scripts which utilized that call were the simple &#x27;get file&#x27; and nothing more.<p>[0] <a href="https:&#x2F;&#x2F;en.wikiquote.org&#x2F;wiki&#x2F;Rick_Cook#The_Wizardry_Compiled_(1989)" rel="nofollow">https:&#x2F;&#x2F;en.wikiquote.org&#x2F;wiki&#x2F;Rick_Cook#The_Wizardry_Compile...</a>
      • petterroea2 days ago
        I think Powershell and .net coming to linux is very welcome because I can keep hosting stuff with what I believe is a saner platform, and Windows developers can still keep using the platform they prefer. It&#x27;s a win-win.<p>IMO .net is much better than Java, at least it was 10 years ago. So it&#x27;s not like I don&#x27;t understand them.
        • pjmlp1 day ago
          C# better than Java the language, yes.<p>CLR is better on the polyglot approach, although Microsoft nowadays behaves as if C means C# and not Common, and ironically JVM seems to have a more vivid guest languages ecosystem nowadays. Any of Scala, Clojure, Kotlin, Groovy, seem to enjoy more activity than F#, VB or C++&#x2F;CLI.<p>There are plus on the JVM side that Microsoft will probably never care for.<p>- A single vendor implementation, Microsoft no longer cares about ECMA<p>- Following from being a single vendor, there aren&#x27;t multiple GC, JIT and AOT approaches to chose from<p>- Some of those implementations explore having most of the stack bootstraped instead of still being based on C and C++.<p>- One of them being a compiler development framework, whereas Microsoft killed theirs (Project Phoenix)<p>- Others offer real time GC, and embedded deployments in high critical computing environments, although less than 20 years ago, there are still three main vendors in this area<p>- A mobile OS, after Microsoft botched theirs when it was around 10% market share in Europe already, and now they don&#x27;t have a platform for younger generations<p>Note that Java, .NET and C++ are my main toolbox tools, thus it isn&#x27;t hating one over the other.
        • tracker11 day ago
          I just don&#x27;t like the verbosity of Powershell myself... For that matter, I&#x27;ve trended towards using TypeScript (via Deno) for my user scripts that need more than basic shell interactions. I can reference any repository modules directly, use a shebang in the top of the script with self&#x2F;executable, and no install step.<p>For that matter, deno in a shebang for an extensionless file now detects as a TypeScript file properly in VS Code. win-win-win. While being portable with a relatively small executable surface (deon executable only).
        • justsomehnguy1 day ago
          &gt; I think Powershell and .net coming to linux is very welcome<p>It was!<p>I specifically talk here about a subset of people who was very ignorant but became very angry because... well, they are probably still write it as <i>M$</i> so there is no point continue.
      • jborean932 days ago
        &gt; *nix fanboys were totes fine with wget and ls being an aliases in PowerShell for years but when they found out what PS is coming to Linux they made a biggest stink<p>The curl and wget aliases don’t exist on the PowerShell 7 version which is the cross platform one. Only the old powershell.exe builtin to Windows has these aliases and it’s worse today because curl.exe is builtin and the curl alias takes priority when you run just curl.
        • justsomehnguy1 day ago
          Thanks, I&#x27;m with PS since v1.0.<p>&gt; Only the old powershell.exe builtin to Windows<p>It&#x27;s &quot;Windows PowerShell&quot; which would be forever v5.1 and &quot;PowerShell&quot; is v7+.<p>(we don&#x27;t talk about <i>&quot;PowerShell Core&quot;</i>)<p>&gt; builtin and the curl alias takes priority when you run just curl<p>Yes, but again if somebody didn&#x27;t bother to read the docs, read the output (it&#x27;s very evident when you have some PS error vs. everything else - and people STILL don&#x27;t bother to try to understand) and start bitching on the forums... see my previous comment.<p>And by the way: it was established quite early what the use of an aliases <i>in the written code</i> should be frowned upon, exactly for the reason what the aliases aren&#x27;t stable and could be local. Aliases are the quick way when you are slapping something interactively in the CLI.<p>So wget&#x2F;curl were added for the benefit of those *nix fanboys who needed something better than cmd.exe on Windows so they could start using PS faster and later adopt to a proper ways but instead of reading the docs they only rose the stink.
  • overflowy2 days ago
    We had <a href="https:&#x2F;&#x2F;github.com&#x2F;gerardog&#x2F;gsudo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gerardog&#x2F;gsudo</a> long before this came out.
    • tokyobreakfast2 days ago
      The hallmark of every successful Rust project: existence of a popular, equivalent software package not written in Rust.
    • manwe1502 days ago
      That fact appears to be mentioned in the docs for this sudo, as well as mentioning gsudo has more features
  • gnabgib2 days ago
    (2024) At the time (587 points, 423 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39305452">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39305452</a>
  • RajT882 days ago
    Do you want to allow the following program from an unknown publisher to make changes to this computer?<p>Program Name: Sudo.exe<p>Publisher: Unknown<p>File Origin: Downloaded from the Internet
    • pjc501 day ago
      I was going to try to repro this, but it seems you can&#x27;t actually download it and it&#x27;s now a builtin? <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;advanced-settings&#x2F;sudo&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;advanced-settings&#x2F;...</a>
    • al_borland2 days ago
      sudo sudo.exe
    • cokecan2 days ago
      &quot;Yes&quot;
  • userbinator2 days ago
    I&#x27;m surprised they didn&#x27;t call it Run-AsAdministrator or some other awkward Microsoft-ism.
    • steve19772 days ago
      Maybe because that exists already? (and is actually more useful)<p><a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;previous-versions&#x2F;windows&#x2F;it-pro&#x2F;windows-server-2012-r2-and-2012&#x2F;cc771525(v=ws.11)" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;previous-versions&#x2F;windows&#x2F;...</a>
    • al_borland2 days ago
      I spent some time years ago going through a PowerShell course by the guys who wrote it. They explained their thought process and it actually made a lot of sense. Descriptive verb-noun naming to makes scripts readable, with aliases to make things quick and easy in the shell.<p>It’s easier to understand than names like grep, which require the user know ed and decades old history to figure out that it means global regular expression print. Without any *nix history, Select-String with an alias of sls, can make more intuitive sense and be easier to remember. The alias is also faster to type.
      • userbinator1 day ago
        That sounds like PowersHell is similar to Esperanto - systematic and regular, but otherwise awkward and just doesn&#x27;t have the staying power of a real, organically-developed language.<p>There&#x27;s no need to &quot;understand&quot; &quot;names like grep&quot;; you learn it as a language like any other. If you aren&#x27;t thinking of &quot;grepping&quot; (or cd&#x27;ing, ls&#x27;ing, fsck&#x27;ing, etc.) naturally and are always trying to translate the words into English (or some other language), you&#x27;re doing it wrong.
    • Diti2 days ago
      That would imply it is written for PowerShell specifically ([1]), and would come with several expectations (like returning PSObject objects, and other good practices).<p>[1]: <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;powershell&#x2F;scripting&#x2F;developer&#x2F;cmdlet&#x2F;approved-verbs-for-windows-powershell-commands" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;powershell&#x2F;scripting&#x2F;devel...</a>
    • Diti2 days ago
      That would imply it is written in PowerShell. <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;powershell&#x2F;scripting&#x2F;developer&#x2F;cmdlet&#x2F;approved-verbs-for-windows-powershell-commands" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;powershell&#x2F;scripting&#x2F;devel...</a>
      • Diti1 day ago
        I strangely cannot flag my own posts. Can you delete that comment (and this comment you’re currently reading), since it’s a duplicate?
    • chrisandchris2 days ago
      That would be consistent, which is not something Microsoft is capable of.
  • onemoresoop2 days ago
    Lipstick on a pig, Windows is turning into a botched version of linux.
    • garganzol2 days ago
      Windows always has been a Unix alter-ego since DOS 2.x which had started to accept &#x27;&#x2F;&#x27; characters as directory separators, or maybe even before that.
    • sph1 day ago
      I&#x27;m still betting on Microsoft buying Canonical one day and releasing their own distro.
    • al_borland2 days ago
      I keep waiting for Microsoft to give up on maintaining their own kernel and moving to Linux. Kind of like what they did with the browser engine, and building atop Chrome.
      • DaSHacka2 days ago
        Why would they ever do that though? Breaking backwards compatibility and losing all their work on the NT kernel for no gain?
  • twelvedogs2 days ago
    Unless this is improved greatly from the last time I used it is pointless, any command you would use it for instead requires you to right click, open as administrator a command prompt to get the expected result
  • G_o_D2 days ago
    <a href="https:&#x2F;&#x2F;m.majorgeeks.com&#x2F;files&#x2F;details&#x2F;nsudo.html" rel="nofollow">https:&#x2F;&#x2F;m.majorgeeks.com&#x2F;files&#x2F;details&#x2F;nsudo.html</a> Been using it to run my cleanup or uninstaller utilities as SYSTEM&#x2F;TRUSTED INSTALLER, so stubborn in use files that are not easily deletable not even with lockhunter or unlock file utilities that ultimately fallback to delete on next reboot.<p>With nsudo its fizz
  • archargelod2 days ago
    &gt; Everything about permissions and the command line experience is different between Windows and Linux. ... certain elements of the traditional sudo experience are not present in Sudo for Windows, and vice versa. Scripts and documentation that are written for sudo may not be able to be used directly with Sudo for Windows without some modification.<p>Then why is it named `sudo`? Just to create confusion?<p>Also, something like sudo is clearly not possible on modern Windows, because Microsoft thinks it owns your computer and won&#x27;t allow Admins to do certain things.
    • LiamPowell2 days ago
      It&#x27;s wget for Windows all over again, just like with wget there&#x27;s absolutely zero arguments shared between the two that do the same thing.
      • jasonjayr2 days ago
        Ah yes, the &#x27;curl&#x27; alias in powershell, vs the &#x27;curl.exe&#x27; binary that uses the traditional options. Always have to remember that trap on windows.
  • 9dev2 days ago
    Funny that this pops up when Linux at the same time is moving on to something better than sudo.
    • eddythompson802 days ago
      Are you referring to sudo-rs or something different? because sudo-rs is just a reimplementation of sudo.
      • 9dev1 day ago
        No; I&#x27;m referring to run0. See, for example: <a href="https:&#x2F;&#x2F;edu4rdshl.dev&#x2F;posts&#x2F;new-year-new-sudo-using-systemd-s-run0-as-a-sudo-replacement" rel="nofollow">https:&#x2F;&#x2F;edu4rdshl.dev&#x2F;posts&#x2F;new-year-new-sudo-using-systemd-...</a>
        • Oh okay. That’s very specific to using setUID vs an alternative. Both have no real equivalent on windows to begin with.
          • 9dev1 day ago
            Yeah, I’m aware of that. But this windows-sudo is sudo in name only anyway, so it seemed funny they’d copy a term that’s just about to go out of fashion.
  • paweladamczuk2 days ago
    The embracing continues
    • saintfire2 days ago
      Not really. It&#x27;s not the same program at all. They just took the name for an inexplicable reason. They even had to make a paragraph disclaimer stating it isn&#x27;t and never will be the same program.
  • DeathArrow2 days ago
    What&#x27;s wrong with good old runas command?
    • jborean932 days ago
      The runas command doesn’t elevate just runs as another user. This is a console executable that drives UAC and also provides a way to capture the stdout&#x2F;stderr elevated process which isn’t natively possible today without your own wrapper.
  • It&#x27;s not sudo for Windows, it&#x27;s a pile of rust which, if you figure out how to assemble it, presumably turns into some Microsoft interpretation of sudo which, judging by all the open issues, might be an attempt at grep that went wrong somewhere.<p>If you want a proper sudo for Windows, use gerardog&#x27;s excellent gsudo, <a href="https:&#x2F;&#x2F;github.com&#x2F;gerardog&#x2F;gsudo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gerardog&#x2F;gsudo</a>. Among other things it comes with prebuilt binaries and installers.
  • ButlerianJihad2 days ago
    Sandwich <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;149&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;149&#x2F;</a>
  • SugarReflex2 days ago
    sudon&#x27;t
  • julian001 day ago
    [dead]