CompTIA
LX0-104 · Question #418
LX0-104 Question #418: Real Exam Question with Answer & Explanation
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
Community Discussion
No community discussion yet for this question.