nerdexam
CompTIA

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…

System Management

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)
  • A
    4% (2)
  • B
    2% (1)
  • C
    2% (1)
  • D
    92% (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

#PAM#User Management#Login Restrictions#/etc/nologin

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice