problem accessing directories under /var/www/html

Ramsey, Robert L robert-ramsey at uiowa.edu
Fri Oct 22 19:19:10 UTC 2010


Someone contacted me off list about this.  It's the default SELinux configuration that's causing the problem in both 5 and 6 beta.

For some reason, if you drag a folder or tar creates the folder, SELinux sets the permissions to disallow reading by httpd, even if the files are owned by the apache group and have g+r on them.  I right clicked on the html folder and changed the SELinux Context to "Read from all httpd scripts and the daemon" and that fixed it.

Unfortunately I can't remember the exact default phrase in the SELinux Context, and none of the options I see now look right.  It was a real phrase like "Read from all httpd scripts and the daemon," but all I have options for are things like httpd_user_content_t or httpd_user_contentt_ra_t.

It's easy enough to fix, but I am very curious to know the reasoning behind making that setting the default.

Bob

-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Steven Barre
Sent: Friday, October 22, 2010 1:08 PM
To: redhat-list at redhat.com
Subject: Re: problem accessing directories under /var/www/html

  Hey Bob

Sounds like a permissions issue. TAR can hold file permissions and when 
extracted will keep those permissions.

When you copied it you "loose" the permissions and they reset to the 
default for the directory.

Can you do a ls -l and send that to us? That should show the permission 
difference between somefile/index.html and new/index.html

=================================================
Steven Barre
steven at realestatewebmasters.com

Systems and Support Manager
Real Estate Webmasters
==================================================


On 10/22/2010 10:06, Ramsey, Robert L wrote:
> oes anyone have any idea

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list