LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2007, 07:59 PM   #1
DukeLeto
Member
 
Registered: Jan 2003
Location: Antarctica
Distribution: *watches the penguins pass by*
Posts: 56

Rep: Reputation: 15
Looking for software to track logins and commands with auto-email


I'm looking for a piece of software to run as a daemon and upon login, start watching, and log all commands given during a session, and upon logout either log, or email this to someone.

Example:

07-19-07 15:23 User michael Logged in
Session command history:

15:23:09 #ls -l /
15:23:36 #cd /tmp/
15:24:01 #rm -rf ./*
15:25:09 #df -h
15:25:45 #logout

07-19-07 15:25 User michael Logged out.


Is there anything like this? Perhaps starting a screen session on login, and then emailing the bash_history? Anything?

Thanks,
Michael
 
Old 07-20-2007, 05:14 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
There's a few, depending on what you need to accomplish, like shell wrappers like Rootsh, Sudosh or Anotatla's Bash logging patch. Other alternatives could be kernel patches like GRSecurity or LKM's like SCT or SELinux.
I'd suggest starting with Rootsh since it's maintained, not that invasive, UID-centric and allows for logging to syslog. The one thing it won't do is email a log, and with a busy server you wouldn't want it to either.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
TIP: Email Root Logins fotoguy Linux - Security 8 03-02-2006 02:26 AM
How to track Customers/Fax/Email/Letter/Projects... Akonbobot Linux - Software 3 01-07-2006 03:01 PM
Kmix PCM volume problem (auto. set to 0 at every new track) Grisha8 Linux - Software 2 12-01-2005 02:48 AM
Possible? User auto-lockout after failed num of logins via X maddude Linux - Security 2 04-21-2005 05:05 AM
running software in all user logins whatpot Linux - Software 1 04-08-2005 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 PM.

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