HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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