LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-14-2005, 03:27 AM   #1
future assassin
LQ Newbie
 
Registered: Jan 2003
Posts: 23

Rep: Reputation: 15
What does this mean


Noticed this today while looking at top. Can someone give me more info on the following.

1013 root 8 0 4444 4444 3996 S 0.0 0.9 0:00.15 httpd
 
Old 08-14-2005, 03:48 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
This is the HTTP (Web) server. Try accessing http://localhost/ in your browser and see if it works.
 
Old 08-14-2005, 03:50 AM   #3
future assassin
LQ Newbie
 
Registered: Jan 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Sorry should have added why did it run under root?
 
Old 08-14-2005, 03:57 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
What kind of Web server do you have? If you have Apache, then you should look in your httpd.conf; the "User" and "Group" directives should specify what user to run as.
 
Old 08-14-2005, 07:59 AM   #5
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Re: What does this mean

Quote:
Originally posted by future assassin
Noticed this today while looking at top. Can someone give me more info on the following.

1013 root 8 0 4444 4444 3996 S 0.0 0.9 0:00.15 httpd
Do you see only this process ?
httpd has many processes. The master process runs as root usually (it binds port 80 etc) and the others as the user you mention
in the httpd.conf

e.g the output of top in my box
3104 root 16 0 77832 5068 3324 S 0.0 0.5 0:00.09 httpd
3105 nobody 15 0 77968 5372 3536 S 0.0 0.5 0:00.02 httpd
3106 nobody 15 0 77832 5216 3428 S 0.0 0.5 0:00.00 httpd

"top" doesn't mention it but if i run "ps" i get
root 3104 1 0 Aug12 ? 00:00:00 /usr/sbin/httpd -DSSL
nobody 3105 3104 0 Aug12 ? 00:00:00 /usr/sbin/httpd -DSSL
nobody 3106 3104 0 Aug12 ? 00:00:00 /usr/sbin/httpd -DSSL

As you see the parent pid of the process running as root is 1 (init) and the parent pid of the others is 3104 (the master process)
So, it may not be anything to worry about.
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:54 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