The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CEP: What about the action? iBot Complex Event Processing RSS News 0 02-15-2008 07:20 AM
Signal Default Action matrixmadhan High Level Programming 7 11-29-2007 04:42 PM
Tracking user panknil UNIX for Advanced & Expert Users 5 06-25-2007 08:40 AM
action command esham Shell Programming and Scripting 5 07-30-2005 01:04 AM
any idea to repeat a action in VI myelvis UNIX for Dummies Questions & Answers 6 11-26-2003 02:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-05-2006
Registered User
 

Join Date: Sep 2006
Posts: 4
Stumble this Post!
tracking user action

Hi,

we are using solaris8. we have some files disappear. I would like to know how to track who and when the files was remove ???
thanks,
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-05-2006
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 378
Stumble this Post!
You could start with users' shell histories.
Reply With Quote
  #3 (permalink)  
Old 09-05-2006
Registered User
 

Join Date: Sep 2006
Posts: 4
Stumble this Post!
Hi,

We have an oracle account and share among admin.
each of us login as individual name, then su - oracle.
Therefore it is hard to know who deleted the files.
Where can I set the history file with more detail of ip address login or time of files was removed.

thanks,
Reply With Quote
  #4 (permalink)  
Old 09-05-2006
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 378
Stumble this Post!
Couple things you could do:

- You could set an environment that keeps separate shell histories for any user that su's to oracle. Ex: make user oracle's shell ksh, then make .profile writable to root only. In .profile, set HISTFILE to something like .sh_history.$USER. You can script the retrieval of the user name or, something I saw implemented before, you give the users a code they need to enter, which will match their usernames.

You could make the oracle account accessible to only one user at the time. Same deal, whatever .profile or .bashrc, you make writable to root only. Inside, script a check to see if anyone is already su'd to oracle. If so, kill the session. Then you can simply use sulog and the oracle user's shell history.
Reply With Quote
  #5 (permalink)  
Old 09-05-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
Stumble this Post!
If you are going to set the .profile ownerships to root, then make sure that you make the oracle home directory root owned, or else anyone can do whatever they want to the file.

A better idea would be to have some sort of rootlogger script using the 'script' command or using one of the many commercially available logging software.
Reply With Quote
  #6 (permalink)  
Old 09-12-2006
Registered User
 

Join Date: Aug 2006
Posts: 122
Stumble this Post!
Sounds like you have a problem with users, and privileged user accounts. ie oracle

You could try one of two or both… methods….you should look into the possibilities to see if they suit your needs first as they are only suggestions.

You need to get control over the “su” command. Basically stop users “su”ing to privileged accounts.

Modify the /etc/profile (Global system file) to run a script that checks to see if the user requesting to “su” to the privileged account is allowed to…
(I have done this and its dead easy….Only hassle is that the /etc/profile is over written every time you upgrade the OS. Hence you need to replace the code. I used a one liner to over come this.) I may still have the scripts handy, I did it about 5 years ago.. at one site and it really did the trick.

Install “sudo” and you can start to control who can run what command. And sudo has a log file.

Sudo is available on the net, and there’s heaps of info as well.

Incorporate the command checking as outlined in the previous replies posted above.
Reply With Quote
  #7 (permalink)  
Old 09-12-2006
Registered User
 

Join Date: Sep 2006
Posts: 1,542
Stumble this Post!
best of all, turn on BSM auditing...but do some research first before using.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0