Re: Forbidden: can't access *.html files in /var/www/html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Sep 29, 2010 at 5:29 PM, Simon Billis <simon@xxxxxxxxxx> wrote:
> Can you show the output of ls -laZ please? This will show the selinux
> context information for the files - the error is usually to do with the
> context of the files.

Hello and thanks for your reply. The SELinux stuff is new for me.

Yes I have moved that Alex.html from my home dir and (the 1st one fails):

# ls -laZ /var/www/html/Alex.html
-r--r--r--  root root system_u:object_r:user_home_t    /var/www/html/Alex.html

# ls -laZ /var/www/html/test/Alex.html
-r--r--r--  root root user_u:object_r:httpd_sys_content_t
/var/www/html/test/Alex.html

# ls -laZ /var/www/html/index.php
-rw-r--r--  root root user_u:object_r:httpd_sys_content_t
/var/www/html/index.php

# ls -laZ /var/www/html/hello-world.php
-rw-r--r--  afarber afarber user_u:object_r:httpd_sys_content_t
/var/www/html/hello-world.php

I'm using http, not https. And /usr/sbin/getenforce prints "Enforcing".

I didn't know that there were additional attributes for the files.
And I don't know how to stop/start SELinux
(it is not a service in /etc/init.d, right?)
but I'd like to keep SELinux running, since all other
programs I've listed seem to cope okay with it.

Regards
Alex
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux