Back to the command reference

chage

UsersAdvanced In real Linux

Change password ageing

Name: chage = change age

This command needs a real Linux system; you can practise it in real Linux mode.

Full man page

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]... USER

Common options

-l / --listShow ageing information
-M / --maxdays DAYSMaximum days before a change
-m / --mindays DAYSMinimum days between password changes
-W / --warndays DAYSDays of warning before it expires
-d / --lastday DAYThe last change; -d 0 forces a change at the next login
-E / --expiredate DATEAccount expiry date
-I / --inactive DAYSDays after expiry before the account is locked

Examples

  • $ sudo chage -l alice

    When the password expires

    Explain
  • $ sudo chage -M 90 alice

    Require a change every 90 days

    Explain

Related