LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-11-2004, 09:57 AM   #1
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
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!
 
Old 06-11-2004, 10:36 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
I believe apache runs as superuser, so it bypasses file protections.
 
Old 06-11-2004, 10:41 AM   #3
hallamigo
Member
 
Registered: Feb 2004
Location: Utah, USA
Distribution: Debian
Posts: 230

Rep: Reputation: 31
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?
 
Old 06-11-2004, 11:12 AM   #4
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
Hey apache is configured to run as apache, nobody.....and the user diretory is something different.

thanks
 
Old 06-11-2004, 12:44 PM   #5
hallamigo
Member
 
Registered: Feb 2004
Location: Utah, USA
Distribution: Debian
Posts: 230

Rep: Reputation: 31
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?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Permissions mbjunior99 Mandriva 2 02-27-2005 07:17 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
permissions question... can I make a directory writable from my user account hindenbergbaby Linux - Newbie 9 10-20-2003 04:42 PM
A small question about directory permissions koyi Linux - Newbie 1 08-11-2003 11:08 AM
directory permissions knueven7 Linux - Software 1 04-14-2003 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:48 AM.

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