LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-23-2006, 08:37 AM   #1
esdeedee
LQ Newbie
 
Registered: May 2006
Posts: 12

Rep: Reputation: 0
Question command logging


How can you configure command logging on linux (RedHat EL 4) for the root account?
The logging of our common users we log in sudolog. But system-administrators may become root (su).
Can we log their commands, they execute as root user (in messages or syslog or ...?)
 
Old 05-23-2006, 09:24 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
On RHEL3, the service psacct start logging of system accounting;
To enable it, just "service psacct start".
To get human readable data use the command "sa".
 
Old 05-24-2006, 12:29 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
...and if psacct ain't enough have a look at rootsh, connect to remote syslog if necessary. Of course root can do stuff to thwart logging, so if rootsh ain't enough you could for instance look at the extended logging facilities the GRSecurity kernel patch provides.
 
  


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
ssh command logging jcookeman Linux - Security 3 08-26-2008 02:50 AM
Logging in Error in Fedora 5, /etc/bashrc command not found EmmaTheViking Linux - Newbie 10 05-24-2006 11:59 PM
logging in from command line and doing su cause weird messages sunpascal Linux - Newbie 2 02-10-2006 09:05 AM
What command to use after logging in on Mandrake Linux 10.0 jakej86 Linux - Newbie 6 07-14-2004 06:30 PM
Command to Implement new settings w/o re-logging in... rootking Linux - Software 2 06-18-2004 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:24 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
Open Source Consulting | Domain Registration