Users

The chage command

Views and changes a password's expiry: when it expires and how often it must be changed.

Syntax

chage -l usuario | chage -M días usuario

Most useful options

-lShows the current policy
-MMaximum days until expiry
-EAccount expiry date

Copy-ready examples

$ sudo chage -l alumnoSee the password policy

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • It requires administrator rights to modify accounts other than your own.

Related commands

FAQ

What is 'password expires'?

The date when the password stops being valid and must be changed.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course