gsudo

Sudo for Windows

MIT License

Stars
5.2K
Committers
24

Bot releases are visible (Hide)

gsudo - gsudo v2.5.1 Latest Release

Published by github-actions[bot] 5 months ago

What's Changed

  • Modified the new PathPrecedence config setting (docs) ensuring that the system recognize the changes without requiring a log-off or restart. You still need to restart your consoles.

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.5.0...v2.5.1

gsudo - gsudo v2.5.0

Published by github-actions[bot] 5 months ago

What's Changed

With the release of Microsoft Sudo in Windows 11 24H2, both needs to coexist peacefully. When Microsoft Sudo is present, the sudo command no longer redirects to gsudo by default, so:

  • Added a new config setting PathPrecedence: When set to true, it will ensure gsudo appears first in the PATH variable, ensuring the sudo keyword starts gsudo instead of Microsoft Sudo.
    • Call gsudo config PathPrecedence true to activate. Please restart all your consoles to ensure the change makes effect.
    • Set it back to false to go back to normal.

If a user with ms-sudo muscle memory, accidentally runs gsudo, let's ensure gets a good user experience with:

  • Added support for ms-sudo styled arguments such as --inline, --disable-input, --preserve-env, --new-window
  • Added the ability to start the elevation in a specified folder with --chdir {directory} (or uppercase -D {directory}) in https://github.com/gerardog/gsudo/pull/355

Also:

  • Added text descriptions to gsudo config command, so users can read each config use, in https://github.com/gerardog/gsudo/pull/354
  • Added SecurityEnforceUacIsolation/DisableInput handling also in Attached and TokenSwitch elevation Modes.
  • For some reason Windows doesn't focus the UAC popup if it is configured as Do Not Dim. The fix (#85) makes gsudo focus the popup.

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.4.4...v2.5.0

gsudo - gsudo v2.4.4

Published by github-actions[bot] 8 months ago

What's Changed

  • Proper fix for WSL wrapper will not work if gsudo is on different drive #337 #338

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.4.3...v2.4.4

gsudo - gsudo v2.4.3

Published by github-actions[bot] 8 months ago

What's Changed

  • Fixed two security issues in TokenSwitchMode by:
    • Restricting ACL of the elevated process to High Integrity.
    • Restricting process and thread handles that are kept open during the elevation.
  • Fixed (actually a workaround) for vim and nano freezing when elevated directly (i.e. gsudo vim). #248 #302
  • Fixed an issue with multiple simultaneous gsudo versions installed throwing Unauthorized. (Different gsudo.exe?). #300
  • Fixed an issue when elevating to MediumPlus integrity level
  • Fixed an error when user configures CacheDuration > 24 days. #318

Acknowledgments

  • Special thanks to @diversenok for making a security assessment of gsudo

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.4.2...v2.4.3

gsudo - gsudo v2.4.2

Published by github-actions[bot] 10 months ago

What's Changed

Docs

New Contributors

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.4.0...v2.4.2

gsudo - gsudo v2.4.1-fixnoninteractive

Published by github-actions[bot] about 1 year ago

What's Changed

  • The code signing certificate expired, so I've applied the one donated by @parag_c_meta & signmycode.com. Please be patient until this certificate gets downloads and reputation on Antivirus vendors. Please report false positives!
  • Fix for #305 "Error: Invalid option: -noninteractive" running gsudo {command} on VSCode.

Docs

New Contributors

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.4.0...v2.4.1-fixnoninteractive

gsudo - gsudo v2.4.0

Published by github-actions[bot] about 1 year ago

