Authentication on cmd.cgi only (for example)

az at whoever.org az at whoever.org
Mon Oct 25 12:20:03 CEST 2004



Greetings,

I am trying to allow open access to Nagios except for cmd.cgi for obvious
reasons.

My cgi.cfg has:

  use_authentication=1
  default_user_name=guest
  authorized_for_all_services=*
  authorized_for_all_hosts=*
  authorized_for_all_service_commands=admin
  authorized_for_all_host_commands=admin

I have a .htaccess in the sbin directory:

<Files cmd.cgi>
  AuthName        "Nagios Access"
  AuthType        Basic
  AuthUserFile    /somepath/htpasswd
  require         valid-user
</Files>

And the htpasswd file has users for "guest", "admin" and some real users.

The problem is, if I log in as guest, it lets me access cmd.cgi stuff. What have
I got wrong?

TIA.
### This message was scanned for viruses by Sophos Anti-Virus.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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