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 usuarioMost useful options
-lShows the current policy-MMaximum days until expiry-EAccount expiry dateCopy-ready examples
$ sudo chage -l alumnoSee the password policyYou 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.
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