Re: Dropping privileges in python daemon

2008-08-18 Thread Matthias Bläsing
Am Mon, 18 Aug 2008 14:33:27 +0200 schrieb David Härdeman: > > I'm used from C programming to use setresuid() to change the real, > effective and saved uid in one go, and although the os module has some > of the set*uid() functions it doesn't seem to have setresuid(). no - python offers the posix

Dropping privileges in python daemon

2008-08-18 Thread David Härdeman
I'm currently working on a python daemon which needs to be able to correctly drop privileges after opening ports and files that it needs to open as root. I'm used from C programming to use setresuid() to change the real, effective and saved uid in one go, and although the os module has some of the