CompTIA Linux+ (XK0-004) — Question 267
A Linux administrator needs to configure a user account to notify the user ten days before the password will expire. Which of the following commands would BEST accomplish this task?
Answer options
- A. chage
- B. vipw
- C. passwd
- D. usermod
Correct answer: D
Explanation
The correct command is usermod, as it allows the administrator to modify user account settings, including password expiration notifications. chage is also relevant for managing password expiry, but usermod is more appropriate for direct account modifications. The other options, vipw and passwd, do not provide the functionality needed to set notification periods for password expiration.