4 ms·
If it's just an alias for "runas" that presents a UAC prompt window I will be disappointed.
by jhickok 3y ago
If it's just an alias for "runas" that presents a UAC prompt window I will be disappointed.
- tester756 3y agoInitially I thought ur concern is crazy as hell, because who would implement it in such a painful way? But then I read >When elevating a process from the command-line with sudo, a UAC dialog will appear asking the user to confirm the elevation: LOL But it seems like there are other ways to use it without this dialog >In this configuration, sudo.exe will launch a new elevated console window and run the command in that window. The new window will be launched with the same working directory as the current window. The new window will also be launched with the same environment variables as the current window. This configuration has a similar flow to the runas command.
- RajT88 3y agoThere's no way that second use case doesn't show a UAC prompt. The whole point of the split token / UAC elevation is to avoid elevation without user interaction. Imagine malware stuck as standard user just running itself like: cmd.exe /c sudo malware.exe
- calamari4065 3y agoHaving the sudo command open an entirely separate terminal as an admin user is absolutely ridiculous and completely on brand for Microsoft. Along with the UAC dialog, I can't think of a worse way for sudo to behave. What's wrong with entering your password for sudo? How is UAC more secure than a password?
- hughesjj 3y agoUAC is less secure than a password right?
- aksss 3y agoIf you’re running as local admin you just get the dialog, but you’re not using a local admin as your daily driver user acct, right? ..Right? :) If you’re logged in as a standard user, UAC prompts you for new username and password to authenticate and authorize the privileged operation.
- calamari4065 3y agoSeems like a horribly convoluted way to manage permissions. Also I have never heard anyone suggest you shouldn't use a local admin account. That's the exact problem UAC was meant to solve. Having used an unprivileged Windows account, all I can say is no thanks. It's a huge burden if you do anything even slightly more complex than Facebook and email. As a blanket policy at work, all programmers are admins, everyone else is not. Except when someone is doing a task that requires elevation every five minutes. I'm the only admin on site and it's an unbelievable waste of my time to sit next to someone so I can put in my password every time they click a box. We make those users admins because there's simply no other way to manage it.
- bigstrat2003 3y agoNobody does what you describe. When someone has a genuine need for local admin access, they are given two accounts - an unprivileged account to log in with, and a privileged account to enter into UAC when needed. It would indeed be an unbelievable waste of time to make your IT staff sit next to users to enter admin credentials, which is why nobody does it. And for the record, "don't log in with a local admin account" is a very commonly recommended best practice for Windows environments. It's unusual that you've never encountered it.
- int_19h 3y ago"Nobody does what you describe" is a very... broad statement. I can tell you that "all devs are local admins" is indeed a very popular policy, and has been the case everywhere I worked in the past, oh, 20 years or so - including Microsoft itself.
- ripley12 3y agoOpening another terminal is one thing this new sudo can do. It's also possible to configure it to run the sudo'd command inline in the current window (mentioned in the linked blog post); there are security tradeoffs to consider.
- hugryhoop 3y agoA terminal password prompt can be intercepted by a keylogger and similar things. UAC is safe from that.
- tetris11 3y agoIsn't that what askpass does in every modern Linux desktop UI?
- bigstrat2003 3y agoYes, 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.
- jraph 3y ago> to bash MS Well, now we can sudo them.
- hnlmorg 3y agoYeah. But I think their point is that there should be a CLI equivalent of the UAC for Windows “sudo”
- ElectricSpoon 3y ago> 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-for-windows-different-from-the-existing-runas-command https://learn.microsoft.com/en-us/windows/sudo/#how-is-sudo-...