nerdexam
CompTIACompTIA

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.

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 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 passwd command changes a user's password and can modify password aging settings but does not directly set the account's overall expiration date.
  • B. The usermod command modifies various user account properties, but while it can set an account expiration date (using -e), the chage command 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 userdel command 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

#Linux User Management#Account Expiration#chage command#User Account Security

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions