[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Apache permission problem
- Subject: [ale] Apache permission problem
- From: brian at polibyte.com (Brian Pitts)
- Date: Thu, 21 Jan 2010 20:11:01 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
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