Live data from Hacker News

Sudo for Windows

devblogs.microsoft.com

241–250 of 439 posts

Re: Sudo for Windows

#241

Earlier quoted context omitted.

winget has Python 3.12.2 at the moment, which has been released two days ago. And you don't have to use --id - you can do `winget install 7zip` etc in cases where there's no ambiguity.

It doesn't turn up here, maybe I'm on the wrong website? https://winget.run/search?query=python%203.12 . For that matter 7zip doesn't show up in that search either. I was able to find the 7zip page by googling for it: https://winget.run/pkg/7zip/7zip But as with Python the default suggestion is `winget install -e --id 7zip.7zip`. If I can just do `winget install 7zip`, why can't they show that command? Why is the com…

winget.run is no longer updated. Try https://winstall.app

Re: Sudo for Windows

#242

Earlier quoted context omitted.

Why can't you do this with the tool that already exists to do the exact same thing, called runas?

Also 'start -Verb runas' in Powershell.

Is there anything shorter than `powershell.exe -executionpolicy unrestricted -file`?

  powershell.exe -executionpolicy unrestricted -file ./setup_windows.ps1 -InstallPSWindowsUpdate -UpdateWindows -UpdateChocoPackages
setup_windows.ps1: https://github.com/westurner/dotfiles/blob/develop/scripts/s...

Re: Sudo for Windows

#246
One of the most important aspects of ‘sudo’ is that it takes the password of the user who started it, not the admin password. Will this ‘sudo’ work like that, or does it need the user to know an administrator password? If it needs an admin password, it shouldn’t be called ‘sudo’ (it would be an analog of ‘su’)

Re: Sudo for Windows

#247

Side note that I've always found interesting: sudo is almost entirely maintained by one dude: https://github.com/sudo-project/sudo/graphs/contributors

https://www.sudo.ws/about/history/#quest-sponsorship and apparently he's no longer being paid to work on it as of this week

not to completely stalk this guy, but for linkedin users, might be worth liking / sharing his looking for work post https://www.linkedin.com/posts/millert_after-over-13-years-w...

Re: Sudo for Windows

#248
post #235

Earlier quoted context omitted.

I run Windows 11. It has first-class support for Linux, with WSL, and the Windows Environment has first-class support for NVIDA graphics, popular productivity and entertainment software. It's reliable, stable, and performs well, with commercial support and scheduled major and minor updates. It's consistant. I can develop software for Windows 11 and be sure that everyone else with Windows 11 can run it.

Windows 11 has ads in its file manager, right?

Most of the complaints I hear are from people running an unlicensed copy and complaining it nags them.

Re: Sudo for Windows

#249

Earlier quoted context omitted.

Already there. Windows has had services for a long time managed pretty similarly to systemd/launchd.

Well, compare how to start syncthing automatically on Windows: https://docs.syncthing.net/users/autostart.html On Debian I could just type: systemctl --user enable --now syncthing.service Native systemd on Windows would be awesome. Microsoft should hire the creator of systemd...

Powershell exists.

Re: Sudo for Windows

#250
post #234

Earlier quoted context omitted.

Linux is just some [explitive deleted] imitation of Unix, where the sudo command originated. I run Windows as my primary development environment because it's better. Linux and other OSes run in VMs.

Legally, FreeBSD is just an imitation of Unix. Linux is just as much of a Unix as any OS in actual widespread use.

There are other real UNIX to chose from.
Post reply on HN