The chage command

change user password expiry information 2 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-l, --list
Show account aging information.
-E, --expiredate EXPIRE_DATE
Set the date or number of days since January 1, 1970 on which the user's account will no longer be accessible.

Examples

sudo chage -l maria

Password and account expiry dates

sudo chage -E -1 maria

The account never expires

Lessons that use chage