Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#21713 closed defect (fixed)

port load/unload lack root privs

Reported by: ryandesign (Ryan Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.2
Component: base Version: 1.8.1
Keywords: Cc:


lighttpd was installed with "sudo port install lighttpd" in a non-root MacPorts installation (which is now possible again as of r58524). But I can't start it with "port load".

$ sudo port load lighttpd
Error: Target org.macports.load returned: launchctl: CFURLWriteDataAndPropertiesToResource(/Library/LaunchDaemons/org.macports.lighttpd.plist) failed: -10
launch_msg(): Socket is not connected
Error: Status 1 encountered during processing.

"sudo launchctl load -w /Library/LaunchDaemons/org.macports.lighttpd.plist", for which "sudo port load lighttpd" is supposed to be an alias, worked fine.

MacPorts 1.8.1
Mac OS X 10.5.8 Intel
Xcode 3.1.2

Change History (5)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Summary: port load: CFURLWriteDataAndPropertiesToResource(/Library/LaunchDaemons/org.macports.lighttpd.plist) failed: -10port load/unload lack root privs

See if r60774 fixes this.

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Ping. Could you please test the fix?

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts 1.8.2MacPorts Future

comment:4 Changed 13 years ago by ryandesign (Ryan Schmidt)

Milestone: MacPorts FutureMacPorts 1.8.2
Resolution: fixed
Status: newclosed

Confirmed fixed. Updated ChangeLog in r62227 (trunk) and r62228 (release_1_8 branch).

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Was merged to the branch in r62219, BTW.

Note: See TracTickets for help on using tickets.