Re: Is my Apache server running as the root user or not?

看板FB_security作者時間21年前 (2004/12/04 19:14), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/5 (看更多)
On Sat, 4 Dec 2004 07:24:27 +0100 (CET) "Jesper Wallin" <jesper@hackunite.net> wrote: > 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? Process owned by root is the parent process. It doesn't actually handled connections, only sets up socket(s) at initialization stage. Children processes (owned by your User/Group settings) accept new connections and deal with the requests. Since you need to be root be able to bind on port 80, parent process is owned by root. clem -- _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #11iPmS00 (FB_security)
討論串 (同標題文章)
文章代碼(AID): #11iPmS00 (FB_security)