LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2006, 08:32 PM   #1
byronk
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
Where is the log file for all commands that have been run?


Hey guys,

I was just wondering where the log file is located for all commands that have been run on a redhat linux server. Something dodgey has been going on so I would like to be able to print out the logs and go through them manually. Then i'll run RKhunter.

Any help is really appreciated guys, and thanks for taking your time to read.

Regards,
Byron.
 
Old 04-05-2006, 09:21 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The logs for what your daemons have been doing are usually under /var/log

The logs for the commands run by users is a much more rubbery question. Many shells maintain a history list for users (for example, bash maintains a command history under ~/.bash_history), but whether and where applications log user commands is up to the application. As far as I know, most applications don't log user commands.
 
Old 04-06-2006, 01:56 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
You would need to setup process accounting if you wanted to log all commands by users.

-twantrd
 
Old 04-06-2006, 02:42 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
twantrd is correct - have a look at http://www.tldp.org/HOWTO/Process-Accounting/index.htmlfor more info on this.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract log FROM - TO with shell commands overpeer Linux - General 1 03-13-2006 11:00 AM
Log all commands used in a Session....how? vous Linux - Security 2 03-20-2005 05:32 AM
Commands to log Out of X within X, and back in Fear58 Linux - Newbie 1 12-06-2004 10:27 PM
How to control log file size in /var/log? yan Linux - General 2 10-13-2003 05:00 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:23 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