<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Try setting ownership of these files to user nagios, group
nagios. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Gezina Dekker
[mailto:gezinker@gmail.com] <br>
<b>Sent:</b> Monday, March 08, 2010 1:17 PM<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> [Nagios-users] You do not have permission to access /nagios on
this server<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p>Hi all,<br>
<br>
I have looked at all the questions so far, and nothing that brings any comfort.<br>
<br>
I followed the Fedore QuickStart even though I am on RHEL 4 (2.6.9-5.EL)<br>
<br>
I have all the following installed:<br>
Apache<br>
PHP<br>
GCC compiler<br>
GD development libraries<br>
<br>
I have nagios and nagcmd defined<br>
<br>
I have installed nagios and the plugins<br>
<br>
I have a passwd in htpasswd, and it is read acces for all.<br>
<br>
SELinux is disabled<br>
<br>
In terms of my nagios.conf, this is it…<br>
<br>
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"<br>
<br>
<Directory "/usr/local/nagios/sbin"><br>
# SSLRequireSSL<br>
Options FollowSymLinks ExecCGI<br>
AllowOverride AuthConfig<br>
Order allow,deny<br>
Allow from all<br>
AuthName "Nagios Access"<br>
AuthType Basic<br>
AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
Require valid-user<br>
</Directory><br>
<br>
Alias /nagios "/usr/local/nagios/share"<br>
<br>
<Directory "/usr/local/nagios/share"><br>
# SSLRequireSSL<br>
Options FollowSymLinks<br>
DirectoryIndex index.html<br>
AllowOverride AuthConfig<br>
Order allow,deny<br>
Allow from all<br>
AuthName "Nagios Access"<br>
AuthType Basic<br>
AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
Require valid-user<br>
</Directory><br>
<br>
<br>
The contents of my /share is the following:<br>
drwxrwxr-x 9 nagios nagcmd 4096 mrt 8 11:39 .<br>
drwx------ 12 nagios nagcmd 4096 mrt 8 11:39 ..<br>
drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 contexthelp<br>
drwxrwxr-x 3 nagios nagcmd 4096 mrt 5 12:23 docs<br>
drwxrwxr-x 3 nagios nagcmd 4096 mrt 5 12:23 images<br>
-rw-rw-r-- 1 nagios nagcmd 726 mrt 5 12:23
index.html<br>
drwxr-xr-x 4 root root 4096 mrt
8 11:39 locale<br>
-rw-rw-r-- 1 nagios nagcmd 3480 mrt 5 12:23 main.html<br>
drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 media<br>
-rw-rw-r-- 1 nagios nagcmd 26 mrt 5 12:23
robots.txt<br>
-rw-rw-r-- 1 nagios nagcmd 13532 mrt 5 12:23 side.html<br>
drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 ssi<br>
drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 stylesheets<br>
<br>
<br>
The errors I am getting is the following:<br>
<br>
Forbidden<br>
You don't have permission to access /nagios on this server.<br>
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.<o:p></o:p></p>
<p> <o:p></o:p></p>
<div>
<p class=MsoNormal>Apache/2.0.52 (Red Hat) Server at 172.17.16.56 Port 80<br>
<br>
<br>
I am making the assumption that the 403 is less serious, and that it is
actually the permissions that needs fixing…<br>
<br>
Thanks in advance for your willingness to look at this with me.<br>
<br>
Regards<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Gezina<o:p></o:p></p>
</div>
</div>
</body>
</html>