blog/content/post/use-sudo-in-windows.md
2022-04-29 06:43:19 +00:00

1.6 KiB

title date lastmod draft keywords description tags categories author comment toc autoCollapseToc postMetaInFooter hiddenFromHomePage contentCopyright reward mathjax mathjaxEnableSingleDollar mathjaxEnableAutoNumber hideHeaderAndFooter flowchartDiagrams sequenceDiagrams
Use sudo in Windows 2021-02-18T06:21:50Z 2022-04-29T06:21:50Z false
sudo
sudo
windows
false true false true false false false false false false false
enable options
false
enable options
false

This si not the same sudo you use in *nix systems. It just shares the name.

It is quite tiresome to launch a new instance of the running program with admin privilege.

Install

scoop install gsudo

Other installation methods are in the repo: https://github.com/gerardog/gsudo

Usage

Prepend sudo to the command that requires admin provolege. It will launch UAC.

{{% center %}} {{% figure src="/img/gsudo.png" title="It feels surreal" alt="Screenshot of sudo in action. It cannot geenrate ssh keys as a normal user but prepending sudo gets the job done." %}} {{% /center %}}