[csw-users] Disable sudo logfile

Mohamed Lrhazi lrhazi at gmail.com
Sun Apr 10 22:47:46 CEST 2011


How do I force sudo to not use a logfile, and use syslog only?

It seems to default to:  /var/opt/csw/log/sudo/sudolog

The man page says to negate "logfile", in the sudoers config file, but
cannot figure out how to do that.
the man page also says that by default sudo does not use a file, but
apparently in csw, it does.

My current workaround is to put this in sudoers:


Defaults syslog=auth
Defaults logfile=/dev/null


Thanks,
Mohamed.


More information about the users mailing list