Gsudo Versions Save

Sudo for Windows

v2.5.1

1 month 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

v2.5.0

1 month 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.
      • There is a bug, so this change works only after log-off or restart. Sorry! Will be fixed in v2.5.1
    • 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

v2.4.4

4 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

v2.4.3

4 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

v2.4.2

6 months ago

What's Changed

Docs

New Contributors

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

v2.4.1-fixnoninteractive

9 months 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

v2.4.0

10 months 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

v2.3.1-beta

10 months 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

v2.3.0

11 months ago

What's Changed

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

v2.2.0

11 months 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