Bug 133955 - Apache UserDir does not work if SELinux is set to Enforcing
Summary: Apache UserDir does not work if SELinux is set to Enforcing
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted   
(Show other bugs)
Version: 3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
Keywords: FutureFeature
Depends On:
Blocks: FC3Target
TreeView+ depends on / blocked
Reported: 2004-09-28 17:15 UTC by Tero Ojala
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-06 22:49:27 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Tero Ojala 2004-09-28 17:15:23 UTC
Description of problem:

Apache's UserDir does not work if SELinux set to Enforcing.

How reproducible:

Configure Apache UserDir. Switch SELinux Enforcing/Permissive. Works
when SELinux is set to Permissive. Does not work with Enforcing.

Actual results:

Apache does not serve from www.mysite.com/~user and "(13)permission
denied. access to /~user denied." appears in /var/log/httpd/error_log

Expected results:

Apache serves from ~user/public_html

Additional info:

Comment 1 Daniel Walsh 2004-09-30 18:49:10 UTC
chcon -R -t httpd_user_content_t ~USERNAME/public_html

Comment 2 Ben Levenson 2004-10-06 22:49:27 UTC
This works for me.
* Verify settings in httpd.conf
* Verify file contexts (comment #1)
* Verify directory perms for ~user and ~user/public_html


Note You need to log in before you can comment on or make changes to this bug.