Re: [Twisted-Python] Log file ownership

2012-06-26 Thread Glyph
On Jun 26, 2012, at 6:49 PM, David Strauss wrote: > You can also bind to privileged ports now using listeners like systemd > (and, presumably xinetd). xinetd has some mechanism to pass the listening socket, but I don't think Twisted supports it yet. I believe the string endpoint description f

Re: [Twisted-Python] Log file ownership

2012-06-26 Thread David Strauss
You can also bind to privileged ports now using listeners like systemd (and, presumably xinetd). -- David Strauss    | da...@davidstrauss.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/list

Re: [Twisted-Python] Log file ownership

2012-06-13 Thread Glyph
On Jun 11, 2012, at 12:21 AM, Flavio Grossi wrote: > twistedmatrix.com> writes: > > >> >> Log rotation - ie, renaming a file - isn't affected by the permissions >> of the log file. The permissions of the *directory containing the log >> file* control whether it can be renamed (and a new on

Re: [Twisted-Python] Log file ownership

2012-06-11 Thread Flavio Grossi
twistedmatrix.com> writes: > > Log rotation - ie, renaming a file - isn't affected by the permissions > of the log file. The permissions of the *directory containing the log > file* control whether it can be renamed (and a new one created) or not. > > So it doesn't matter what permissions

Re: [Twisted-Python] Log file ownership

2012-06-10 Thread Glyph
On Jun 8, 2012, at 5:57 AM, exar...@twistedmatrix.com wrote: > On 7 Jun, 12:46 am, enriqu...@gmail.com wrote: >> 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 rotat

Re: [Twisted-Python] Log file ownership

2012-06-08 Thread exarkun
On 7 Jun, 12:46 am, enriqu...@gmail.com wrote: >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

Re: [Twisted-Python] Log file ownership

2012-06-07 Thread Tobias Oberstein
> root). Since presumably the goal is to bind to a port <1024, you can do that > instead using authbind > (http://manpages.ubuntu.com/manpages/hardy/man1/authbind.1.html). Just some comments .. == For binding ports <1024, there is at least one more option: Since Linux kernel 2.6.24, the kernel

Re: [Twisted-Python] Log file ownership

2012-06-06 Thread Enrique Samson Jr,
On 6/7/12 10:27 AM, Itamar Turner-Trauring wrote: > On 06/06/2012 08:46 PM, Enrique Samson Jr, wrote: >> 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

Re: [Twisted-Python] Log file ownership

2012-06-06 Thread Itamar Turner-Trauring
On 06/06/2012 08:46 PM, Enrique Samson Jr, wrote: > 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 ow

[Twisted-Python] Log file ownership

2012-06-06 Thread Enrique Samson Jr,
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 fail