Permission denied as a standard user
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 4.8k
- Forks
- 182
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
When using xcodes under a standard user (non-admin), the installation into /Applications will fail.
Downloading with aria2 (/Users/ci/homebrew/bin/aria2c)
(1/6) Downloading Xcode 14.2.0+14C18: 99 %
(2/6) Unarchiving Xcode (This can take a while)
Using regular unxip. Try passing `--experimental-unxip` for a faster unxip process
(3/6) Moving Xcode to /Applications/Xcode-14.2.0.app
“Xcode” couldn’t be moved because you don’t have permission to access “Applications”.
I suggest to ask for the credentials of an admin account and to execute the moving operation under this user.
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 tracing the installation step that moves the downloaded Xcode app into /Applications, then reproduce it as a standard macOS user. The work is done when installation can handle the permission failure by requesting administrator credentials and completing the move, with coverage for the non-admin case if the project has a relevant test path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100