How to make password never expire – Chage command

| May 2, 2011 | 0 Comments

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

Tags: ,

Category: Linux Administration

Leave a Reply

You must be logged in to post a comment.