<br><font size=2 face="Arial">Hello,</font>
<br>
<br><font size=2 face="Arial">AFAIK, when a user is contact for a host
or service she can issue any command she wants for that host/service.</font>
<br>
<br><font size=2 face="Arial">I would be glad to hear someone contradicting
me :-)</font>
<br>
<br><font size=2 face="Arial">Cyrille</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Luca Olivotto"
<lolivotto@gmail.com></b> </font>
<br><font size=1 face="sans-serif">Envoyé par : nagios-users-bounces@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">12/10/2007 10:36</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td valign=top><font size=1 face="sans-serif">nagios-users@lists.sourceforge.net</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td valign=top><font size=1 face="sans-serif">[Nagios-users] How to limit
access to external command</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi all,<br>
i have enabled the external command and all work fine. now i wanto to<br>
limit the execution of external commands trought web interface to only<br>
few users but i don't know how can i do.<br>
<br>
I have 2 "users":<br>
 - web: this is the admin, it work great no problem with this user(is<br>
only an apache user)<br>
 - LucaGmail : this is the user that access the nagios web interface<br>
and i want to limit, it can view only the service and host associated<br>
to it (this is good) and can execute external commands (this is not<br>
good); (LucaGmail is a "contact" for nagios and an apache user).<br>
<br>
How can i limit the execution of external command?<br>
<br>
below you can see some configuration of my installation:<br>
<br>
in cgi.cfg<br>
<br>
I set "use_authentication" to 1<br>
<br>
default_user_name=nagiosadmin<br>
authorized_for_system_information=nagiosadmin,theboss,jdoe,web<br>
authorized_for_system_commands=nagiosadmin,web<br>
authorized_for_configuration_information=nagiosadmin,jdoe,web<br>
authorized_for_all_services=nagiosadmin,guest,web<br>
authorized_for_all_hosts=nagiosadmin,guest,web<br>
authorized_for_all_host_commands=nagiosadmin,web<br>
authorized_for_all_service_commands=nagiosadmin,web<br>
<br>
and in the htpasswd.user there are 2 users:<br>
web<br>
LucaGmail<br>
<br>
in the httpd.conf<br>
<br>
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"<br>
<Directory "/usr/local/nagios/sbin"><br>
        Options ExecCGI FollowSymLinks<br>
        AllowOverride None<br>
        Order allow,deny<br>
        Allow from all<br>
        AuthName "Nagios Access"<br>
        AuthType Basic<br>
        AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
        Require valid-user<br>
</Directory><br>
<br>
an ls -la of "rw" directory give me:<br>
<br>
drwxrws--- 2 nagios nagcmd 4096 Oct 11 16:10 .<br>
drwxrwxr-x 5 nagios nagcmd 4096 Oct 12 10:19 ..<br>
prw-rw---- 1 nagios nagcmd    0 Oct 11 17:32 nagios.cmd<br>
<br>
in the nagcmd group there are these users:<br>
-apache (webserver user)<br>
-nagios<br>
<br>
<br>
sorry for my english... if you need more info ask without problem<br>
<br>
Thank you<br>
bye<br>
Luca<br>
<br>
-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Splunk Inc.<br>
Still grepping through log files to find problems?  Stop.<br>
Now Search log events and configuration files using AJAX and a browser.<br>
Download your FREE copy of Splunk now >> http://get.splunk.com/<br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-users<br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</tt></font>
<br>