LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache - running as root (https://www.linuxquestions.org/questions/linux-software-2/apache-running-as-root-259327/)

The_JinJ 11-25-2004 07:09 PM

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

Aeiri 11-26-2004 01:08 AM

All of the threads handling network communications are run as nobody, and the main thread is run as root. That is normal.

sigsegv 11-26-2004 01:43 AM

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.