password aging

The rules in the shadow file that decide how long a password lasts and when its user is warned.

In more detail

chage sets the minimum and maximum age, the warning period, inactivity and account expiry; chage -l reads them back. Setting the last change to day zero, as passwd -e does, forces a new password at the next login.

Example

chage -M 90 -W 7 mira makes passwords last 90 days with a week of warning.

Related terms

Taught in

References

Certification courses