XK0-005 · Question #517
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?
The correct answer is D. pam_nologin.so. The PAM module pam_nologin.so will prevent logins from accounts other than root, while the file /etc/nologin exists. This module checks for the existence of the file /etc/nologin and displays its contents to the user before denying access. The root user is exempt from this…
Question
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?
Options
- Apam_login.so
- Bpam_access.so
- Cpam_logindef.so
- Dpam_nologin.so
How the community answered
(50 responses)- A4% (2)
- B2% (1)
- C2% (1)
- D92% (46)
Explanation
The PAM module pam_nologin.so will prevent logins from accounts other than root, while the file /etc/nologin exists. This module checks for the existence of the file /etc/nologin and displays its contents to the user before denying access. The root user is exempt from this check and can still
Topics
Community Discussion
No community discussion yet for this question.