thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Systems & Data Center · Intermediate

chage

The Linux command that views and sets password aging policy for a user account.

Definition

chage controls minimum days between changes, maximum password age, warning days, inactivity lock and account expiration date, stored in /etc/shadow. chage -d 0 forces a password change at next login.

Example

chage -M 90 -W 7 jdoe enforces a 90-day maximum password age with a 7-day warning.

Exam tip

chage -d 0 user is the standard way to force a password change at next login.

Related terms