chage Command Examples

Change user account and password expiry information. More information: https://manned.org/chage.

chage {{[-l|--list]]} {{username}}

sudo chage {{[-M|--maxdays]}} {{10}} {{username}}

sudo chage {{[-M|--maxdays]}} {{-1}} {{username}}

sudo chage {{[-E|--expiredate]}} {{YYYY-MM-DD}} {{username}}

sudo chage {{[-d|--lastday]}} {{0}} {{username}}

sudo chage {{[-E|--expiredate]}} -1 {{username}}