[CentOS] Forbidden: can't access *.html files in /var/www/html

2010-09-29 Thread Alexander Farber
Hello, I'm using the latest CentOS with phpBB 3.0.x + postgreSQL + sendmail (relayed through gmail.com) - all those programs working fine, with no big modifications of the CentOS defaults (i.e. SELinux is on). Now I'm struggling with the seemingly simple problem, that when I put an .html file

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

2010-09-29 Thread Rob Del Vecchio
Now I'm struggling with the seemingly simple problem Sometimes simple problems have simple solutions! For example: # ls -al Alex.html index.php hello-world.php -r--r--r-- 1 rootroot 599 Sep 29 15:49 Alex.html -rw-r--r-- 1 afarber afarber 33 Jul 29 11:32 hello-world.php -rw-r--r--

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

2010-09-29 Thread Jay Leafey
Alexander Farber wrote: Hello, I'm using the latest CentOS with phpBB 3.0.x + postgreSQL + sendmail (relayed through gmail.com) - all those programs working fine, with no big modifications of the CentOS defaults (i.e. SELinux is on). Now I'm struggling with the seemingly simple problem, that

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

2010-09-29 Thread Alexander Farber
Nope this doesn't help. I've tried both 444 and 644 for Alex.html and vice versa: 444 and 644 for the .php and .xml files. On Wed, Sep 29, 2010 at 4:52 PM, Rob Del Vecchio rob.delvecc...@gmail.com wrote:  # ls -al Alex.html index.php hello-world.php -r--r--r-- 1 root    root     599 Sep 29 15:49

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

2010-09-29 Thread m . roth
Alexander Farber wrote: Nope this doesn't help. I've tried both 444 and 644 for Alex.html and vice versa: 444 and 644 for the .php and .xml files. On Wed, Sep 29, 2010 at 4:52 PM, Rob Del Vecchio rob.delvecc...@gmail.com wrote:  # ls -al Alex.html index.php hello-world.php -r--r--r-- 1 root  

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

2010-09-29 Thread Simon Billis
Alexander Farber sent a missive on 2010-09-29: Nope this doesn't help. I've tried both 444 and 644 for Alex.html and vice versa: 444 and 644 for the .php and .xml files. On Wed, Sep 29, 2010 at 4:52 PM, Rob Del Vecchio rob.delvecc...@gmail.com wrote:  # ls -al Alex.html index.php

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

2010-09-29 Thread Paul Heinlein
On Wed, 29 Sep 2010, Jay Leafey wrote: Fixing it is easy, just run restorecon: restorecon -rv /var/www/html Is there any received wisdom about when it is more appropriate to use restorecon directly instead of the fixfiles wrapper? I tend to use fixfiles, but I haven't really thought it

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

2010-09-29 Thread Alexander Farber
On Wed, Sep 29, 2010 at 5:29 PM, Simon Billis si...@houxou.com 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

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

2010-09-29 Thread Robert Heller
At Wed, 29 Sep 2010 17:13:14 +0200 CentOS mailing list centos@centos.org wrote: Nope this doesn't help. I've tried both 444 and 644 for Alex.html and vice versa: 444 and 644 for the .php and .xml files. On Wed, Sep 29, 2010 at 4:52 PM, Rob Del Vecchio rob.delvecc...@gmail.com wrote:  #

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

2010-09-29 Thread Ben McGinnes
On 30/09/10 12:43 AM, Alexander Farber wrote: Hello, I'm using the latest CentOS with phpBB 3.0.x + postgreSQL + sendmail (relayed through gmail.com) - all those programs working fine, with no big modifications of the CentOS defaults (i.e. SELinux is on). [SNIP Does anybody know what is

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

2010-09-29 Thread Simon Billis
Alexander Farber sent a missive on 2010-09-29: On Wed, Sep 29, 2010 at 5:29 PM, Simon Billis si...@houxou.com 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

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

2010-09-29 Thread m . roth
Simon Billis wrote: Alexander Farber sent a missive on 2010-09-29: On Wed, Sep 29, 2010 at 5:29 PM, Simon Billis si...@houxou.com wrote: snip You can use setenforce 0 without the quotes to disable selinux from the command line till next reboot or until you issue setenforce 1 - this is useful

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

2010-09-29 Thread Ben McGinnes
On 30/09/10 3:21 AM, Simon Billis wrote: You can use setenforce 0 without the quotes to disable selinux from the command line till next reboot or until you issue setenforce 1 - this is useful for testing as is looking at /var/log/audit/audit.log and also using commands such as audit2why and