chage
UsersAdvanced In real LinuxChange password ageing
Name: chage = change age
This command needs a real Linux system; you can practise it in real Linux mode.
Description
chage shows and changes password ageing: maximum and minimum days, warning period, account expiry date and so on; common on servers that require regular password changes.
Syntax
chage [OPTION]... USERCommon options
| -l / --list | Show ageing information |
| -M / --maxdays DAYS | Maximum days before a change |
| -m / --mindays DAYS | Minimum days between password changes |
| -W / --warndays DAYS | Days of warning before it expires |
| -d / --lastday DAY | The last change; -d 0 forces a change at the next login |
| -E / --expiredate DATE | Account expiry date |
| -I / --inactive DAYS | Days after expiry before the account is locked |