Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Out of laziness I want to be able FTP into my WWW directory.

However, the SELinux permissions for apache(user_u:object_r:httpd_sys_content_t) to be able to use the WWW directory and for the user(system_u:object_r:user_home_dir_t ) to use the WWW directory are different.

Anyway, around this problem without disabling SELinux?

Thanks.

share|improve this question
add comment

2 Answers

Create a third file context and add it to both domains.

share|improve this answer
add comment

You have to set the httpd_enable_homedirs to true. See http://diegobz.net/2010/03/07/enabling-apache-userdir-public_html-with-selinux-enabled-on-fedora/ http://fedoraproject.org/wiki/SELinux/apache

(assuming you're on Fedora)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.