lchage Command Examples

Display or change user password policy. More information: https://manned.org/lchage.

sudo lchage --date -1 {{username}}

sudo lchage --list {{username}}

sudo lchage --maxdays {{number_of_days}} {{username}}

sudo lchage --warndays {{number_of_days}} {{username}}