nerdexam
LPI

117-102 · Question #257

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 the first. 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 the first :
  • EEdit /etc/group file and put a # sign in front of his name

How the community answered

(44 responses)
  • A
    16% (7)
  • B
    2% (1)
  • C
    2% (1)
  • D
    73% (32)
  • E
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice