Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-27-2006, 06:05 PM   #1
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Rep: Reputation: 15

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?
Old 02-27-2006, 07:09 PM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
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

Last edited by born4linux; 02-27-2006 at 07:39 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with syslog.conf ? sauce Linux - Security 11 12-15-2005 04:49 PM
grep in syslog.conf komo Linux - General 2 11-16-2005 04:56 AM
syslog.conf, can you log to console? stakhous Linux - Newbie 1 07-31-2004 12:22 AM
syslog-ng conf confusion cyph3r7 Linux - Software 0 07-06-2004 11:02 PM
edit /etc/syslog.conf wedgeworth Linux - Software 3 04-08-2004 01:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration