If you want a user’s password to never expire use:
# chage -I -1 -m 0 -M 99999 -E -1 theuser
If you just want to check the user’s password expiry then
# chage -l theuser
# passwd -Sa | grep -i theuser
some Unix notes
If you want a user’s password to never expire use:
# chage -I -1 -m 0 -M 99999 -E -1 theuser
If you just want to check the user’s password expiry then
# chage -l theuser
# passwd -Sa | grep -i theuser