Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have put .htaccess files in the Nagios html root and CGI root directories, so in order to get access to the web interface, the users needs a valid Active Directory account.

The problem I have is in /etc/nagios/cgi.cfg which says



Setting use_authentication=0 "solves" the problem, but I have read

Also, disabling authentication causes all sorts of things to not work because the programmers don't want to be responsible for what happens It's best to use authentication and then set it up correctly ;-)

so I am not too keen on that.

It should be possible to replace nagiosadmin with a group according to

Basically all of these "authorized_for_" stuff is to permit "administrative" users to access the system.

One convenience that they don't tell you is that you can put group names instead of user accounts, so if you've got an IT Admin group defined, put that instead of all of the members of the group


How do I define such group when the users authenticate through htaccess with Apache's

share|improve this question
up vote 2 down vote accepted

This solved the problem.

sed -i 's/nagiosadmin/\*/g' /etc/nagios/cgi.cfg
sed -i 's/#default_user_name=guest/default_user_name=guest/g' /etc/nagios/cgi.cfg
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.