Re:Developer and Power Users Tool List for Windows
by ziml77 on Friday December 25, 2020 @10:41AM
(#25537043)
Tangentially related, but I wish that running elevated from the shell was more ergonomic. I want to just be able to have a sudo-like command to run elevated from an otherwise non-elevated shell. Instead I have to launch a new instance of the shell host that's elevated. ConEmu makes this feel more seamless by doing some window manipulation hacks to bring elevated and non-elevated into tabs of the same window, but Windows Terminal doesn't want to do anything so hacky which means having a second Windows Terminal window when running elevated.
I wonder if improving this is possible within the current design of Windows or if it would be a fundamental change in how it handles user privileges.
Re:Developer and Power Users Tool List for Windows
by kingaillas on Friday December 25, 2020 @01:20PM
(#25538051)
>I want to just be able to have a sudo-like command to run elevated from an otherwise non-elevated shell.
Won't the runas command (https://docs.microsoft.com/en-us/previous-versions/windows/i...) let you do this - run a command as Administrator without opening another command/powershell prompt?
Re:Developer and Power Users Tool List for Windows
by majkinetor on Friday December 25, 2020 @02:27PM
(#25538447)
cinst gsudo
Works like on linux. Runas and friends are junk.
Re:Developer and Power Users Tool List for Windows
by ziml77 on Friday December 25, 2020 @04:16PM
(#25539083)
I'll have to check this one out. I vaguely remember coming across runas in the past and it not meeting my needs.
Re:Developer and Power Users Tool List for Windows
by bruxis on Friday December 25, 2020 @06:35PM
(#25540016)
In addition to the alternatives others have mentioned, the author of `scoop` also has a package available for `scoop` named `sudo`, described as "An approximation of the Unix sudo command. Shows a UAC popup window unfortunately."
From a non-elevated shell (cmd or ps), you can run `sudo <command>` to a roughly equivalent effect from *nix terminals. I find it meets my needs.
Re:Developer and Power Users Tool List for Windows
by jlgaddis on Friday December 25, 2020 @02:36PM
(#25538499)
> ... a sudo-like command to run elevated from an otherwise non-elevated shell.
Something like RunAs? [0]
--
Re:Developer and Power Users Tool List for Windows
by stjohnswarts on Saturday December 26, 2020 @12:16AM
(#25541580)
That's what I was wondering? It's been around for literally decades. I'm 99.9% linux user now but back in the day runas came in handy on windows for daemons that I would write and test to run in the background as various users or admin.
The official software repo might be smaller than chocolate's, but to my eye, as it is moderated through a single open github repo, it seems much simpler.