lkml.org 
[lkml]   [1998]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.027 / U:1.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site