Permissions Error

Scott Ripley sripley at chiaro.com
Fri Dec 6 18:42:29 CET 2002


chmod 777 will work, but may not be the best solution. 

There should be a directive in your httpd.conf that specifies the group. It
looks like:

Group <httpd group> (for me, the <httpd group> is nobody)

I would reccomend that you:

chown root:<httpd group> htpasswd.user
chmod 640 htpasswd.user

This will prevent the file from being readable by any user, but allow root
to write to and apache to read from it.

Since many people will be using the RH8.0 distro, this may be a good item
for inclusion in the FAQ. Perhaps with the addition of the specific default
group name RH uses for apache...


Scott.

-----Original Message-----
From: Robertson, Brown [mailto:brown.robertson at maac.net]
Sent: Friday, December 06, 2002 11:11 AM
To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail)
Cc: Scott Ripley
Subject: RE: [Nagios-users] RE: Permissions Error


Eureka guys. It's definitely a permission issue. Chmod your
htpasswd.users file (/usr/local/nagios/ets/htpasswd.users  if that's
where you put it) to 777. That should do the trick. There weren't
sufficient permissions to access that file for the authentication
information. I'm almost positive this was the cause, but in case it's
not, I chmod'd all my nagios directories to 777, .htaccess files to 777,
and htpasswd.users file to 777. Hope that helps. Brown.

Special Thanks to Scott Ripley for his suggestion in trying this. 






-----Original Message-----
From: Chris Fairbanks [mailto:ChrisF at winterlink.net] 
Sent: Friday, December 06, 2002 12:47 AM
To: wrnash; Potter, G M (Greg); Nagios-users (E-mail)
Cc: Robertson, Brown
Subject: RE: [Nagios-users] RE: Permissions Error

My httpasswd.users file and everything is setup totally correctly and
use_authentication=1 is set.  I have also tried setting all the
authorized_for's = * but to no avail.  From the sounds of it, it looks
like this might be an issue with RH8.0 or Apache 2.0.40 that ships
default with RH8.0.  Is there anyone on this list that has Nagios
working on RH8.0?

	Thanks,
	Chris



-----Original Message-----
From: wrnash [mailto:wrnash at wrnash.net] 
Sent: Thursday, December 05, 2002 3:59 PM
To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)'
Subject: RE: [Nagios-users] RE: Permissions Error


Have you did: 
htpasswd /usr/local/nagios/etc/htpasswd.users username

And also is use_authentication=1
Do you get any error when you type /usr/local/nagios/bin/nagios -v <main
configuration file> example would be /usr/local/nagios/etc/nagios.cfg


Thanks Bill Nash

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G
M (Greg)
Sent: Thursday, December 05, 2002 5:39 PM
To: Nagios-users (E-mail)
Subject: FW: [Nagios-users] RE: Permissions Error

What do you have in the cgi.cfg file for the following variables?:

authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin

Greg

-----Original Message-----
From: Robertson, Brown [mailto:brown.robertson at maac.net]
Sent: Thursday, December 05, 2002 4:14 PM
To: ChrisF at winterlink.net
Cc: Nagios-users at lists.sourceforge.net
Subject: [Nagios-users] RE: Permissions Error


Chris, did you ever find out the cause of your permission error? I am
running Red Hat 8.0 and finding the same problem. I have also followed
the faq exactly. .htaccess files look good, httpd.conf edited properly.
Htpasswd.users file is correct. I'm wondering if it might be some
problem with apache under RH 8.0?

Anyone else have any ideas?

Here's what I have in my httpd.conf:

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
            AllowOverride AuthConfig
            Options ExecCGI
            Order allow,deny 
            Allow from all
</Directory>

Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
            Options None
            AllowOverride AuthConfig
            Order allow,deny
            Allow from all
</Directory>

And in my .htaccess, located in /usr/local/nagios/sbin  and
/usr/local/nagios/share

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user


Then I :

htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios



Still no luck. It will continually request authentication but will never
accept it. 

Any ideas?


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------- next part --------------
----------------------------------------- (on rchss001)

This e-mail and any files transmitted with it are the property
of Chiaro Networks, Ltd., and may contain confidential and 
privileged material for the sole use of the intended recipient(s)
to whom this e-mail is addressed. If you are not one of the named
recipient(s), or otherwise have reason to believe that you have 
received this message in error, please notify the sender and 
delete all copies from your system.  Any other use, retention, 
dissemination, forwarding, printing or copying of this e-mail is 
strictly prohibited.


---------------------------------------------------------


More information about the Users mailing list