nerdexam
LPI

102-400 · Question #9

Which of the following steps prevents a user from obtaining an interactive login session?

The correct answer is A. Run the command chsh -s /bin/false with the user name. See the full explanation below for the reasoning.

Question

Which of the following steps prevents a user from obtaining an interactive login session?

Options

  • ARun the command chsh -s /bin/false with the user name.
  • BSet the UID for the user to 0.
  • CRemove the user from the group staff.
  • DAdd the user to /etc/noaccess.
  • ECreate a .nologin file in the user's home directory.

How the community answered

(24 responses)
  • A
    71% (17)
  • C
    4% (1)
  • D
    8% (2)
  • E
    17% (4)

Community Discussion

No community discussion yet for this question.

Full 102-400 Practice