Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Search Forums:



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-14-2010
Registered User
 

Join Date: Jun 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
unix keylogger

Can anyone point me to a shareware/freeware keylogger software for unix for admin monitoring purposes on our central servers?

thanks,
Sam
Sponsored Links
    #2  
Old 03-14-2010
Registered User
 

Join Date: Dec 2007
Posts: 205
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by sardare View Post
Can anyone point me to a shareware/freeware keylogger software for unix for admin monitoring purposes on our central servers?

thanks,
Sam
this comes very close to a hacking question...

can you give us more infomation as to what the problem is that you are trying to solve?

why do you need loggin of every keystroke?
Sponsored Links
    #3  
Old 03-15-2010
Registered User
 

Join Date: Jun 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by robsonde View Post
this comes very close to a hacking question...

can you give us more infomation as to what the problem is that you are trying to solve?

why do you need loggin of every keystroke?

I want to log all sessions to the central server for auditing and security. Privacy is not an issue here as it is central server and there are few admins.
    #4  
Old 03-16-2010
Registered User
 

Join Date: Jul 2007
Posts: 258
Thanks: 17
Thanked 17 Times in 16 Posts
It isn't a key logger but you could setup history files and copy those to a centralized server. History files save all the commands users run. You can setup the "HISTFILE" variable in your /etc/profile so every user gets the same format. We have ours setup similar to this:
Code:
WHO2=$(/usr/bin/who -m | cut -d\( -f2 | cut -d\) -f1 | sed 's/\./_/g')
HISTFILE=$HOME/.history/.history.${WHO2}.$(date +%Y%m%d.%H%M%S).$$.${LOGNAME}

This format lets me know who the user logged into the machine as ("WHO2"), who the commands were run as ("LOGNAME"), and the date/time they logged into the box. This has proven useful to us many times over.
Sponsored Links
    #5  
Old 03-16-2010
Registered User
 

Join Date: Jul 2005
Location: Northern California
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
The 'script' command can be used for these solutions (monitoring admin sessions), see ISBN:0-471-21821-9 "Mastering Unix Shell Scripting" chapter 19.
Sponsored Links
    #6  
Old 03-16-2010
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 4,737
Thanks: 36
Thanked 139 Times in 136 Posts
solaris for example has a buildin auditing function! i don't know about the others...
Sponsored Links
    #7  
Old 03-17-2010
funksen funksen is offline Forum Advisor  
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 608
Thanks: 14
Thanked 18 Times in 18 Posts
check out sudosh

saves session input and output, replays the session in realtime, or faster when you want

looks like


Code:
second
ls-ltra 
command not found
backspace backspace backspace backspace backspace
ls -ltrs
backspace
ls -ltra

or something like that

funny thing
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 05:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 06:57 AM



All times are GMT -4. The time now is 03:01 AM.