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)- A17% (5)
- B7% (2)
- C73% (22)
- D3% (1)
Community Discussion
No community discussion yet for this question.