nerdexam
CompTIACompTIA

XK0-005 · Question #1303

XK0-005 Question #1303: Real Exam Question with Answer & Explanation

The 'Your account has expired' message at the Linux console indicates that a specific command was used to set an expiration date for the user's account.

System Management

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 'Your account has expired' message at the Linux console indicates that a specific command was used to set an expiration date for the user's account.

Common mistakes.

  • A. The passwd command is primarily used to change a user's password and can set password expiration days (passwd -x), but it does not directly set the overall account expiration date that would trigger this message.
  • B. The usermod command modifies user account attributes, and while usermod -e can set an account expiration date, chage is the dedicated utility for managing password and account aging policies, making it the most likely or direct command.
  • C. The userdel command is used to delete a user account entirely, which would prevent login altogether, not just expire the account.

Concept tested. Linux user account expiration management

Reference. https://linux.die.net/man/1/chage

Topics

#User Management#Account Expiration#Linux Commands#usermod command

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions