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

[Bug]: Cannot run Userinstallations / Permissions to logs folder wrong #752

Open
FaserF opened this issue Oct 24, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@FaserF
Copy link
Contributor

FaserF commented Oct 24, 2024

The problem

image

Since WAU 2.0.0 and the move from "C:\ProgramData\Winget-AutoUpdate\Logs" to "C:\Program Files\Winget-AutoUpdate\logs" something must have changed with handling the permissions in the folder.
With WAU 1.X.X I have used the old winget-install to install apps in the userpart (for example Greenshot.Greenshot) and the logoutput worked fine with writing to the WAU logs folder. Since 2.0.0 this does not work anymore with permissions denied.

What version of WAU has the issue?

2.0.0

What version of Windows are you using (ex. Windows 11 22H2)?

Windows 11 24H2

What version of winget are you using?

v1.8.1911

Log information

No response

Additional information

No response

@FaserF FaserF added the bug Something isn't working label Oct 24, 2024
@AndrewDemski-ad-gmail-com
Copy link
Contributor

Hi,
only the "C:\Program Files\Winget-AutoUpdate\logs\updates.log" file has additional RW permissions.
Logs folder is still possessing inherited access rights from ProgramFiles folder.
Also I cannot recreate your problem, logfile accepts outputs from Winget-AutoUpdate-UserContext task.

BR
AD

FaserF added a commit to FaserF/Winget-AutoUpdate that referenced this issue Oct 24, 2024
@FaserF
Copy link
Contributor Author

FaserF commented Oct 24, 2024

Hi @AndrewDemski-ad-gmail-com
thanks for the Feedback!
I was testing it with the "Winget-Install.ps1" while installing an application in the name of the user without admin permissions (Greenshot). Got a lot of errors which said that there is no access in writing the logs.
Interesting, that it works with WAU user runs, but WAU elevates itself to run in the user, maybe thats the difference.

Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 24, 2024
@FaserF
Copy link
Contributor Author

FaserF commented Nov 24, 2024

no-stale, still there

@github-actions github-actions bot removed the stale label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants