The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Track user activity on Unix jayfriend Linux 2 11-06-2008 06:27 AM
Track user activity --pls help anandtharani UNIX for Advanced & Expert Users 2 09-22-2006 05:38 AM
Tool to monitor user activity nana UNIX for Dummies Questions & Answers 3 07-15-2005 12:26 PM
audit user activity - possible? sureshy UNIX for Dummies Questions & Answers 1 02-21-2005 09:49 AM
Echoing remote user activity? dangerousbeans UNIX for Advanced & Expert Users 1 07-21-2004 01:48 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-20-2009
Browser_ice Browser_ice is offline
Registered User
  
 

Join Date: Nov 2005
Location: Canada
Posts: 110
Question Bullet proof of user history activity

Hi, is there a bullet proof of getting the history of all commands entered by a user on a specific server and idealy with the times ?

We have several servers. Therefore we can simply logon to one and do RLOGINS to go to others. We always first logon to servers with our personnal login and then switch to root. From there we can either work directly or switch to a few other users. We have the option of connecting to another server using RLOGIN (but with first being root as we don`t have to enter passwords on the rlogined server).

I have to find out if a specific employee did some work over the weekend as it is causing major escalation pain.

I am not sure if just doing a ROOT> HISTORY -999 is safe enough to check the activity of any users on one specific server no matter how they connected to it.

[added comments]
I just remembered that someone here once retrieved every single screen outputs that was done on one specific server including command prompt. Maybe that is what I need but don't recall how he did it.

We are using /bin/ksh shell by the way and AIX v4.2

Last edited by Browser_ice; 01-20-2009 at 08:28 AM..
  #2 (permalink)  
Old 01-20-2009
aixylinux aixylinux is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 36
I saw an interesting take on this problem once. Only Operations had the root password, and management approval was required to give it out. Admins gained root access by running a shell script (call it suroot) which called the script command to direct the screen activity to a temporary file, then called sudo to put the caller into root shell. When root was exited the script sent the screen output file to a remote security server. When root was entered and exited, an email was sent to the security server. This did not prevent the root user from removing or altering the temporary script file, so it was no proof against clever malice. But an audit that showed entry and exit without a screen file would have been flagged. But even that might have been hacked. The tool was more for a record of what was done, which was useful for honest admins to diagnose a goof-up.

In your case, this is closing the barn door. If you can't trust root, who can you trust?
  #3 (permalink)  
Old 01-20-2009
Browser_ice Browser_ice is offline
Registered User
  
 

Join Date: Nov 2005
Location: Canada
Posts: 110
Exclamation

I have plans to change this (in fact just about everything) and got the GO to do so.

But in the mean time, I need to get an answer to this problem as we had a problem on the last weekend and it got escaladed to the directors. I have to find out if an employee is telling me the truth on what he did or if he is lying to me (what I believe but the proofs are slim). He claims he did a task but when I look at the folders, I do not see this. I need to get a proof he did not do it and not that he had problems doing it or did it wrong.
  #4 (permalink)  
Old 01-20-2009
indiana_tas indiana_tas is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 17
So, the user could have edited the file as root? Or would he/she have done so as him/herself? My initial thought is that you could run a find on all files modified since last week...

find <directory> -mtime -7 -user <user>
  #5 (permalink)  
Old 01-26-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 431
if the employee knows what he is doing, you have no way to find out specific commands to a specific time
check the history file $HOME/.sh_history, if it has been deleted you can see if the employee is trying to hide something

if you delete a specific command from the .sh_history using vi, it's not possible to scroll back since the history file is a special file, check out for this

you can follow his IP-Adress using the "last" command from server to server and see where he was logged in, so you can say if he has been on this server or not

perhaps tell us what you expect he was doing, maybe there is another way


for the future, you can use sudosh, which shows the user input in realtime! you can play it like a movie, including backspace and so on, or put the following entries in /etc/profile, that is what we are doing:

export HISTFILE=/somedir/${LOGNAME}_`date "+%Y%m%d_%H%M%S"`
export HISTSIZE=2000000

the disadvantage of this is, that the user is able to delete this files
Closed Thread

Bookmarks

Tags
history, mtime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0