Messages in this thread | | | Date | Wed, 11 Nov 1998 09:48:49 -0500 | From | Brian Gerst <> | Subject | Re: Why a 'nobody' process is using port 1024 ? |
| |
Ricardo Calixto Quesada wrote: > > I'm running kernel 2.0.35, glibc2.0.7, in one server with apache as user nobody. > But I found several times that apache had used port 1024 to connect to others servers. > Is this a bug ? of the kernel ? of the tcp/ip stack ? > > I assume that apache is using port 1024 because it is running as a proxy server.
Normally when you open outgoing TCP sockets, without giving a specific port number, the kernel will start allocating at 1024 and sequentially increase every time you call bind() without a port number. Apache probably was the first program to bind a TCP port, so it grabbed 1024.
PS. If you are thinking that port 1024 is priviledged (ie root only), it's not. Ports 0-1023 are priviledged.
--
Brian Gerst
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |