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 03-19-2005, 10:42 AM   #1
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
Log all commands used in a Session....how?


Hello,

I would like to know how I could log all the commands a user uses (kind of like .bash_history does) while he/she is in my server. The purpose for this is security. So if someone logs in via the network/internet, and does any nasty stuff, I could always look into the file and see what they did.

Any thoughts on how I could do this?
 
Old 03-19-2005, 03:45 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Turn on process accounting. Unfortunately, many distros' kernels don't have process accounting enabled, so you may need to do a kernel recompile and get the user space tools. Google should be able to tell you more.
 
Old 03-20-2005, 06:32 AM   #3
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
OK, how do I know if my kernel has that feature?
 
  


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
IRC enrypted session so that the ISP cannot log ?? nasty_daemon Linux - Networking 5 09-08-2005 11:39 AM
Commands to log Out of X within X, and back in Fear58 Linux - Newbie 1 12-06-2004 11:27 PM
Session closed when log on desktop debian_dummy Debian 3 10-15-2004 09:02 AM
Uber Noob: how do you log out of an X Session Mytherall Linux - Newbie 2 02-22-2004 05:00 PM
Apache Session Log? abelsgmx Linux - Networking 4 06-11-2002 04:44 PM

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

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