[KULUA] file descriptor question

James Williams kulua at virtex.org
Thu Nov 29 22:52:25 CST 2001


On Thu, 29 Nov 2001, David Nicol wrote:

> the two processes are not parent/child.  I want to have a non-root
> process respond to TCP connections to a low port (okay, port 80) without
> the process doing a change of UID.

Oh no! We're cross-posting again!  Oh well.

I just wanted to make sure you know that you would only have to do a
change of UID once at the very beginning of the program.  Once the port is
open, you drop privileges (change UID), then accept any number of further
connections on that port as a non-privileged user.

-- 
           /   AIX     | James Williams
   i386   /   Irix    | kulua at virtex.org
PA_RISC __   Sco     |
  Sparc  \// OSF     | All things being equal, 1 and 2 are,
PowerPC  ///  Linux   | well, equal.
 RS6000  ///  FreeBSD |
  Alpha //\_ Ultrix  |
   MIPS      DG/UX   |
MC68000   /   Solaris |
          /    HPUX    |




More information about the Kclug mailing list