exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 31 discussion

Actual exam question from CompTIA's XK0-005
Question #: 31
Topic #: 1
[All XK0-005 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
8 months, 4 weeks ago
The correct PAM module to accomplish the task of preventing logins from accounts other than root when the file /etc/nologin exists is pam_nologin.so. This PAM module checks for the existence of the /etc/nologin file and denies logins if the file exists. By using pam_nologin.so in the appropriate PAM configuration file, the systems administrator can ensure that only root logins are allowed when the /etc/nologin file is present.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago