[ZODB-Dev] ZEO signal feature

Chris McDonough chrism@zope.com
Sun, 6 Oct 2002 11:56:38 -0400


> > On Wed, Oct 02, 2002 at 07:37:12AM +0100, Toby Dickenson wrote:
> > > > Note that it only *starts* as root, and drops back to normal
privs if
> > > > you use runzeo with the -u switch.
> > >
> > > Yes, but it still drops root privelidges a little too late for
my
> > > liking. Both ZEO and Zope open log files as root, and Zope (but
> > > not ZEO) even opens the storage as root.
> >
> > Can this be changed, though?
>
> It's probably unavoidable that the log file is opened as root --
it's
> used to report "can't setuid()". :-)

This message should probably go to stdout or stderr.  The logfile
should be opened as the effective user.  Pidfiles too.  The only real
purpose to running as root is to be able to bind to low-numbered TCP
ports.  I've been trying to get the time to fix this in Zope as well.

- C