Apache - running as root
Just configured and installed apache 1.33 on Fedora Core 3
When I run it all works ok but doing a ps aux | grep apache shows one of the processes running as root and the others as nobody - should then all be nobody or another user (maybe apache) and have no root users at all?) Is it a case of making a new user, changing file attribs and who it runs as to do this if needed? Thanks |
All of the threads handling network communications are run as nobody, and the main thread is run as root. That is normal.
|
Just for clarification's sake -- the main httpd process runs as root so that it can bind to port 80 and (if needed) 443. Only root can bind to ports < 1024 (under Linux), so it's necessary to have the server start as UID 0 then seteuid() down to someone with less power.
|
All times are GMT -5. The time now is 04:26 AM. |