Change password expiry in Linux


“chage” is the command to list & change the password aging information for Linux user account. The chage command changes the number of days between password expiry and the current date. Here’s a real quick on how to show the expiration date of a particular linux user account.

Listing password aging for user:
Change the number of days to expire:
Change the password to never expire:
Change account expiry to specific date:

Read more on this website >>