New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30978 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

can't install logrotate as non-root

Reported by: nefar@… Owned by: pixilla@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: jmr@…
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

comment:1 Changed 21 months ago by pixilla@…

  • 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 21 months ago by jmr@…

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

comment:3 Changed 21 months ago by pixilla@…

  • 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 21 months ago by jmr@…

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 21 months ago by pixilla@…

  • Status changed from new to closed
  • Resolution set to fixed

See r83434

Note: See TracTickets for help on using tickets.