nerdexam
CompTIA

LX0-101 · Question #320

You have a user whose account you want to disable but not remove. What should you do?

The correct answer is D. Edit /etc/passwd and insert an * after thefirst. See the full explanation below for the reasoning.

Question

You have a user whose account you want to disable but not remove. What should you do?

Options

  • AEdit /etc/gshadow and just remove his name.
  • BEdit /etc/passwd and change all numbers to 0.
  • CEdit /etc/shadow and remove the last field.
  • DEdit /etc/passwd and insert an * after thefirst : .
  • EEdit /etc/group file and put a # sign in front of his name.

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    11% (5)
  • C
    4% (2)
  • D
    82% (37)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice