XK0-004 · Question #308
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
The correct answer is D. chage. The chage command is dedicated to managing account and password expiration settings, making it the most likely cause of a 'Your account has expired' login message.
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?
Options
- Apasswd
- Busermod
- Cuserdel
- Dchage
How the community answered
(36 responses)- A6% (2)
- B3% (1)
- D92% (33)
Why each option
The chage command is dedicated to managing account and password expiration settings, making it the most likely cause of a 'Your account has expired' login message.
The passwd command changes or locks a user's password but does not configure account expiration dates that produce the specific 'account has expired' error message.
While usermod -e can set an expiration date, chage is the dedicated tool specifically designed for password and account aging management and is the most likely command used for this purpose.
The userdel command removes a user account entirely from the system; a deleted account would not produce an expiration message, as the login would fail with a different error.
The chage command (change age) is specifically designed to set account expiration dates and password aging policies on Linux. Using chage -E with a past date or chage -E 0 sets an immediate expiration, which causes the system to display 'Your account has expired; Please contact your system administrator' when the user attempts to log in.
Concept tested: Linux account expiration management with chage
Source: https://man7.org/linux/man-pages/man1/chage.1.html
Topics
Community Discussion
No community discussion yet for this question.