> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Mick > Sent: Tuesday, September 18, 2007 12:32 PM > To: [email protected] > Subject: [Nagios-users] Disabling Host Commands CGI for a user > > Hi All, > > Is there a way to disable access to the Host Commands CGI on a user by > user > basis? > > For some users I want to only allow them to view the settings and status > of > different services, but not to allow them to change these.
Not within nagios. You can restrict access to cmd.cgi through htaccess though. I use something like the following in ~nagios/sbin/.htaccess -- AuthName "Monitor System Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users AuthGroupFile /usr/local/nagios/etc/htpasswd.groups require valid-user <FilesMatch "(cmd.cgi|config.cgi|showlog.cgi)"> require group admins </FilesMatch> $ cat /usr/local/nagios/etc/htpasswd.groups admins:user1,user2,user3,etc -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list [email protected] 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
