CompTIA Linux+ (XK0-005) — Question 187

Following the migration from a disaster recovery site, a systems administrator wants a server to require a user to change credentials at initial login. Which of the following commands should be used to ensure the aging attribute?

Answer options

Correct answer: B

Explanation

The correct answer is B, as using 'chage -d 0 user' sets the last password change date to 0, which forces the user to change their password at the next login. Options A and D set different last change dates that do not enforce an immediate password change, while option C relates to account expiration rather than password aging.