[ale] Apache permission problem
Brian Pitts
brian at polibyte.com
Thu Jan 21 20:11:01 EST 2010
On 01/21/2010 07:34 PM, Terry Bailey wrote:
> Hi,
>
> I have a web server running Centos in a data center. If I use ftp to
> upload file abc.jpg to a directory within the document root, apache
> displays it just fine.
>
> However, when I send abc.jpg as an attachment to mutt, save the file
> and then mv it over to the same directory within the document root,
> apache says that I do not have permission to access the file.
>
> The owner/group and read/write/execute permissions are the same in both cases.
>
> The must be something hidden like a sticky bit.
The problem is the selinux context. Check with ls -Z and you'll see that
the one that can't be read has a context of user_home_t when you
probably need httpd_sys_content_t. You can fix it with chcon.
--
All the best,
Brian Pitts
More information about the Ale
mailing list