chage

This command is used to view and change the user password expiry information
To view the list of options that can be used with the chage command use these options:

chage --help
chage -h
To view the account aging information for user linda:
chage -l linda
To set the last password change date to your specified date. useful if you want to expire the current password. The below command sets when (in days) the password is last changed for user linda. The parameter may also be expressed in the format YYYY-MM-DD):
chage -d 0 linda
chage -d 1970-01-01 linda
Specify the date when the account should expire:
chage -E 2030-01-01 linda
Use -M or -m option to specify the maximum and minimum number of days between password change:
chage -M 5 linda
chage -m 1 linda
chage allows you to set to change the password after its expiry date. Once you set the limit of days using the -I option, it would allow the user to change the account password during its inactivity period:
chage -I 10 linda
Use -W option to give prior warning before the password expires. By default, the value is set to 7 days:
chage -W 10 linda