Operating System - HP-UX
1834492 Members
3953 Online
110067 Solutions
New Discussion

How to find out the logins

 
SOLVED
Go to solution
Suni Raj
Advisor

How to find out the logins

Hi...

Someone(obviously with preveliged user) restarted the Sybase DB on my HP-UX 11.0 box. How can I find that who has done this or who was logged on to the server at a particular time.

Can anybody help me out in this regard.

Regds
Suni
8 REPLIES 8
Muthukumar_5
Honored Contributor
Solution

Re: How to find out the logins

last -R

will give it.

hth.
Easy to suggest when don't know about the problem!
Pete Randall
Outstanding Contributor

Re: How to find out the logins

The last command will give you login info.


Pete

Pete
RAC_1
Honored Contributor

Re: How to find out the logins

last -R - successful logins
lastb -R - invalid logins
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: How to find out the logins

# last will be helpful. Use # last -R to get user's hostname.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Rita C Workman
Honored Contributor

Re: How to find out the logins

last will tell who logged in and when.
But you need to take note who may still have been logged in at that time.

Suppose depending on your environment, and depending on how many folks have access to stop/start DB's, your going to have to narrow down who it 'could have been'.

Rgrds,
Rita


Borislav Perkov
Respected Contributor

Re: How to find out the logins

Hi Suni,

#last -R
and you will find who was logged but also look in /var/adm/sulog to see if he used the su command to user who is able to restart the Sysbase DB,

Regards,
Borislav

Morcos
Super Advisor

Re: How to find out the logins

last will be helpful in this case.

/var/adm/wtmp : login database.

Hope this helps

Ziad
Muthukumar_5
Honored Contributor

Re: How to find out the logins

Another way is simply (if you enabled history file) then,

cd /home
for file in `find . -type f -name "*history*"`
do
grep 'sybase-stop related string' $file
done

hth.
Easy to suggest when don't know about the problem!