Winget-AutoUpdate icon indicating copy to clipboard operation
Winget-AutoUpdate copied to clipboard

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

Open FaserF opened this issue 1 year ago • 2 comments

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 avatar Oct 24 '24 12:10 FaserF

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.

FaserF avatar Oct 24 '24 16:10 FaserF

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

github-actions[bot] avatar Nov 24 '24 02:11 github-actions[bot]

no-stale, still there

FaserF avatar Nov 24 '24 10:11 FaserF

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

github-actions[bot] avatar Dec 26 '24 02:12 github-actions[bot]

Not stale, fix is there but needs to be merged

FaserF avatar Dec 26 '24 07:12 FaserF

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

github-actions[bot] avatar Jan 27 '25 02:01 github-actions[bot]