[Zope] Regaining lost privileges

Dieter Maurer dieter@handshake.de
Sun, 3 Sep 2000 13:28:36 +0200 (CEST)


Andrew Kenneth Milton writes:
 > Is there anyway to regain 'root' privs from inside a zope product?
 > 
 > Using the -u flag to start causes the privs to be permanently gone because
 > z2.py uses setuid + setgid (and python doesn't seem to define sete[ug]id, at
 > least not on my system).
 > 
 > Other than running zope as root permanently (which I really would like to
 > avoid), does anyone have any quick ideas on how to achieve this?
The same trick could be used by any process to gain root privileges....

It is easy to implement a Python wrapper for the
sete[ug]id.


Dieter