not authorized to commit the specified change

Thilanka thilanka at sbcglobal.net
Fri Jan 30 18:31:10 CET 2004



Hello all,



I am getting the following error message when I try to add a new host comment. 



"Sorry, but you are not authorized to commit the specified command.



Read the section of the documentation that deals with authentication and 

authorization in the CGIs for more information.



Return from whence you came"



"Add a new service comment" spits out the same error as noted above. Now this 

sounds like a permission issue on the cgi scripts 

folder "/usr/local/nagios/sbin" here's how the permissions 

on "/usr/local/nagios/sbin/"



drwxr-xr-x   2 nagios   other        512 Jan 28 19:47 sbin



A question is should this directory(sbin) be owned by nagios and the group 

nobody since apache is running as nobody? Or is this ill adviced? 



The cgi scripts that are in "/usr/local/nagios/sbin" have the following 

permissions:



-rwxr-xr-x   1 nagios   other     174472 Jan 24 18:02 avail.cgi

-rwxr-xr-x   1 nagios   other     169636 Jan 24 18:03 cmd.cgi

-rwxr-xr-x   1 nagios   other     137072 Jan 24 18:03 config.cgi

-rw-------   1 nagios   other     531840 Jan 28 19:47 core

-rwxr-xr-x   1 nagios   other     186928 Jan 24 18:03 extinfo.cgi

-rwxr-xr-x   1 nagios   other     149928 Jan 24 18:03 histogram.cgi

-rwxr-xr-x   1 nagios   other     129224 Jan 24 18:03 history.cgi

-rwxr-xr-x   1 nagios   other     125016 Jan 24 18:03 notifications.cgi

-rw-r--r--   1 nagios   other        138 Jan 20 23:39 old-htaccess

-rwxr-xr-x   1 nagios   other     123452 Jan 24 18:03 outages.cgi

-rwxr-xr-x   1 nagios   other     124336 Jan 24 18:03 showlog.cgi

-rwxr-xr-x   1 nagios   other     176936 Jan 24 18:03 status.cgi

-rwxr-xr-x   1 nagios   other     157960 Jan 24 18:03 statusmap.cgi

-rwxr-xr-x   1 nagios   other     138224 Jan 24 18:03 statuswml.cgi

-rwxr-xr-x   1 nagios   other     137248 Jan 24 18:03 statuswrl.cgi

-rwxr-xr-x   1 nagios   other     144960 Jan 24 18:03 summary.cgi

-rwxr-xr-x   1 nagios   other     153568 Jan 24 18:03 tac.cgi

-rwxr-xr-x   1 nagios   other     152808 Jan 24 18:03 trends.cgi



Are my permissions correct? Or should all the scripts in this directory be 

owned by user "nagios" and group "nobody" ?



Also, I am logged into Nagios as "nagiosadmin" who has the following 

permissions on the cgi.cfg file:



use_authentication=1

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





If I have omitted some key info for someone to help me out, please let me know 

I will provide that information.



I was also wondering whether the permission issues when trying to add a host or 

a service comment are do to Apache's suEXEC support ?





Any help would be appreciated.



Thanks all!







-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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