CompTIA Linux+ (XK0-004) — Question 211
A user tries to log in to the Linux console and receives the following message:
Your account has expired; Please contact your system administrator.
Which of the following commands was MOST likely run to create this behavior?
Answer options
- A. passwd
- B. usermod
- C. userdel
- D. chage
Correct answer: D
Explanation
The correct answer is D, 'chage', which is used to manage user account aging and expiration. The other options, such as 'passwd' and 'usermod', do not specifically set account expiration, while 'userdel' deletes accounts rather than expiring them.