We can define the following in your /etc/sudoers file:
nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_xyzWhich will allow the 'nagios' user to execute '/usr/local/nagios/libexec/check_xyz' as root.
nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_xyzWhich will allow the 'nagios' user to execute '/usr/local/nagios/libexec/check_xyz' as root.
0 comments:
Post a Comment