Allowing a apache to access a user folder by using semanage
Josef Meile
jmeile at hotmail.com
Wed May 9 21:16:42 UTC 2007
> Ok, then is httpd_sys_content_t the right one? I solve it as follows:
>
> semanage fcontext -a -t httpd_t "/home/zopeuser/data(/.*)?"
> chcon -R -t httpd_sys_content_t /home/zopeuser/data
>
> It works now, but is it the correct way?
A small correction there. It should be
semanage fcontext -a -t httpd_t "/home/zopeuser/data(/.*)?"
chcon -R -t httpd_sys_content_t /home/zopeuser
If you don't give access to the user's root directory, then apache will
still fail.
More information about the fedora-selinux-list
mailing list