nerdexam
CompTIA

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.

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?

Options

  • Apasswd
  • Busermod
  • Cuserdel
  • Dchage

How the community answered

(36 responses)
  • A
    6% (2)
  • B
    3% (1)
  • D
    92% (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.

Apasswd

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.

Busermod

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.

Cuserdel

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.

DchageCorrect

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

#account expiration#chage#password aging#user management

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice