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)- A71% (17)
- C4% (1)
- D8% (2)
- E17% (4)
Community Discussion
No community discussion yet for this question.