3 ms·
That requires you to open an new terminal window. You've never been working in a standard terminal, tried to run a command that requires elevation, and been ann
by justusthane 3y ago
That requires you to open an new terminal window. You've never been working in a standard terminal, tried to run a command that requires elevation, and been annoyed that you have to open a new window losing your command history?
Or forgot to Run As and opened a non-elevated terminal by accident?
- dwattttt 3y agoI believe the new window is to prevent SHATTER attacks (https://en.m.wikipedia.org/wiki/Shatter_attack https://en.m.wikipedia.org/wiki/Shatter_attack), to ensure that a higher privileged process has a higher privileged Window. Is that not a concern anymore with this new sudo, or is there some other mitigation involved not? EDIT: from the linked wiki page, "By design, all services within the interactive desktop are peers, and can levy requests upon each other. As a result, all services in the interactive desktop effectively have privileges commensurate with the most highly privileged service there."
- pjmlp 3y ago"In this configuration, Sudo for Windows will open a new elevated console window and run the command in that window. This is the default configuration option when sudo is enabled"
- famouswaffles 3y agoThat's the default option but you apparently can still run the elevated command in the current window if you want.
- pjmlp 3y agoJust like when using runas. https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc771525(v=ws.11) https://learn.microsoft.com/en-us/previous-versions/windows/...