On 12 July 2011 22:07, dOE <doep...@gmail.com> wrote: > Distributor ID: Ubuntu > Description: Ubuntu 10.10 > Release: 10.10 > Codename: maverick > Nagios: 3.0.3 > > I executed the following commands > > htpasswd -c /usr/local/nagios/etc/htpasswd.users users_name > service apache2 reload > > I have a local user named "user_name" as well > > And my cgi.cfg has the usernames as follows: > > use_authentication=1 > authorized_for_system_information=nagiosadmin,users_name > authorized_for_system_commands=nagiosadmin,users_name > authorized_for_configuration_information=nagiosadmin,users_name > authorized_for_all_hosts=nagiosadmin,users_name > authorized_for_all_host_commands=nagiosadmin,users_name > authorized_for_all_services=nagiosadmin,users_name > authorized_for_all_service_commands=nagiosadmin,users_name > > However the "user_name" can not authenticate with Apache to access the site. > > Does the user need to belong to any particular group other than their own?
Note that "users_name" is not the same as "user_name". I appreciate your example name might not be the actual name you are thinking of, but you might need to check you have the spelling spot on. You can cat the htpasswd.users file to make sure you have the name spelled right in there too (it's just a text file). It might be worth setting the password again using "htpasswd /usr/local/nagios/etc/htpasswd.users users_name" just in case the password was spelled incorrectly the first time you entered it. Also, check the file /etc/apache2/conf.d/nagios.conf to make sure that apache is looking for htpasswd.users in the right location. ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users@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