[Twisted-Python] Log file ownership

Enrique Samson Jr, enriquejr at gmail.com
Wed Jun 6 18:46:57 MDT 2012


Hi,

I am running an app as root on Linux using a .tac file and twistd. The
application object is initialized with a certain gid and uid. Logging is
configured to rotate daily by way of DailyLogFile. However, the log file
it creates is owned by root with 600 file permission and log rotation is
failing. I have read about acl to configure default file permissions but
is there a way to solve this only in Twisted?

--Enrique




More information about the Twisted-Python mailing list