Register
It is currently Fri Oct 31, 2014 10:50 pm

need a script that stores user login,logout information


All times are UTC - 6 hours


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 PostPosted: Sun Sep 14, 2008 3:41 am   

Joined: Sun Sep 14, 2008 3:36 am
Posts: 5
Hello everybody I need a script that stores user login,logout time,tty and also the commands he typed during the session...
I tried writing in .bash_logout but it isn't working...
I need this pretty soon hope u'll help me soon....


Top
 Profile  
 PostPosted: Mon Sep 15, 2008 5:57 am   
Moderator
User avatar

Joined: Thu Oct 11, 2007 7:12 am
Posts: 229
Location: London - UK
Thinking about this for a while and AFAIK what you ask for is not easy. Some extra info is required really...

1. Do you intend this to be a security/consolidation tool of some sort? This increases the difficulty somewhat.
2. Do you intend that the users will not be able to affect the data you want logged?
3. Do you intend this to cover access by root?
4. How do the users log into the system? ssh?


Top
 Profile  
 PostPosted: Mon Sep 15, 2008 6:20 am   

Joined: Sun Sep 14, 2008 3:36 am
Posts: 5
Yes I intend it to be a security tool.
Yes users should only be able to affect files in their home directory..
Root access also has to be covered
Users login using ssh or telnet...


Top
 Profile  
 PostPosted: Mon Sep 15, 2008 10:41 am   

Joined: Tue Apr 01, 2008 10:19 am
Posts: 49
What you need is a rootkit then. Don't ask for help about that here, you're on your own. Google is helpful.


Top
 Profile  
 PostPosted: Mon Sep 15, 2008 10:52 am   
User avatar

Joined: Sun Apr 13, 2008 4:05 am
Posts: 37
Location: /dev/random
http://honeypots.sourceforge.net/modified_script.html


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP