Command to check when root password was changed:
myserver:/> /usr/lbin/getprpw -m spwchg root
spwchg=Fri Nov 7 09:06:37 2014
or # getprpw -m spwchg {username}
where:
-m Displays the value for the argument passed
spwchg - last sucessful password change time
We can use following parameters with -m option.
uid - get the users uid
mintm - get the minimum time between password changes
maxpwln - get the maximum password length for this user
exptm - get password expiration time
lftm - get password lifetime
upwchg - last unsucessful password change time
acctexp - get account expiration time
llog - last login time interval
expwarn - password expiration warning time
myserver:/> /usr/lbin/getprpw -m spwchg root
spwchg=Fri Nov 7 09:06:37 2014
or # getprpw -m spwchg {username}
where:
-m Displays the value for the argument passed
spwchg - last sucessful password change time
We can use following parameters with -m option.
uid - get the users uid
mintm - get the minimum time between password changes
maxpwln - get the maximum password length for this user
exptm - get password expiration time
lftm - get password lifetime
upwchg - last unsucessful password change time
acctexp - get account expiration time
llog - last login time interval
expwarn - password expiration warning time
Thanks for reading!
Kiran Jaddhav
No comments:
Post a Comment