Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configuring sudo log.

Status
Not open for further replies.

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.
 
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.
 
Hi bi,

Thanks for your answer. Dou you know what local2 mean? Can be local1 or local3? Bye.
 
No, I don't know why it's local2. That is just what the doc that came with sudo said to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top