Can't setup authorization for web interface
Tedman Eng
teng at dataway.com
Sun Nov 23 11:30:32 CET 2003
Make sure the htaccess file (or htpasswd.users in your case),
/usr/local/nagios/etc/ directory, and also /usr/local/nagios/share/
directory are readable by whatever username your apache process is running
under (usually either 'apache' or 'nobody').
Check the contents of the htaccess file to make sure the user was created
properly. You should see one line per user, followed by a bunch of random
characters on that line (the hashed password). Usernames and passwords are
case-sensitive.
Finally, check your apache error logs for clues where the authentication
went wrong. The message "403 Forbidden - You don't have permission to
access /nagios/ on this server" is produced by apache, not Nagios.
"Anthony Gunia" <aggunia at comcast.net> wrote in message
news:EFEGKJGHHACNJCDLNLKMIEADCEAA.aggunia at comcast.net...
> Hi all,
>
> I'm a newbie with Nagios. I just read the O'Reilly docs on setting up
> Nagios, and have it running. However, I'm having a problem accessing
Nagios
> via a web browser at this point...I get the following:
>
> "You don't have permission to access /nagios/ on this server."
>
> I'm running Nagios on Red Hat 7.3/Apache 1.3.27. I found the following on
> the listserv from Sebastian, and applied his recommendations, but it still
> does not work:
>
> "httpd.conf
> ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
> Alias /nagios/ /usr/local/nagios/share/
> <Directory "/usr/local/nagios/share">
> Options None
> AuthName "NAGIOS ACCESS"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/htpasswd.users
> require valid-user
> </Directory>
>
> now set up a user like this:
> htpasswd -c /usr/local/nagios/etc/htpasswd.users -s username
> this invokes the htpasswd programm and (-c) creates a new password file
> where the password for user 'username' is stored as a (-s) SHA1 Hash
> for a second user, just call htpasswd without the -c flag :)
>
> and don't create a htaccess file, since users might be able to look into
> that file ...
> this should work smoothly ;)"
>
> Any thought out there would be appreciated on getting the web access to
> work. Thanks!
>
> Anthony
> aggunia at comcast.net
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> 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
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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