7

Suppress log entry for single sudo commands

view full story
linux-howto

http://stackoverflow.com – For server monitoring, we execute couple of commands with password-less sudo every minute. This fills the server logs. sudo: zabbix : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/foo/bar Can I prevent these entries? The options NOLOG_INPUT and NOLOG_OUTPUT don't look like what I want. I don't want to omit sudo's logging completely, only for the one user and the one (or more) command. Is there a way to achieve this? (HowTos)