LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-25-2004, 08:09 PM   #1
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
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
 
Old 11-26-2004, 02:08 AM   #2
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
All of the threads handling network communications are run as nobody, and the main thread is run as root. That is normal.
 
Old 11-26-2004, 02:43 AM   #3
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How could I tell if Im running as ROOT? wardialer Linux - Security 9 03-19-2005 10:47 PM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 10:51 AM
Running apache as root at startup asktoby Linux - Security 2 01-07-2004 06:33 PM
running as root murray_linux Slackware 4 11-11-2003 08:30 PM
installed as root, running as non-root? daniela Linux - Newbie 4 09-09-2003 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration