To prevent logins from users other than root while /etc/nologin exists, which PAM module should be used?
Correct Answer: D. pam_nologin.so
The pam_nologin.so module is specifically designed to prevent non-root users from logging in when the /etc/nologin file exists. If this file is present, the module denies login attempts for all users except root and displays the file’s content as a message. This is useful for system maintenance, ensuring only the root user has access while notifying others of the restricted state.
Why other options are incorrect:
Discover a range of courses designed to provide you with the knowledge and skills needed to excel in your chosen field.
You don’t need one month to study and pass your test.
With Prepsaret, it takes you a few days to grasp all the concepts needed to pass your exams