LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   syslog.conf (https://www.linuxquestions.org/questions/linux-newbie-8/syslog-conf-420164/)

s0n|k 02-27-2006 06:05 PM

syslog.conf
 
I want to log all of my sudo messages into a sudolog, say in /var/log/sudolog. How could I alter syslog to do that?

born4linux 02-27-2006 07:09 PM

from my centos box:

# The authpriv file has restricted access.
authpriv.* /var/log/secure

this catches all sudo based commands.

just dug this up in man sudoers:

Defaults logfile=/var/log/sudolog


All times are GMT -5. The time now is 08:43 AM.