hi,
i runing local web server in fc6 with apache, SELinux don't let to open the web server the error is 403:
Forbidden:
you don't have permission to open / in this server.
the DocumentRoot is /home/jaan/www/html and permissions are as:
drwxr-xr-x jaan jaan user_u:object_r:httpd_sys_content_t www
i already run this commmand from home:
restorecon -r www
this is the selinuxtoubleshoot message:
Summary:
SELinux is preventing the /usr/sbin/httpd from using potentially mislabeled files mibs (usr_t).
Detailed Description:
SELinux has denied the /usr/sbin/httpd access to potentially mislabeled files mibs. This means that SELinux will not allow http to use these files. Many third party apps install html files in directories that SELinux policy can not predict. These directories have to be labeled with a file context which httpd can accesss.
Allowing Access:
If you want to change the file context of mibs so that the httpd daemon can access it, you need to execute it using chcon -t httpd_sys_content_t.mibs. You can look at the httpd_selinux man page for additional information.
Source Contextsystem_u:system_r:httpd_tTarget Contextsystem_u:object_r:usr_t
Target Objectsmibs [ dir ]
Affected RPM Packages httpd-2.2.3-5 [application]
Policy RPM selinux-policy-2.3.18-10
Selinux Enabled True
when i run the:
chcon -t httpd_sys_content_t.mibs
this is the error:
$ chcon -t httpd_sys_content_t.mibs
chcon: too few arguments
Try `chcon --help' for more information.
any one can help please?