Ticket #25331 (closed defect: fixed)
failure to create build directory with non-root macportsuser
| Reported by: | goldendragonmaster@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts 1.9.2 |
| Component: | base | Version: | 1.9.1 |
| Keywords: | Cc: | ||
| Port: |
Description
(OS X Snow Leopard 10.6.4, MP 1.9.1)
After upgrading from MP version 1.8.2 to 1.9.1 and trying to upgrade or install any port,
"sudo port ..." command fails to create the build directory for that port. For example:
Error: Unable to upgrade port: can't create directory \ "/opt/local/var/macports/build/_opt_local_var_macports_sources\ _rsync.macports.org_release_ports_lang_perl5.12": permission denied
I'm able to mkdir directories myself, so the permission are ok (root:admin).
Attachments
Change History
Changed 3 years ago by goldendragonmaster@…
- Attachment sudo_port_-d_upgrade_outdated_OUTPUT.txt added
comment:1 Changed 3 years ago by snc@…
Goldendragon's configuration is set to run MacPortsUser as himself, instead of root. This is likely the culprit, however it had worked fine in 1.8.2 and I believe 1.8.0 is when we added the dropping of privs. Weird combination or has the behavior changed?
comment:2 Changed 3 years ago by jmr@…
- Status changed from new to closed
- Keywords snowleopard removed
- Resolution set to fixed
- Summary changed from port upgrade/install (any port) fails to create build directory: permission denied after upgrading from MP 1.8.2 to 1.9.1 to failure to create build directory with non-root macportsuser
Note: See
TracTickets for help on using
tickets.


Output of sudo port -d upgrade outdated