LPIC-2 Exam 201 (Linux Engineer) — Question 55
Which of the following configuration files are used by tcpwrapper?
Answer options
- A. /etc/tcpd.allow and etc/tcpd.deny
- B. /etc/tcpwrapper.allow and /etc/tcpwrapper.deny
- C. /etc/hosts.allow and /etc/hosts.deny
- D. /etc/access.allow and /etc/access.deny
- E. /etc/service.allow and /etc/service.deny
Correct answer: C
Explanation
The correct answer is C, as tcpwrapper uses /etc/hosts.allow and /etc/hosts.deny to control access to services. The other options refer to incorrect or nonexistent configuration files associated with tcpwrapper. A and B mention 'tcpd' and 'tcpwrapper' which are not the actual files used, while D and E reference unrelated files.