Date: Sat, 4 Dec 2004 07:24:27 +0100 (CET) From: "Jesper Wallin" <jesper@hackunite.net> To: freebsd-security@freebsd.org Subject: Is my Apache server running as the root user or not? Message-ID: <1164.213.112.198.152.1102141467.squirrel@mail.hackunite.net>
index | next in thread | raw e-mail
Heya..
By reading my /usr/local/etc/apache2/httpd.conf, I can find out that my Apache is
running as the user "www" and the group "www" .. Yet, when I run sockstat, it tells me
one of the forks are runned as root and listening on port 80 as well as the other forks
are runned by www:www.. If I got a lot of users connecting to my server on port 80, will
thier requests ever be answered by the root fork or the www:www forks?
--- snip ---
[root@ninja:~]# sockstat -l4p80
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS www httpd
18149 3 tcp4 *:80 *:*
www httpd 18148 3 tcp4 *:80 *:*
www httpd 18147 3 tcp4 *:80 *:*
www httpd 14055 3 tcp4 *:80 *:*
www httpd 14054 3 tcp4 *:80 *:*
www httpd 14053 3 tcp4 *:80 *:*
www httpd 14052 3 tcp4 *:80 *:*
www httpd 14051 3 tcp4 *:80 *:*
root httpd 14050 3 tcp4 *:80 *:*
[root@ninja:~]#
--- snip ---
Best regards,
Jesper Wallin
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1164.213.112.198.152.1102141467.squirrel>
