nerdexam
CompTIA

XK0-005 · Question #467

A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users' access will be disabled once the project is over. The expiration date should be…

The correct answer is A. sudo useradd -e 2021-09-30 Project_user. The command that will accomplish this task is sudo useradd -e 2021-09-30 Project_user. This command will create a new user account named Project_user with an expiration date of 2021-09- 30. The -e option of useradd specifies the date on which the user account will be disabled…

System Management

Question

A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users' access will be disabled once the project is over. The expiration date should be 2021- 09-30. Which of the following commands will accomplish this task?

Options

  • Asudo useradd -e 2021-09-30 Project_user
  • Bsudo useradd -c 2021-09-30 Project_user
  • Csudo modinfo -F 2021-09-30 Project_uses
  • Dsudo useradd -m -d 2021-09-30 Project_user

How the community answered

(35 responses)
  • A
    86% (30)
  • B
    3% (1)
  • C
    9% (3)
  • D
    3% (1)

Explanation

The command that will accomplish this task is sudo useradd -e 2021-09-30 Project_user. This command will create a new user account named Project_user with an expiration date of 2021-09- 30. The -e option of useradd specifies the date on which the user account will be disabled in YYYY-MM- DD format.

Topics

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

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice