LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Directory Permissions question (https://www.linuxquestions.org/questions/linux-general-1/directory-permissions-question-192327/)

sopiaz57 06-11-2004 09:57 AM

Directory Permissions question
 
so i have a folder , /home/brian/www/html


and the permissions on that folder are rwx_ _ _ _ _ _, or 700


ok, so within that directory is some html that i configured apache to read and put on the web....how is apache reading those files though, it reads them but you would think with the permissions that way it wouldnt be able to

please help!

jim mcnamara 06-11-2004 10:36 AM

I believe apache runs as superuser, so it bypasses file protections.

hallamigo 06-11-2004 10:41 AM

Apache runs as whatever user and group that you specify in the Apache config file - for example:

user nobody
group nogroup

I've had problems in the past where if the file didn't have the correct permissions then Apache would error in trying to read them. Is your Apache config'd to run as your user?

sopiaz57 06-11-2004 11:12 AM

Hey apache is configured to run as apache, nobody.....and the user diretory is something different.

thanks

hallamigo 06-11-2004 12:44 PM

What are the permissions of the file(s) being read by apache? Do they match the permissions of the directory? Do they also match the owner and group of the directory?


All times are GMT -5. The time now is 11:53 PM.