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

Francesco Turco fctk86 at gmail.com
Sun Aug 28 04:28:06 EDT 2005


Matthew Stier ha scritto:

> Not a feature most people would want in a security program.
>
> Are you sure you need to run it as 'root'.
> Does a 'group' have "read" permissions to that device?  Have you 
> considered setting the executable set group ID to that group?
>
> Francesco Turco wrote:
>
>> 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
>> ____________________________________________________________ 
>> sudo-users mailing list <sudo-users at sudo.ws>
>> For list information, options, or to unsubscribe, visit:
>> http://www.sudo.ws/mailman/listinfo/sudo-users
>
>
fctk at thorium ~ $ ls -l /dev/hda
brw-rw----  1 root root 3, 0 28 ago  2005 /dev/hda

fctk at thorium ~ $ ls -l /usr/sbin/hddtemp
-rwxr-xr-x  1 root root 21504 16 ago 20:30 /usr/sbin/hddtemp

how can i do to realize what you suggested?



More information about the sudo-users mailing list