microsoft / microsoft/winget-pkgs
[Package Issue]: waterlan.dos2unix user rights are not set for multiuser machine
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
installs and runs fine but only for the user who installed it.
Installing with "--scope machine" works but only for the user who installs it.
all other users on the same machine receive an "access denied error". this is because the acces rights are set to RX (read execute) for the owner but to nothing for other users.
to fix it this commands can be run:
`
icacls "C:\Program Files\WinGet\Packages\waterlan.dos2unix_Microsoft.Winget.Source_xxxxxxx\bin" /grant Everyone:(RX)
`
Steps to reproduce
run from an admin account
winget install --id=waterlan.dos2unix --silent --accept-package-agreements --accept-source-agreements --scope machine
now run from a normal user account (non admin):
dos2unix /?
you get
access denied
To fix this we can grant read and execution rights to all users: run from the admn account this (replace xxxxxx with the installation string.. i think its random)
icacls "C:\Program Files\WinGet\Packages\waterlan.dos2unix_Microsoft.Winget.Source_xxxxxxxxxx\bin" /grant Everyone:(RX)
now run again from normal user
dos2unix /?
a bunch of text should come with the programs version info
Actual behavior
a normal non-admin user gets "acces denied"
Expected behavior
program should run
Environment
Windows Package Manager v1.10.340
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.3476
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.340.0
Screenshots and Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the machine-scope installation with the provided winget command, then run dos2unix /? as a non-admin user. Review the waterlan.dos2unix package definition and installation behavior; done means the command runs for other users without manually applying the shown icacls permission change.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100