RSS

How to read user password was last changed in AIX

30 Jul

To check with particular user’s last password changed in AIX.
Admin can check by execute following command

root@aix-server1:/etc/security# pwdadm -q user3
user3:
lastupdate = 1406597936

To determine when a password was last set or changed, as indicated in the last update value in pwdadm output. The UTC time stamp in seconds will need to be converted into a more meaningful current date time stamp.

root@aix-server1:/etc/security# perl -le ‘print scalar localtime 1406597936’
Tue Jul 29 09:38:56 2014

 
Leave a comment

Posted by on July 30, 2014 in AIX, Tool

 

Tags: , , ,

Leave a comment