TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NSudo – run processes as System or TrustedInstaller

20 pointsby realpanzerover 4 years ago

1 comment

abduscoover 4 years ago
I love using gsudo[0] for this. It doesn&#x27;t support running as TrustedInstaller (AFAIK), but when I run into a command that requires elevated permissions, I just prepend `sudo` at the beginning, and it elevates the current shell (without a new window) and lets me run the command.<p><pre><code> PS&gt; choco upgrade deno Chocolatey detected you are not running from an elevated command shell ^C PS&gt; sudo choco upgrade deno Chocolatey v0.10.15 Upgrading the following packages: deno </code></pre> [0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;gerardog&#x2F;gsudo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gerardog&#x2F;gsudo</a>