1. To check root password expiration
AIX:
# lsuser -a expires root
Ensure root expires is set to 0(Zero) {“0” means never expire}
SOLARIS:
# chage –l root
Ensure Password expires: never
LINUX:
# grep MAXWEEKS /etc/default/passwd
Ensure /etc/default/passwd has “MAXWEEKS=” with no value after it
2. To set encrypted passwd to be non-expiring
AIX:
# chuser expires=0 root
SOLARIS:
# passwd -x -1 root -OR- chage -M -1 root