OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005199 [nagios] regular use major always 2014-08-14 15:04 2014-10-16 10:11
Reporter keziacp View Status public  
Assigned To dam
Priority normal Resolution open  
Status feedback  
Summary 0005199: You don't have permission to access /nagios/ on this server.
Description When i access the nagios in my localhost it give me this message.
Additional Information root@nagios2:/opt/csw/nagios# users
nagios

root@nagios2:/opt/csw/nagios# groups
root other bin sys adm uucp mail tty lp nuucp daemon

root@nagios2:/opt/csw# ls -la
total 83
drwxr-xr-x 16 root bin 19 ago 7 10:31 .
drwxr-xr-x 10 root sys 15 ago 12 17:16 ..
drwxr-xr-x 10 root bin 10 ago 4 11:18 apache2
drwxr-xr-x 4 root bin 4 ago 4 11:16 bdb48
drwxr-xr-x 6 root bin 217 ago 7 16:49 bin
lrwxrwxrwx 1 root root 9 ago 4 10:50 doc -> share/doc
drwxr-xr-x 6 root bin 8 ago 4 11:17 etc
drwxr-xr-x 2 root bin 24 ago 4 11:17 gnu
drwxr-xr-x 5 root bin 79 ago 7 12:22 include
lrwxrwxrwx 1 root root 10 ago 4 10:50 info -> share/info
drwxr-xr-x 16 root bin 261 ago 14 08:49 lib
drwxr-xr-x 7 root bin 7 ago 4 11:18 libexec
lrwxrwxrwx 1 root root 9 ago 4 10:50 man -> share/man
drwxrwxr-x 5 nagios nagios 5 ago 7 10:31 nagios
drwxr-xr-x 7 root bin 7 ago 4 11:17 php5
drwxr-xr-x 2 root bin 6 ago 4 11:17 sbin
drwxr-xr-x 27 root bin 27 ago 14 08:49 share
drwxr-xr-x 3 root bin 4 ago 4 11:16 ssl
drwxr-xr-x 3 root bin 3 ago 4 10:48 var

I executed chown for all nagios to be restrict access, but I couldnt give permission for apache access this.

root@nagios2:/opt/csw/apache2/etc# cat httpd-nagios.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin /opt/csw/nagios/sbin

<Directory "/opt/csw/nagios/sbin">
# SSLRequireSSL
   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /etc/opt/csw/nagios/htpasswd.users
   Require valid-user
</Directory>

Alias /nagios /opt/csw/nagios/share

<Directory "/opt/csw/nagios/share">
# SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /etc/opt/csw/nagios/htpasswd.users
   Require valid-user
</Directory>

root@nagios2:/# cat /etc/opt/csw/nagios/htpasswd.users
nagios:$apr1$eSQPSOkY$qfbfHDqlgVZgOEJazJpg.0
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010938)
dam (administrator)
2014-10-16 10:11

This looks like an issue with Apache permissions. Did you log in correctly with user nagios and
the password you specified in /etc/opt/csw/nagios/htpasswd.users ?


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker