How to make password never expire – Chage command
To list current aging type chage command as follow/ How to make password never expire
# chage -l username
To disable password aging / expiration for user foo, type command as follows and set:
Minimum Password Age to 0
Maximum Password Age to 99999
Password Inactive to -1
Account Expiration Date to -1
Interactive mode command:
# chage username
OR
# chage -I -1 -m 0 -M 99999 -E -1 username
Category: Linux Administration
