ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 44 - XK0-005 discussion

Report
Export

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
Answers
A.
pam_login.so
B.
pam_access.so
Answers
B.
pam_access.so
C.
pam_logindef.so
Answers
C.
pam_logindef.so
D.
pam_nologin.so
Answers
D.
pam_nologin.so
Suggested answer: D

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 log in. This is the correct module to accomplish the task. The other options are incorrect because they are either non-existent modules (pam_login.so or pam_logindef.so) or do not perform the required function (pam_access.so controls access based on host, user, or time). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 15: Managing Users and Groups, page 471.

asked 02/10/2024
Krzychu Kn
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first