Working as root while Apache is running; how much a risk?
Scot L. Harris
webid at cfl.rr.com
Fri Jul 9 18:54:44 UTC 2004
On Fri, 2004-07-09 at 14:41, Michael Sullivan wrote:
> When I issue a "ps -ef | grep httpd" I get:
>
> [root at bullet root]# ps -ef | grep httpd
> root 1938 1 0 13:06 ? 00:00:03 /usr/sbin/httpd
> apache 2063 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> apache 2064 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> apache 2065 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> apache 2066 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> apache 2067 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> apache 2068 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> apache 2069 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> apache 2070 1938 0 13:06 ? 00:00:00 /usr/sbin/httpd
> root 2419 2367 0 13:36 pts/1 00:00:00 grep httpd
>
> How do I fix this? I've tried doing "su apache", but it tells me that
> the account is not available....
Nothing to fix. This is what you want to see. The first entry is the
initial process that kicks off the child process which listen on the
ports. The last process listed is YOU running the grep command so that
is fine. the ones in between are run as the apache user which is
correct.
root 825 1 0 14:34 ? 00:00:00
/usr/local/apache2/bin/httpd
nobody 838 825 0 14:34 ? 00:00:00
/usr/local/apache2/bin/httpd
nobody 839 825 0 14:34 ? 00:00:00
/usr/local/apache2/bin/httpd
nobody 840 825 0 14:34 ? 00:00:00
/usr/local/apache2/bin/httpd
nobody 841 825 0 14:34 ? 00:00:00
/usr/local/apache2/bin/httpd
nobody 842 825 0 14:34 ? 00:00:00
/usr/local/apache2/bin/httpd
scot 1279 1254 0 14:51 pts/0 00:00:00 grep httpd
Above is what I see on my box. This is a RH8.0 box which happens to use
nobody as the user that runs the apache service. (I happen to be
running the 2.0.49 version built from source).
So your system is fine.
--
Scot L. Harris
webid at cfl.rr.com
The American Dental Association announced today that most plaque tends
to form on teeth around 4:00 PM in the afternoon.
Film at 11:00.
More information about the fedora-list
mailing list