Bot releases are hidden (Show)
Published by gerardog over 1 year ago
gsudo status --json
by @gerardog in https://github.com/gerardog/gsudo/pull/276
gsudo status {key}
gsudo status CacheAvailable
Full Changelog: https://github.com/gerardog/gsudo/compare/v2.2.0...v2.3.0
Published by gerardog over 1 year ago
--copyns
error reconnecting network path with spaces by @nurfed1 in https://github.com/gerardog/gsudo/pull/268
Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.9...v2.0.10
Published by gerardog over 1 year ago
Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.8...v2.0.9
Published by gerardog over 1 year ago
line 11: /mnt/c/Program: No such file or directory
by @gerardog in https://github.com/gerardog/gsudo/pull/259
Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.7...v2.0.8
Published by gerardog over 1 year ago
sh
, ash
& bash
by @gerardog in https://github.com/gerardog/gsudo/pull/255
gsudo
without PATH env var set by @lsiu in https://github.com/gerardog/gsudo/pull/249
Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.6...v2.0.7
Published by gerardog about 2 years ago
gsudo -n -w -d
=> gsudo -nwd
)gsudo -i Low
=> gsudo -iLow
or gsudo -i=Low
)gsudo -i Low -n -w -d --debug MyProgram.exe
can now be written as
gsudo -iLow -nwd --debug MyProgram.exe
allowedgsudo -i=Low -nwd --debug MyProgram.exe
allowedgsudo -i Low -nwd --debug MyProgram.exe
allowedFull Changelog: https://github.com/gerardog/gsudo/compare/v1.6.0...v1.7.0
Published by gerardog about 2 years ago
IMPORTANT: This is an experimental pre-release. Please, only use this version if you feel comfortable trying an experimental version that may have more problems than usual, and you are the kind of person that is willing to report problems as GitHub Issues or in this discussion thread.
In any other case, just use v1.3.0.
Also, the code-signing certificate expired so this version is signed with a self-signed certificate. I was waiting for donations to get a new certificate, and we almost made it so I am purchasing a new one this week.
This pre-release won't be published to WinGet / Scoop / Chocolatey.
gsudoSetup.msi
installs the correct version automatically.Full Changelog: https://github.com/gerardog/gsudo/compare/b7865bde46644586e5d978564ccb886ce09aff32...v1.3.1-Feature-NetCore
Published by gerardog over 2 years ago
-d
is specified)gsudo ls /etc/hosts
will elevate bash -c "ls /etc/hosts"
instead of cmd /c ls.exe "C:/Program Files/Git/etc/hosts"
.bashrc
profile:gsudo() { WSLENV=WSL_DISTRO_NAME:USER:$WSLENV MSYS_NO_PATHCONV=1 gsudo.exe "$@"; }
gsudo
bash script missing on Chocolatey package (aebd731)Full Changelog: https://github.com/gerardog/gsudo/compare/v1.2.0...v1.3.0
Published by gerardog over 2 years ago
gsudo
, use gsudo --loadProfile command
per command, or gsudo config PowerShellLoadProfile true
for permanent configuration.Invoke-Gsudo
: use Invoke-gsudo { scriptBlock } -LoadProfile
per command, or set $gsudoLoadProfile=$true
in your $PROFILE
after Import-Module gsudoModule
for permanent configuration.$PROFILE
should not write any output to the console.
Published by gerardog over 2 years ago
Invoke-gsudo
cmdlet support #113
Invoke-gsudo
cmdlet or In/Out/Err redirection).gsudo -n -k
now open the new window after closing credentials cache (-k
)gsudo
PowerShell module now includes proper version number in gsudoModule.psd1 #127choco upgrade/uninstall
when current directory is gsudo directoryFull Changelog: https://github.com/gerardog/gsudo/compare/v1.1.0...v1.1.1
Published by gerardog over 2 years ago
Invoke-gsudo
#39: See the readme. For example:Get-process SpoolSv | Invoke-gsudo { Stop-Process -Force }
gsudo !!
for PowerShell to elevate the last command. #44 Requires importing gsudoModule.psm1
as explained in the readme
Take Command
shell #107Unable to install/uninstall Chocolatey package if gsudo is running
#74: Unfortunately, you still need to close gsudo before upgrading to this release, but for the next one you may gsudo choco upgrade gsudo
, I promise. (Tip: For now, close all gsudo instances, then gsudo -n -k choco upgrade gsudo
)Full Changelog: https://github.com/gerardog/gsudo/compare/v1.0.2...v1.1.0
Published by gerardog about 3 years ago
Published by gerardog about 3 years ago
Fixes:
\
Published by gerardog about 3 years ago
"
to \"
). Now most commands can be elevated by prepending 'gsudo'.# Before: (<= v0.7.3)
gsudo Get-Item '""C:\Program Files\""'
$hash = gsudo "(Get-FileHash \""$file\"" -Algorithm $algorithm).Hash"
$hash = gsudo '(Get-FileHash \"C:\My Secret.txt\").Hash'
# After: (only standard pwsh escaping rules needed)
gsudo Get-Item "C:\Program Files\"
$hash = gsudo "(Get-FileHash ""$file"" -Algorithm $algorithm).Hash"
$hash = gsudo '(Get-FileHash "C:\My Secret.txt").Hash'
Improved elevation of WSL commands #55: [BREAKING CHANGE] Now prepend gsudo
(.exe
not required) to elevate WSL native commands (instead of CMD commands), or use gsudo -d {cmd}
to elevate CMD commands.
Added -d/--direct
to bypass the shell wrapper (i.e. powershell/bash/wsl) (#80) and interpret the command to elevate as a Windows / CMD app.
For example if you do gsudo notepad C:\file.txt
from powershell, it will launch another powershell instance to resolve possible PS aliases/commands. (i.e. 'powershell.exe -Command notepad'). But if you add '-d' (gsudo -d notepad
) it will expect a CMD/Windows command, so it will launch notepad.exe
from the path directly (also a little bit faster).
gsudo config
fails on auto-elevation #62 + #93Administrator:
prefix from console title on de-elevations. #91Published by gerardog almost 4 years ago
Fixes:
Failed to load hostfxr.dll
when PowerShell is installed via Microsoft Store (#65)cmd
language changed after running gsudo
(#63 #67)cmd
elevated color scheme (#51)gsudo config
when gsudo.exe
is placed in a path with spaces. (#62)Published by gerardog about 4 years ago
Fixes:
gsudo !prefix
now case insensitive.Published by gerardog over 4 years ago
New Features:
gsudo !!
allows to elevate a command executed previously (CMD only, not Pwsh). Same as on Unix/Linux sudo bang bang.
gsudo !!
elevates the last executed command.gsudo !prefix
elevates the last executed command that starts with prefix
.gsudo !?infix
elevates the last executed command that contains infix
.Fixes:
gsudo file.txt
(#29)Published by gerardog over 4 years ago
gsudo cache on/off
.Those who want to see a reduced amount of UAC popups must opt-in to start a cache session (gsudo cache on
) or set the Auto
mode (gsudo config CacheMode Auto
).
Are you leaving the keyboard to a co-worker? run gsudo -k
to stop all cache sessions.
gsudo can not only launch elevated but also unelevate or restrict the permissions of a given command. With the added the --integrity {level}
| (-i
for short) option to launch a process with any integrity level. For example:
gsudo -i Low {command}
start the process with low integrity, restricted permissions.gsudo -i Medium {command}
start with normal permissions. Can be used to unelevate a process.High
(the default) or higher has local admin privileges.Added gsudo status
to show info regarding the user, elevation, and cache status.
gsudo
is now just one single EXE
file, (no DLLs
). (#26)
New internal method to elevate/unelevate based on replacing the new process security token, instead of (the now deprecated) console attachment/redirection.
Fixes:
tee
command (or any other awaiting for Std Input closure) now works properly. (#25)Chocolatey
scripts upgrade scenarios (#17)Published by gerardog over 4 years ago
New Features
-s / --system
parameter to run as Local System Account.Fixes:
gsudo
with or without argumentsPublished by gerardog almost 5 years ago
.bat
exception. gsudo MyBatchFile
(#6).