RE: problem accessing directories under /var/www/html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Steven Barre
Sent: Friday, October 22, 2010 1:08 PM
To: redhat-list@xxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxxx

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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

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


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux