Different log files in sudo?

Todd C. Miller Todd.Miller at courtesan.com
Wed Dec 5 21:59:28 EST 2001


In recent versions of sudo you can do the following:

Defaults		logfile=/var/adm/sudo.log
Defaults:john		logfile=/usr/local/log/sudo.john
Defaults:jane		logfile=/usr/local/log/sudo.jane

This will cause entries for john and jane to go to their respective
log files and anyone else to go to /var/adm/sudo.log.

You need to make sure you don't log via syslog for this though
since you don't want both sudo and syslogd to be writing to
/var/adm/sudo.log.

 - todd



More information about the sudo-users mailing list