It appears as though you do not have permission
Rusch, Daniel
Daniel.Rusch at fotf.org
Fri Jul 28 19:26:05 CEST 2006
Thanks,
I noticed the "error" in my httpd.conf about 30 seconds after I sent the
post. I removed the <Files cmd.cgi> directive and it works! I must have
looked at the httpd.conf file a dozen times looking for an error buit
overlooked that.
Thanks Marc!
D
> <Files cmd.cgi>
> AuthName "Nagios Command Access"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/.htpasswd.users
> require valid-user
> </Files>
Thank you,
Daniel G. Rusch
x2027
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Wednesday, July 26, 2006 4:55 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] It appears as though you do not have
permission
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Rusch, Daniel
> Sent: Wednesday, July 26, 2006 1:00 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] It appears as though you do not have
permission
>
> All,
>
> Goal: to limit what services and hosts individuals can see to the
hosts
> that they are a contact for.
>
> The manual states:
[chop]
>
> thoughts?
>
> below is my httpd.conf file
>
>
>
>
>
> ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ <Directory
> "/usr/local/nagios/sbin/">
> <Files cmd.cgi>
> AuthName "Nagios Command Access"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/.htpasswd.users
> require valid-user
> </Files>
> Options ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
In short, you deviated from the documented way of doing it and it got
you ;) You've specified that authorization only applies to cmd.cgi when
you actually want all the CGI's to know who the user is, especially
status.cgi. You get prompted to log in because you have auth enabled for
/share but because of the way htaccess works, that information isn't
known outside of the /share directory.
http://nagios.sourceforge.net/docs/2_0/installweb.html
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
If you were wanting to limit access to cmd.cgi to specific users then
you can try something like the following (untested) --
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
<Files cmd.cgi>
require user bob
require user fred
</Files>
</Directory>
--
Marc
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list