What's Changed

  • Improved scripting scenarios by @gerardog in https://github.com/gerardog/gsudo/pull/286
    • gsudo status {key} returns exit code for booleans: 0(success) for true, 1(fail) for false
    • Added --no-output to gsudo status {key} --no-output to suppress output.
    • Added sample usage scripts and updated docs
    • For example:
      • gsudo status IsElevated --no-output && echo "This process is elevated!" โญ
  • Fixed issue on Cache ON not propagating --LogLevel or --Duration if cache was already active
  • Fix Error: Unable to connect to the elevated service/NullReferenceException by @gerardog in https://github.com/gerardog/gsudo/pull/292
  • Preserve console title after gsudo exit (#266) by @gerardog in https://github.com/gerardog/gsudo/pull/294

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.3.0...v2.4.0

gsudo - gsudo v2.3.1-beta

Published by github-actions[bot] about 1 year ago

What's Changed

  • Improved scripting scenarios by @gerardog in https://github.com/gerardog/gsudo/pull/286
    • gsudo status {key} returns exit code for booleans: 0(success) for true, 1(fail) for false
    • Added --no-output to gsudo status {key} to suppress output.
    • Fixed issue on Cache ON not propagating --LogLevel or --Duration if cache was already active
    • Added sample usage scripts and updated docs

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.3.0...v2.3.1-beta

gsudo - gsudo v2.3.0

Published by gerardog over 1 year ago

What's Changed

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.2.0...v2.3.0

gsudo - gsudo v2.2.0

Published by github-actions[bot] over 1 year ago

What's Changed

  • PowerShell Module Improvements by @gerardog in https://github.com/gerardog/gsudo/pull/275
    • The module can now be imported simply with Import-Module gsudoModule, eliminating the requirement for a full absolute path. Existing scripts using absolute paths will continue to work as expected.
      • ...because both the .MSI and Chocolatey installers now deploy the module files also to %ProgramFiles%\PowerShell\Modules\gsudoModule\.
    • The module version number is now properly updated with the build version.

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.1.0...v2.2.0

gsudo - gsudo v2.1.0

Published by github-actions[bot] over 1 year ago

What's Changed

  • Improvements in gsudo PowerShell Module
    • Added PowerShell syntax suggestions and auto-complete for gsudo (#233)
    • Added PowerShell functions:
      • Test-IsProcessElevated function, returns true if elevated.
      • Test-IsAdminMember function, returns true if user is member of the Local Administrators group, regardless of the elevation status.
      • gsudoPrompt function to add a red # to the prompt if user is admin. Requires the user to add: Set-Alias prompt gsudoPrompt in their $PROFILE to activate.
        gsudo prompt
    • Improved Get-Help gsudo
  • Fixed quotation issue when elevating a command with the first and last word has quotes.

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.10...v2.1.0

gsudo - gsudo v2.0.10

Published by gerardog over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.9...v2.0.10

gsudo - gsudo v2.0.9

Published by gerardog over 1 year ago

What's Changed

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.8...v2.0.9

gsudo - gsudo v2.0.9-FixWslPath

Published by github-actions[bot] over 1 year ago

Pre-Release

  • Fix for Prevent WSL to default to Windows directory (#260).
    image

This is a pre-release only available on GitHub. (not choco/winget/scoop). I expect it to not cause any issues, but if it does, please comment in the here #239.

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.8...v2.0.9-FixWslPath

gsudo - gsudo v2.0.8

Published by gerardog over 1 year ago

What's Changed

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.7...v2.0.8

gsudo - gsudo v2.0.7

Published by gerardog over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.6...v2.0.7

gsudo - gsudo v2.0.6

Published by github-actions[bot] over 1 year ago

What's Changed

  • BREAKING CHANGE: If you added gsudo module to your Powershell profile update its path to %ProgramFiles%\gsudo\Current or even better just do Import-Module (Get-Command gsudoModule.psd1).Path and let it pick up from your PATH variable.

New Contributors

Notes

  • The changes to choco installer mentioned on v2.0.5-ChocoInstallPreview are on hold for now.
  • I skipped v2.0.5 because the version number got locked on the nuget repository.

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.4...v2.0.6

gsudo - gsudo v2.0.5-ChocoInstallPreview

Published by github-actions[bot] almost 2 years ago

Release for testing changes in the Choco/MSI installer.

  • Fixed Windows 7 issue enumerating named pipes (#215)

  • Changes in MSI installer:

    • Installs to %ProgramFiles(x86)%\gsudo\vX.X.X
    • Creates a symlink %ProgramFiles(x86)%\gsudo\Current that links to vX.X.X
    • This allows to use gsudo to install a new gsudo version using WinGet (for Scoop/Choco that was already possible)
      gsudo winget upgrade gsudo
  • Changes in Chocolatey package:

    • This version no longer uses a custom Chocolatey installer, so not installing to C:\tools\gsudo\v2.x.x anymore
    • Instead, it uses the official gsudoSetup.MSI included in this release. (Mentioned above)
    • This means, for example, that even if you install with choco install gsudo, you can uninstall or upgrade with winget. Or uninstall with add or remove programs.
  • Scoop not affected.

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.4...v2.0.5-ChocoInstallPreview

gsudo - gsudo v2.0.4

Published by github-actions[bot] almost 2 years ago

What's Changed

  • Fix hang on Pwsh installed as a dotnet global tool #211

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.3...v2.0.4

gsudo - gsudo v2.0.3

Published by github-actions[bot] almost 2 years ago

What's Changed

Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.2...v2.0.3

Badges
Extracted from project README
Join the chat at https://gitter.im/gsudo/community CI Build Chocolatey Downloads GitHub Downloads
Related Projects