D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Apache...





Neil Stone wrote:
On Fri, 2002-07-26 at 11:16, Steve Marvell wrote:

On Fri, Jul 26, 2002 at 11:09:08AM +0100, Neil Stone wrote:


User apache.apache runs.. apache !! and it is any user from any remote
machine trying to access the file !

No quite what I meant. I mean, the apache daemon can be running as apache and the requests to certain Hosts, Locations and Directories can be run as bob, neil or steve, locally.

Steve



And i would find this out how ??? couldn't i just make the files world
readable ?

to find out which user apache is running as you can use


ps aux | grep apache

on my machine i get the output

--------------8<-------------------
kbailey@xxxx:~$ ps aux | grep apache
root 297 0.0 2.3 72168 2932 ? S Jul27 0:01 /usr/sbin/apache


www-data 938 0.0 2.2 72180 2820 ? S 06:26 0:00 /usr/sbin/apache

www-data 939 0.0 2.3 72180 2972 ? S 06:26 0:00 /usr/sbin/apache

www-data 940 0.0 2.3 72180 2972 ? S 06:26 0:00 /usr/sbin/apache

www-data 941 0.0 2.3 72180 2972 ? S 06:26 0:00 /usr/sbin/apache

www-data 942 0.0 2.3 72180 2972 ? S 06:26 0:00 /usr/sbin/apache

kbailey   1445  0.0  0.3  1340  472 pts/0    S    12:43   0:00 grep apache
--------------8<-------------------

as you can see - the apache listening processes are run by the user 'www-data' on my debian machine. if the files have the standard rw-r--r-- permissions that should be fine. (this means they are readable by any user on your system.

i think on slackware the user is 'nobody' and on RH it is something else again.

HTH

kev


-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.


Lynx friendly