FreeBSD and Nagios - permissions
Edwin Groothuis
edwin at mavetju.org
Thu Oct 16 03:38:06 PDT 2008
> The nrpe daemon that handles the script runs as the "nagios" user and
> the command needed is camcontrol:
First lines of the check_ciss.sh command:
#!/bin/sh
if [ $(whoami) != "root" ]; then
sudo $*
fi
And allow in sudoerrs.conf the nagios user to run the check_ciss.sh
command without passwords.
Works fine here for years :-)
Edwin
--
Edwin Groothuis Website: http://www.mavetju.org/
edwin at mavetju.org Weblog: http://www.mavetju.org/weblog/
More information about the freebsd-questions
mailing list