problems for netsaint using sudo

Andrea andrea at
Mon Jun 9 13:03:41 EDT 2003

I'm trying to let netsaint restart services in case of problems.
I put netsaint in the sudoers file for the restart program, 
but when the event handler executes nothing happens 
(even if the auth log registers the sudo call correctly).

Do you have any clue ?

some configuration details:

netsaint ALL=NOPASSWD:/usr/lib/netsaint/plugins/restart_service

ls -l /usr/bin/sudo
-rwsr-xr-x    1 root     root        80584 Apr 27  2002 /usr/bin/sudo

command[restart-http]=sudo /usr/lib/netsaint/plugins/restart_service

ls -l /usr/lib/netsaint/plugins/restart_service
-rwxr-xr-x    1 root     root        31829 Apr  7 18:20

less /etc/passwd | grep netsaint

example from /var/log/auth:
Jun  9 06:42:38 astio /usr/bin/sudo: netsaint : TTY=unknown ; PWD=/ ;
USER=root ; COMMAND=/usr/lib/netsaint/plugins/restart_service CRITICAL
HARD 4 apache

Andrea Passerini

More information about the sudo-users mailing list