sudo not working

Andrea andrea at
Wed Jun 25 10:22:12 EDT 2003

'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).
The only strange thing is the voice TTY=unknown in sudo log.
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