Operating System - HP-UX
1833779 Members
2166 Online
110063 Solutions
New Discussion

May I know who has changed the password?

 
SOLVED
Go to solution
lin.chen
Frequent Advisor

May I know who has changed the password?

is there any log in HPUX to record who has changed the password?
thanks!
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: May I know who has changed the password?

Which password? root? Someone else's?

Such a log really doesn't exist. You *MIGHT* be able to find something in a users shell history file, but that would be pure luck and it would be difficult to know exactly WHEN they issues the passwd command.
Vasu Viswanadha
Advisor

Re: May I know who has changed the password?



Hi,

You may try 'last' command to see the logged on users at that time and match it with time stamp of '/etc/passwd' file. If only one user's password is chaanged then you are lucky. If more than one user has changed his / her password, it won't be that easy to trace out.

Finally, if shell history is enabled, you can find out who chaged the password from ~/.sh_history

BR
Vasu