chage
Change user account and password expiry information. tldr-pages
On Linux
Linux
List password information for the user
chage --list usernameIdentifyEnable password expiration in 10 days
sudo chage --maxdays 10 usernameIdentifyDisable password expiration
sudo chage --maxdays -1 usernameIdentifySet account expiration date
sudo chage --expiredate YYYY-MM-DD usernameIdentifyForce user to change password on next log in
sudo chage --lastday 0 usernameIdentifyRe-enable an account
sudo chage --expiredate -1 usernameIdentify