Operating System - Linux
1753797 Members
7470 Online
108805 Solutions
New Discussion юеВ

how do I know the history log of user change password ?

 
SOLVED
Go to solution
hangyu
Regular Advisor

how do I know the history log of user change password ?

what time the user have changed the password ? (the change password date)
2 REPLIES 2
Alexander Chuzhoy
Honored Contributor
Solution

Re: how do I know the history log of user change password ?

In /etc/shadow third field is: "Days since Jan 1, 1970 that password was last changed".
Steven E. Protter
Exalted Contributor

Re: how do I know the history log of user change password ?

Shalom,

read USERNAME

grep $USERNAME /etc/shadow | awk -F: '{print $1 $3}'


This will ask for a user name and display the user name and days since reset as noted in the prior post.

Use http://hpux.ws/caljd.sh If you'd like to process that information into a more normal output.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com