Which of the following steps prevents a user from obtaining an interactive login session?
A. Setting the UID for the user to 0.
B. Running the command chsh -s /bin/false with the user name.
C. Removing the user from the group staff.
D. Adding the user to /etc/noaccess.
E. Creating a .nologin file in the user’s home directory.
I just had the exam. It’s 100% B!!! because I had in the Security Section 100%!
I think the right answer is D
D is not possible, try it yourself on you system. B is right.