Opened 13 years ago

Closed 13 years ago

#30978 closed defect (fixed)

can't install logrotate as non-root

Reported by: nefar@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: jmroot (Joshua Root)
Port: logrotate

Description

--->  Activating logrotate @3.8.0_1+gzip+startupitem
Error: Target org.macports.activate returned: error renaming "/var/folders/Rt/RtlcSSmbEGaAtnBHeaIrTU+++TI/-Tmp-/mpextractVf2SkO7c/Library/LaunchDaemons/org.macports.logrotate.plist" to "/Library/LaunchDaemons/org.macports.logrotate.plist": permission denied

For non-root, it should use:

~/Library/LaunchAgents/

Change History (5)

comment:1 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Owner: changed from macports-tickets@… to pixilla@…

Check out the notes:

 $ port notes logrotate

If you install without the startupitem variant no plist is installed. You can then do as you wish.

 $ port install logrotate -startupitem

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

You could not create the link in /Library/LaunchDaemons when [getuid] != 0 like base does.

comment:3 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Cc: jmr@… added

jmr: Is your message for me? If so I do not understand.
If one uses the -startupitem variant then no startupitem is installed into /Library/LaunchDaemons.
The example plist can be copied into ~/Library/LaunchAgents if so desired.

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

The point is that you shouldn't have to deselect a variant to make installing as non-root work. You don't have to for ports that let base create their startupitems, and that behaviour could easily be recreated here by checking the uid.

comment:5 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

See r83434

Note: See TracTickets for help on using tickets.