CGI Permissions issue

Martin Melin nagios at martinmelin.com
Wed Jun 9 09:18:27 CEST 2010


On Tue, Jun 8, 2010 at 15:50, Jason Gauthier <jgauthier at lastar.com> wrote:

> All,
>
>
>  I am fighting with a permission issue I cannot seem to figure out.
>
> Here is the important pieces of my cgi configuration:
>
> use_authentication=1
> default_user_name=
> authorized_for_system_information=
> authorized_for_system_commands=jack,jill,john,dave,bob,tim
> authorized_for_configuration_information=jack,jill,john,dave,bob,tim
> authorized_for_all_hosts=jack,jill,john,dave,bob,tim
> authorized_for_all_host_commands jack,jill,john,dave,bob,tim
> authorized_for_all_services=jack,jill,john,dave,bob,tim
> authorized_for_all_service_commands=jack,jill,john,dave,bob,tim
>
> When "dave" attempts to issue a service command (enable notifications)
> they receive this error:
>
> "Sorry, but you are not authorized to commit the specified command"
>
> None of the other users do.    So, in an effort to troubleshoot, I
> removed ALL users except for dave.
> Dave still cannot process the command, but jack still can!
>
> When jack attempts to view the configuration, he is also denied now.
> This implies that the permissions are being acknowledged to some degree.
> I revert the changes back above.  Jack can still execute commands (dave
> cannot), but both jack and dave can view the configuration.
>
> What is going on with dave?  Can I enable some logging perhaps to help
> determine the root cause?
>
> Thanks!
>

You probably have a contact with the name "dave" and that has
can_submit_commands set to 0. That will take precedence over CGI
permissions.

Regards
Martin Melin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100609/90a732b3/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
-------------- next part --------------
_______________________________________________
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