LinuxQuestions.org
Help answer threads with 0 replies.
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 07-20-2004, 05:26 AM   #1
FatSteve
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Need to log users command history


I need to be abble to log all commands that are typed in by a user.

Date, time, command and user need to be logged. If anyone knows how to turn this on or if I need to get a program I would appreciate the help.

The OS's are Red Hat 9 and SCO OSR5 help with either would be good both would be great.

Thanks,
Steve
 
Old 07-20-2004, 07:30 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
The users .bash_history will usually keep a listing of the users bash commands. If you need something more advanced try process accounting (psacct). There are RPMs available here. You can find a brief synopsis of what commands are included and their function here
 
Old 07-22-2004, 06:25 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,307
Blog Entries: 54

Rep: Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857
Bash history will be written on logout, and linking it to /dev/null or using "set" to change HIST.* vars are workarounds. The first thing I'd like to know is why you want this and if you want to log *everything* or just shell sessions. Knowing that will make coming up with an appropriate solution easier.
 
  


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
History command amer_58 Linux - General 5 06-24-2005 12:26 PM
Internet Log / History netpicker9 Linux - Software 1 06-07-2005 08:39 AM
Command history? King4lex Linux - Newbie 4 09-03-2004 08:35 PM
tcsh history log twantrd Linux - General 3 06-25-2003 06:57 AM
command history log??? granny Linux - Newbie 3 02-11-2003 04:03 PM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration