Live data from Hacker News

Sudo for Windows

devblogs.microsoft.com

161–170 of 439 posts

Re: Sudo for Windows

#161

This will be a very controversial prediction, but mark my words: Windows will eventually use the Linux kernel.

It already does - SQL Server for Linux runs largely unmodified Windows userland on top of Linux kernel.

https://www.microsoft.com/en-us/sql-server/blog/2016/12/16/s...

Re: Sudo for Windows

#162
post #42

If it's just an alias for "runas" that presents a UAC prompt window I will be disappointed.

> runas allows you to run programs as other users, including but not limited to as administrator. This funtionality is on the roadmap for the sudo command, but does not yet exist.

Seems like it's not an alias.

[1] https://learn.microsoft.com/en-us/windows/sudo/#how-is-sudo-...

Re: Sudo for Windows

#163
post #7

Earlier quoted context omitted.

Nice to see the author here! I have to say: I really like whats going on in Windows world from a developer perspective in the recent years. I am a hardcore Linux fanboy for decades but I have to admit that PowerShell, WSL, vscode, Windows Terminal and the recent open source strategy sounds very appealing to me. This is something MS/Win does much better in recent days compared to, for instance, Apple/Mac OS. I would l…

Only problem is Powershell's commands are abysmally slow in comparison to chaining together Linux terminal commands that are written in C. Powershell is a super neat language though.... especially if the Microsoft team that manages it would work more with the team that does more for SMEs and not just DevOps. The overwhelming majority of windows users doing regular business work have to deal with crufty stuff like VBA…

Powershell is a terrible "language". It's fine for sysadmins to do sysadmin work but why would you want to subject business analysts to that level of unix shell inspired weirdness. Microsoft already has VB.NET which would serve that market much better.

Give me C# over PS any day.

Re: Sudo for Windows

#164

Earlier quoted context omitted.

I think they should've named it something else to avoid confusion, especially if it doesn't have the same behavior as unix sudo. If it has different arguments and features, imagine the confusion of unsuspecting users searching how to use sudo in the future.

Windows and Linux already share dozens of commandline commands with the same name and have different behaviors.

This doesn't mean this isn't an issue, and that the issue should be worsened.

Of course, it being an issue is an opinion (of mine), see my daniel.haxx.se link from my other comment next to yours for a motivation of this opinion.

Re: Sudo for Windows

#165

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...

The manual GUI steps could be replaced with single command line on windows too.

https://learn.microsoft.com/en-us/windows-server/administrat...

Re: Sudo for Windows

#166
Considering the way PowerShell commands go, I assume this will be:

  RunWithAllTheElevatedPermissionsPossible --YesEvenThose .\inthisfolder.folder\.

  grep : The term 'grep' is not recognized....

Re: Sudo for Windows

#168
post #73

This will be a very controversial prediction, but mark my words: Windows will eventually use the Linux kernel.

Windows NT linage has supported UNIX since day one. While the original support wasn't great, SUA was quite usable, until they decided to discontinue it on Windows Vista. Nowadays we have WSL, which makes more sense, given how many folks buy Apple hardware and then complain UNIX isn't GNU/Linux.

> Windows NT linage has supported UNIX since day one.

yes, that's why the attempt to provide a Linux subsystem on top of the NT kernel (WSL1) was so successful they abandoned the approach entirely

WSL2 runs the full Linux kernel in a sidecar VM

Re: Sudo for Windows

#169
post #7

Earlier quoted context omitted.

Nice to see the author here! I have to say: I really like whats going on in Windows world from a developer perspective in the recent years. I am a hardcore Linux fanboy for decades but I have to admit that PowerShell, WSL, vscode, Windows Terminal and the recent open source strategy sounds very appealing to me. This is something MS/Win does much better in recent days compared to, for instance, Apple/Mac OS. I would l…

Windows change is welcoming, yet still not quality. As stated by someone below, sudo is https://www.sudo.ws/ . Microsoft should give it a proper distinctive name lie wsudo or psudo. Little thinks like is compounds the issues with Windows / Microsoft. Even continually sticking to old design patterns causes issues in development and deployment. Big name companies do not trust applications running on hosted Windows beca…

>Windows as become more problematic for me because of all the layers of security that need to be applied for companies to trust Windows. This causes issues such as having to stop typing because Visual Studios or VSCode cannot process key strokes in real time.

This is a big issue for me. I'm stuck using Windows for work, and it runs like an absolute dog even on good hardware.

Re: Sudo for Windows

#170

Earlier quoted context omitted.

Isn't that what askpass does in every modern Linux desktop UI?

Yes, which is why it's silly for people to act like there's something wrong with MS doing the same. Some people will grasp at any straw to bash MS.

> to bash MS

Well, now we can sudo them.

Post reply on HN