chage Command Examples

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

chage --list {{username}}

sudo chage --maxdays {{10}} {{username}}

sudo chage --maxdays {{-1}} {{username}}

sudo chage --expiredate {{YYYY-MM-DD}} {{username}}

sudo chage --lastday {{0}} {{username}}