Re: Outstanding question

Adrian Ho <[email protected]> Sun, 9 Feb 2003 15:24:09 +0800
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
On Sat, Feb 08, 2003 at 11:17:11PM -0500, marrandy wrote:
> It reminded me that when I ps waux, I see it running as root although
> it later sheds those privelidges.

No, you should be seeing /tcpserver/ running as root -- it spawns ftpd
or httpd after accepting a connection.

> My question is how do you verify that everything is working fine and it has 
> shed privilidges etc.

As a one-off test, simply replace the call to httpd in your run script
with /usr/bin/id (or whatever utility you use to determine the real and
effective UIDs/GIDs on your system) and restart the service.  Then telnet
to your httpd port and see for yourself.  Once you're satisfied, undo
the above change and restart the service again.

- Adrian