Solved

.sh_history question

Posted on 2009-07-08
3
784 Views
Last Modified: 2012-05-07
On our UNIX system , we have a common account. there are around 6 users who can log into that account. the $HOME/.sh_history file has shown some suspicious commands . ( somebody deleted important files using rm command)..   Through this .sh_history file can i get to know who was the user who ran the rm commands.

One thing to note is everybody first loginto thier indiviuval account and then by using su command they log into common account.

the .sh_history file shows only commands. Can me or adming with extra rights get to know who was the actual user who ran those commands.
0
Comment
Question by:n78298
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24801746
Hi,
with 'su' there should be a logfile called 'sulog' somewhere, depending on your OS.
In some systems, logging is controlled by the environment variable 'SULOG_FILE'
Additionally, there could be syslog entries.
Please check!
wmp
 
 
0
 

Author Comment

by:n78298
ID: 24801800
without su coming into picture , can;t we identify who was the user who issues those commands.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 24801955
No, unfortunately not, as the history files belong to the target user ('common account'). There is no information contained where the user came from.
You could check who logged in from where at which time using the 'last' command, given you keep the 'wtmp' file long enough.
See 'man last' for details.
wmp
 
 
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now