Options (4)
-l, --listbooleanList password information for the user
Example:
chage {{[-l|--list]}} {{username}}-M, --maxdaysbooleanEnable password expiration in 10 days
Example:
sudo chage {{[-M|--maxdays]}} {{10}} {{username}}-E, --expiredatebooleanSet account expiration date
Example:
sudo chage {{[-E|--expiredate]}} {{YYYY-MM-DD}} {{username}}-d, --lastdaybooleanForce user to change password on next log in
Example:
sudo chage {{[-d|--lastday]}} {{0}} {{username}}Examples (6)
List password information for the user
chage [-l|--list] usernamemade by @shridhargupta | data from tldr-pages