nerdexam
CompTIA

LX0-102 · Question #418

The system administrator wishes to use the pam_listfile.so module to restrict which users are allowed to login via SSH. Which line will configure this behaviour?

The correct answer is C. auth required pam_listfile.so item=user sense=allow file=/etc/sshd/sshd.allow onerr=fail. See the full explanation below for the reasoning.

Question

The system administrator wishes to use the pam_listfile.so module to restrict which users are allowed to login via SSH. Which line will configure this behaviour?

Options

  • Aauth required pam_listfile.so item=user sense=deny file=/etc/sshd/sshd.deny onerr=succeed
  • Bauth required pam_listfile.so item=user sense=allow file=/etc/sshd/sshd.allow onerr=succeed
  • Cauth required pam_listfile.so item=user sense=allow file=/etc/sshd/sshd.allow onerr=fail
  • Dauth required pam_listfile.so item=user sense=deny file=/etc/sshd/sshd.deny onerr=fail

How the community answered

(30 responses)
  • A
    17% (5)
  • B
    7% (2)
  • C
    73% (22)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-102 Practice