[Bug]: Cannot run Userinstallations / Permissions to logs folder wrong
The problem
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
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
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.
This issue is stale because it has been open for 30 days with no activity.
no-stale, still there
This issue is stale because it has been open for 30 days with no activity.
Not stale, fix is there but needs to be merged
This issue is stale because it has been open for 30 days with no activity.