Linux command chage disable user password expiry

# chage username

# chage -I -1 -m 0 -M 99999 -E -1 username

# 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


Viet Luu has written 152 articles

Leave a Reply