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

Issue: 0x80070005 Access denied for winget commands after usage of gsudo (owner of folder %localappdata%\Temp\WinGet is changed to the used admin account) #376

Open
coka4you opened this issue Sep 10, 2024 · 4 comments

Comments

@coka4you
Copy link

Issue Description

After executing the command ‘gsudo winget xyz (e.g.: list)’, the owner of the folder %localappdata%\Temp\WinGet is changed to the local admin account. Explicit permissions are set for the admin account used. As a result, all subsequent winget commands under normal user rights fail with the message ‘Access denied’. This does not occur with a regular shell with elevated rights (via UAC).

Only manually taking ownership and granting full access for the normal user or deleting the folder %localappdata%\Temp\WinGet will allow further winget commands without admin rights.

Steps to Reproduce

  1. cmd: winget list -> everything fine
  2. cmd: gsudo winget list -> everything fine
  3. cmd: winget list -> access denied
  4. take ownership for %localappdata%\Temp\WinGet
  5. cmd: winget list -> everything fine

Screenshots

Context:

  • Windows version: Win10 22H2, Build 19045.4780
  • gsudo version: v2.5.1
@borque
Copy link

borque commented Dec 7, 2024

I can confirm this bug on Win11 23h2.

@gerardog
Copy link
Owner

gerardog commented Dec 8, 2024

Are you using a local admin account, or entering credentials for other user in the UAC Popup?

@borque
Copy link

borque commented Dec 8, 2024

I use a normal local user account and have to enter the credentials of a different local account with admin priviliges.

@coka4you
Copy link
Author

I use a normal local user account and have to enter the credentials of a different local account with admin priviliges.

Same here

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

3 participants