Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gsudo staying open after using in Windows Terminal #24

Closed
privacyguy123 opened this issue Feb 24, 2020 · 2 comments
Closed

gsudo staying open after using in Windows Terminal #24

privacyguy123 opened this issue Feb 24, 2020 · 2 comments

Comments

@privacyguy123
Copy link

Title says it all - after closing Windows Terminal it's still showing as a running process on Windows 10.

image

@gerardog
Copy link
Owner

gerardog commented Feb 24, 2020

That would be the 'credentials cache'. It's the elevated gsudo instance that stays idle for 5 minutes in case you need to elevate again without UAC popup, but its limited to (only allows) the same caller process (WT). It should go away 5 minutes after the last gsudo command ended (if you created a gsudo profile, then that would be 5 minutes after you closed the tab). Let me know if it doesn't.

If you don't like the credentials cache you can disable it with gsudo config CredentialsCacheDuration 00:00:00 or any duration (HH:MM:SS).
In the upcoming v0.7 release you could also do gsudo -k to expedite the service closing (inspired in *nix sudo -k / sudo --reset-timestamp, or edit the profile to use gsudo --nocache cmd.

Nonetheless you gave me an idea: The credential cache could just detect that the allowed process (WT) has ended, and therefore end the service. Dully noted.

@privacyguy123
Copy link
Author

Thanks! Appreciate the quick & in depth reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants