QuestionQ109

System Security

Select the alternative that demonstrates the correct method to disable user logins for everyone except root.

  • A The use of the pam_block module along with the /etc/login configuration file.
  • B The use of the pam_deny module along with the /etc/deny configuration file.
  • C The use of the pam_pwdb module along with the /etc/pwdv.conf configuration file.
  • D The use of the pam_nologin module along with the /etc/nologin configuration file.
Explanation

The pam_nologin PAM module denies login to non-root users when /etc/nologin exists, but it does not affect root’s ability to log in.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!