CGI permissions make me mad!

Rick Blair rickblair_mail at yahoo.com
Wed Sep 17 04:38:58 CEST 2003


I did this on perpose on my test server.  I left
everything open with no authentication.

The other server I have this running on has the httpd
authentication set up.

--- NetViper <larry.bills at mci.com> wrote:
> Your httpd.conf file is not correct...you do not
> have authorizations set
> 
> PER THE DOCS...
> 
> <Directory /usr/local/nagios/sbin>
>  AllowOverride AuthConfig
>  order allow,deny
>  allow from all
> Options ExecCGI
> </Directory>
> 
> Yours should read...
> 
>         <Directory /usr/local/nagios/lib/cgi/>
>            AllowOveride AuthConfig
>            Options ExecCGI
>            order deny,allow
>            deny from all
>            allow from all
>         </Directory>
> 
> also of course you need a .htaccess in the /lib/cgi
> directory pointing 
> to your htaccessuers file
> 
> L. Bills
> 
> Rick_Blair at fws.gov wrote:
> 
> >
> > I have set up a new test server and made the
> permissions as wide open 
> > as possible.  I still get a cgi error:
> >
> > "It appears as though you do not have permission
> to view information 
> > for any of the hosts you requested..."
> >
> > 1. All cgi files in /usr/local/nagios/lib/cgi are
> 0755 owned by 
> > nagios:apache.
> >
> > 2. My cgi.cfg looks like this:
> >        
> >        
> main_config_file=/usr/local/nagios/etc/nagios.cfg
> >         physical_html_path=/usr/local/nagios/share
> >         url_html_path=/nagios
> >         show_context_help=0
> >         use_authentication=0
> >         default_user_name=guest
> >         authorized_for_system_information=*
> >         authorized_for_configuration_information=*
> >         authorized_for_system_commands=*
> >         authorized_for_all_services=*
> >         authorized_for_all_hosts=*
> >         authorized_for_all_service_commands=*
> >
> > 3. My httpd Include file for nagios
> (/etc/httpd/conf.d/nagios.conf) 
> > looks like this:
> >        
> >         ScriptAlias /nagios/cgi-bin/
> /usr/local/nagios/lib/cgi/
> >         <Directory /usr/local/nagios/lib/cgi/>
> >            Options ExecCGI
> >            order deny,allow
> >            deny from all
> >            allow from all
> >         </Directory>
> >
> >         Alias /nagios/ /usr/local/nagios/share/
> >         <Directory /usr/local/nagios/share/>
> >            Options None
> >           order deny,allow
> >            deny from all
> >            allow from all
> >         </Directory>
> >
> > 4. The web page shows me logged in as 'guest'.
> >
> > Rick Blair
> > Network Engineer
> > USFW
> >
> > Rick Blair
> > Network Engineer
> > USFW
> > 303.202.2687
> >
> >
> >
> >
> > 	Larry Bills <larry.bills at mci.com>
> > Sent by: nagios-users-admin at lists.sourceforge.net
> >
> > 09/16/2003 01:39 PM
> >
> > 	       
> >         To:        
> >         cc:        jeff vier
> <jeff.vier at tradingtechnologies.com>, 
> > nagios-users <nagios-users at lists.sourceforge.net>
> >         Subject:        Re: [Nagios-users] CGI
> permissions make me mad!
> >
> >
> >
> >
> > Correction...should have read mod_auth.so
> >
> > Larry
> >
> > Larry Bills wrote:
> > Have you checked out your webserver, since you did
> a resinstall of 
> > everything. If mod_auto.so is not loaded, you will
> not be able to 
> > authorize, also check all other web server
> switches that may affect 
> > this item. Problem might not be Nagios at all, I
> have never had a 
> > problem on Red Hat or Sun Solaris 6,8 or 9 if one
> sets the Apache web 
> > server conf file up correctly, and the permissions
> on Nagios per the docs.
> >
> > Sincerely
> >
> > Larry Bills
> >
> > jeff vier wrote:
> > While not ideal, have you tried opening up
> permissions on things?
> >
> > a `chmod -R 777 /path/to/cgis /path/to/nagios`
> isn't something you'd
> > want to leave live, but it'll at least "fix" the
> problem enough to let
> > you know if it's a file permissions problem
> >
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
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
::: 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