XK0-005 · Question #308
XK0-005 Question #308: Real Exam Question with Answer & Explanation
The message "Your account has expired" indicates that the chage command was most likely used to set an expiration date for the user's account, preventing further logins after that date.
Question
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? passwd A.
Options
- Busermod
- Cuserdel
Explanation
The message "Your account has expired" indicates that the chage command was most likely used to set an expiration date for the user's account, preventing further logins after that date.
Common mistakes.
- A. The
passwdcommand changes a user's password and can modify password aging settings but does not directly set the account's overall expiration date. - B. The
usermodcommand modifies various user account properties, but while it can set an account expiration date (using-e), thechagecommand is more specifically dedicated to managing password and account aging details, making it a more direct and common tool for setting account expiration. - C. The
userdelcommand deletes a user account entirely, which would prevent login but would not display an "account expired" message; the account simply would not exist.
Concept tested. Linux account expiration management
Reference. https://man7.org/linux/man-pages/man1/chage.1.html
Topics
Community Discussion
No community discussion yet for this question.