Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
lastupdate Specifies the time (in seconds) since the epoch (00:00:00 GMT, January 1, 1970) when the password was last changed. If password aging (the minage attribute or the maxage attribute) is in effect, the lastupdate attribute forces a password change when the time limit expires. (See the /etc/security/user file for information on password aging.) The passwd and pwdadm commands normally set this attribute when a password is changed. The value is a decimal integer that can be converted to a text string using the ctime subroutine.
#!/bin/ksh
# set seperator to :
# get usernames from /etc/passwd
IFS=:
while read -r USER JUNK JUNK JUNK JUNK JUNK JUNK
do
# for each username, get the last password update time - in seconds
# since the epoch
LUP=$(lssec -f /etc/security/passwd -s $USER -a lastupdate|cut -f2 -d=)
NRM_DATE=$(perl -e "print scalar localtime($LUP);")
#print the username and the last pw change date
echo " User: $USER"
echo "Last PW change: $NRM_DATE"
echo ""
done < /etc/passwd