Question on a boolean related to httpd service.
Hi,
I am trying to enable <access to user's home directory> option on my web server running on RHEL7. Configured accordingly for access to public_html directory under one of my user's(testuser) account and tested out things are working(Able to access index.html under ~testuser/public_html directory from a remote web client).
Here is my doubt:
selinux mode is enforcing and boolean related to httpd_enable_homedirs is off. I wonder why the content(index.html) under ~testuser/public_html is still accessible in spite of httpd_enable_homedirs is off/
Thanks
Responses
Is it possible the SELinux label of the user's public_html folder and contents are properly set to httpd_sys_content_t already? I believe when the SELinux boolean is enabled it allows HTTPD to serve content when there are different SELinux context on the files located in user public_html locations.
ls -laZ /home/user/public_html
Do you have a semanage policy enforced?
semanage fcontext --list | grep 'public_html'
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
