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

Non-admin that owns an app in /Applications can’t update it #157

Closed
markmentovai opened this issue Nov 18, 2015 · 4 comments · Fixed by #207
Closed

Non-admin that owns an app in /Applications can’t update it #157

markmentovai opened this issue Nov 18, 2015 · 4 comments · Fixed by #207

Comments

@markmentovai
Copy link

I’m a non-admin user (for security purposes), but I know that Atom doesn’t update itself properly when owned by another user, so I made a concession and allowed it to be owned by my non-admin user. I still stuck it in /Applications, which my non-admin user doesn’t have write access to.

Atom still can’t update itself. I get “Restart and Install Update” in the Atom menu, but when I hit it, Atom restarts without having installed an update.

~Library/Application Support/com.github.atom.ShipIt/ShipIt_stderr.log contains messages like this

2015-11-18 17:45:46.311 ShipIt[14118:552694] Beginning installation
2015-11-18 17:45:46.323 ShipIt[14118:552693] Couldn't abort install and restore owned bundle to previous location file:///Applications/Atom.app, error NSError { domain: NSPOSIXErrorDomain, code: 2, description: "No such file or directory" }
2015-11-18 17:45:48.215 ShipIt[14118:552695] Installation error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo={NSLocalizedDescription=Permission denied}
2015-11-18 17:45:48.215 ShipIt[14118:552695] ShipIt quitting

@joshaber
Copy link
Contributor

Thanks for opening this up! We're already tracking this issue at #131.

@markmentovai
Copy link
Author

I think that this is different from #131. I actually do own Atom.app, but I can’t write to its parent directory. It doesn’t prompt for a password (as it does in #131) but the update fails.

@joshaber
Copy link
Contributor

Fair enough!

@joshaber joshaber reopened this Nov 18, 2015
@joshaber joshaber changed the title Non-admin that owns an app in /Applications still can’t update it Non-admin that owns an app in /Applications can’t update it Jun 1, 2016
@fancyydk
Copy link

Can confirm this. If a standard user who knows the admin password installs an Electron app in /Applications (will be prompted to enter the admin credentials), then any subsequent updates will run without asking for the admin credentials again, then fail with the errors OP posted. Any solution or workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants