On Mon, Jan 22, 2007 at 12:19:16PM +0100, Alexander Farber wrote:
> I'm writing a small network daemon program and
> want it to drop priviliges after it opens a listening port.

You might also be interested in looking at the ucspi-tcp and ipsvd
packages.  They both include programs to listen on a port and change
UID before accepting any connections.

ucspi-tcp's homepage: http://cr.yp.to/ucspi-tcp.html
ipsvd's homepage: http://smarden.org/ipsvd/

(ipsvd is also packaged by OpenBSD.)

Reply via email to