A very common Linux administration task is to set user account to expire their password and request a new account password from the user.
To see what the current policy is set to, execute the following.
1 |
sudo chage -l username |
You should see output like.
1 2 3 4 5 6 |
Last password change : May 27, 2020Password expires : Sep 24, 2020 Password inactive : never Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 120 Number of days of warning before password expires : 7 |
You can change the password expiry with the following command
1 |
sudo chage -M 120 username |