[sudo-users] disable logging to /var/log/messages

Francesco Turco fctk86 at gmail.com
Sat Aug 27 11:10:42 EDT 2005


hello,

i use a tool called "hddtemp" to monitor my hard disk temperature. if i 
want to use hddtemp, i must be logged as root, but i want to run it from 
a common user, so i added this line to sudoers:

fctk ALL = NOPASSWD: /usr/sbin/hddtemp

it works ok. anyway, every time i run "sudo hddtemp -n /dev/hda" i get 
this line in /var/log/messages:

Aug 27 17:08:19 thorium sudo:     fctk : TTY=unknown ; PWD=/home/fctk ; 
USER=root ; COMMAND=/usr/sbin/hddtemp -n /dev/hda

since i execute hddtemp every second (through a system monitor called 
"torsmo") /var/log/messages gets filled with thousends of messages like 
the previous one.

how can i disable logging (only for hddtemp)?

thanks



More information about the sudo-users mailing list