If it's just an alias for "runas" that presents a UAC prompt window I will be disappointed.
Isn't that what askpass does in every modern Linux desktop UI?
Sudo for Windows
131–140 of 439 posts
Re: Sudo for Windows
#132Earlier quoted context omitted.
The best way would be, if it could say something like: Allow $PARENT_PROCESS_NAME to run $COMMAND with administrator rights. So if you would enter the following in cmd.exe: sudo notepad.exe ... It would say: Allow Command Processor Shell to run notepad.exe ... with administrator rights.
Maybe for Windows 2025 we can work with the UAC folks to get something like that. I'm still shocked to this day that we managed to ship this at all. One step at a time :)
Why?
Re: Sudo for Windows
#133Earlier quoted context omitted.
Yea, that's a limitation of UAC at this point, and probably not one we can avoid. The "Show details" dropdown on the dialog does however show the commandline you requested, so at least that's one way of making sure it's the thing you ran
A tool like sudo should probably be sufficiently integrated with UAC to be able to customize that dialogue box...
Re: Sudo for Windows
#134Earlier quoted context omitted.
Opening a terminal in admin window which means any commands you put in that windows will always have admin privilege, no matter what. What does Sudo is to only provide the root/admin privileges for specific inputted command. Once it is done, it goes back to user privileges. This way, the terminal window didn't need to end the session to go back to user privileges.
That's a very slim proposition value, especially when multiple commands in a row require admin privileges.
Re: Sudo for Windows
#135Earlier quoted context omitted.
Maybe for Windows 2025 we can work with the UAC folks to get something like that. I'm still shocked to this day that we managed to ship this at all. One step at a time :)
> I'm still shocked to this day that we managed to ship this at all Why?
Re: Sudo for Windows
#136Earlier quoted context omitted.
Windows 10 is EOl next year. I would bet your company has plans to move to 11 at some point in the near future. I work with customers daily to help to move to 11
> I work with customers daily to help to move to 11 What issues are your customers having that they need profesional help to upgrade to a new Windows OS?
Re: Sudo for Windows
#137Yep, it's really happening. Sudo is coming to Windows. It's obviously not just a fork of the linux sudo - there's enough that's different about the permissions structure between OS's that just a straight port wouldn't make sense. But the dream of being able to run commands as admin, in the same terminal window - that's the experience we're finally bringing to users. I've been working on this for the last few months n…
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.
While I understand picking a familiar name, sudo is certainly not the only player, there's also doas. This shows people can adapt to another name and another name would have seemed more appropriate.
edit: whoops, it was already mentioned in this thread [3]
[1] https://daniel.haxx.se/blog/2016/08/19/removing-the-powershe...
Re: Sudo for Windows
#138Re: Sudo for Windows
#139This will be a very controversial prediction, but mark my words: Windows will eventually use the Linux kernel.
I hope you’re right! They sort of did the same thing already with Edge given it’s just Chromium under the hood. Reminds me of a specific thought experiment with a boat.
(For today’s 10000 (https://xkcd.com/1053/))
Re: Sudo for Windows
#140sudo deltree c:\