nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #110

LFCS Question #110: Real Exam Question with Answer & Explanation

Sign in or unlock LFCS to reveal the answer and full explanation for question #110. The question stem and answer options stay visible for context.

Submitted by hans_de· Apr 18, 2026User and Group Management

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.

Unlock LFCS to see the answer

You've previewed enough free LFCS questions. Unlock LFCS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#User management#Login shells#Account security
Full LFCS PracticeBrowse All LFCS Questions