Opened 8 years ago

#5296 defect new

twistd logfile and UID/GID privileges

Reported by: Tom Sheffler Owned by:
Priority: normal Milestone:
Component: core Keywords: twistd logfile
Cc: Branch:


When twistd starts as root, and is asked to drop privileges to UID/GID, and it is creating and rotating a logfile, the following will occur:

  • the logfile wll be created as root
  • the logfile will be rotated as UID/GID

The current implementation places some strange restrictions on setting up LOGDIR, and if these restrictions aren't followed some undocumented things happen.

  • If LOGDIR is writable by UID/GID and LOGFILE is writable by UID/GID then a new logfile will be opened and old files will be rotated
  • else, the initial logfile will be appended to indefnitely

Read here for more back information:

Change History (0)

Note: See TracTickets for help on using tickets.