LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-27-2006, 07:05 PM   #1
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Rep: Reputation: 15
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?
 
Old 02-27-2006, 08:09 PM   #2
born4linux
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 08:39 PM.
 
  


Reply


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 05:49 PM
grep in syslog.conf komo Linux - General 2 11-16-2005 05:56 AM
syslog.conf, can you log to console? stakhous Linux - Newbie 1 07-31-2004 01:22 AM
syslog-ng conf confusion cyph3r7 Linux - Software 0 07-07-2004 12:02 AM
edit /etc/syslog.conf wedgeworth Linux - Software 3 04-08-2004 02:58 PM


All times are GMT -5. The time now is 11:55 AM.

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