Try using ps -aef |grep httpd. The first column will display the user.
Also u can check  the config file of httpd(httpd.conf the values for the
directives  User , which is the user which apache is going to run as).

Warm Regards
Manoj.Solanki

On 7/31/07, Agnello George <[EMAIL PROTECTED]> wrote:
>
>   when i try ps -ef | grep httpd
> i get the following
> root 13936 1 0 Jul30 ? 00:00:00 /usr/local/bin/httpd -k
> start
> daemon 27158 13936 0 11:00 ? 00:00:00 /usr/local/bin/httpd -k
> start
> daemon 27159 13936 0 11:00 ? 00:00:00 /usr/local/bin/httpd -k
> start
> daemon 27160 13936 0 11:00 ? 00:00:00 /usr/local/bin/httpd -k
> start
> daemon 27161 13936 0 11:00 ? 00:00:00 /usr/local/bin/httpd -k
> start
> daemon 27162 13936 0 11:00 ? 00:00:00 /usr/local/bin/httpd -k
> start
> root 27176 26957 0 11:04 pts/1 00:00:00 grep httpd
>
> so does it men that httpd is running as daemon ???
>
> thnsk
>
> agnello
>
> On 7/31/07, nilesh shinkar <[EMAIL PROTECTED]<nmshinkar79%40yahoo.com>>
> wrote:
> >
> > Hi,
> >
> > Use ps -ef | grep httpd cmd to chk apache running with whcih user u will
> > get smthng like this .
> >
> > apache 8301 8297 0 Jul30 ? 00:00:00 /usr/sbin/httpd
> >
> > Rgds,
> > NIlesh
> >
> > Agnello George <[EMAIL PROTECTED] <agnello.dsouza%40gmail.com> <
> agnello.dsouza%40gmail.com>>
> > wrote: hey guys
> >
> > i hve one quesry ( like i always do ) .... i installed apache frm source
> > .... how do i know if apache is runnning as root www or apache.
> >
> > --
> > Warm Regards
> >
> > Agnello . G .Dsouza
> > www.agnellogeorge.blogspot.com
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> > ---------------------------------
> > Moody friends. Drama queens. Your life? Nope! - their life, your story.
> > Play Sims Stories at Yahoo! Games.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> --
> Warm Regards
>
> Agnello . G .Dsouza
> www.agnellogeorge.blogspot.com
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to