CompTIA Linux+ XK0-005 – Question031

A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/ nologin exists. Which of the following PAM modules will accomplish this task?

A.
pam_login.so
B. pam_access.so
C. pam_logindef.so
D. pam_nologin.so

Correct Answer: D