Nov 18, 2003 #1 blasvinas IS-IT--Management Aug 21, 2003 44 US Hi, I am trying to create the sudo log file. How can I configure logging for sudo utility? Thanks in advance for your help. Bye.
Hi, I am trying to create the sudo log file. How can I configure logging for sudo utility? Thanks in advance for your help. Bye.
Nov 18, 2003 #2 bi Technical User Apr 13, 2001 1,552 US In your /etc/syslog.conf file, add: local2.<whatever level of logging you want> /path/to/your/sudo/log I have local2.debug /var/adm/sudo.log in my syslog.conf. I think you have to refresh the syslogd for it to start logging sudo. Upvote 0 Downvote
In your /etc/syslog.conf file, add: local2.<whatever level of logging you want> /path/to/your/sudo/log I have local2.debug /var/adm/sudo.log in my syslog.conf. I think you have to refresh the syslogd for it to start logging sudo.
Nov 18, 2003 Thread starter #3 blasvinas IS-IT--Management Aug 21, 2003 44 US Hi bi, Thanks for your answer. Dou you know what local2 mean? Can be local1 or local3? Bye. Upvote 0 Downvote
Nov 18, 2003 #4 bi Technical User Apr 13, 2001 1,552 US No, I don't know why it's local2. That is just what the doc that came with sudo said to use. Upvote 0 Downvote