nerdexam
Linux_Foundation

LFCS · Question #12

Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

The correct answer is A. tcpd. The tcpd program, also known as TCP Wrappers, is responsible for checking access control restrictions against the hosts.allow and hosts.deny files for incoming connection requests to network services.

Submitted by layla.eg· Apr 18, 2026Service Configuration

Question

Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

Options

  • Atcpd
  • Binetd
  • Cfingerd
  • Dmountd
  • Exinetd

How the community answered

(41 responses)
  • A
    88% (36)
  • C
    7% (3)
  • D
    2% (1)
  • E
    2% (1)

Why each option

The tcpd program, also known as TCP Wrappers, is responsible for checking access control restrictions against the hosts.allow and hosts.deny files for incoming connection requests to network services.

AtcpdCorrect

tcpd is a program that acts as a wrapper for network services, consulting the /etc/hosts.allow and /etc/hosts.deny files to determine whether a client host is permitted to connect to a specific service. It provides host-based access control for many Internet services that are typically started by inetd or xinetd.

Binetd

inetd is a super-server daemon that listens for incoming requests for various services and launches the appropriate server program, but it does not directly use hosts.allow for access control itself (it often relies on tcpd if configured).

Cfingerd

fingerd is the daemon that provides the finger service, which displays information about system users, and does not directly use hosts.allow for access control.

Dmountd

mountd is the NFS mount daemon that processes mount requests from NFS clients, and it uses other mechanisms for access control, such as RPC authentication or /etc/exports.

Exinetd

xinetd is an extended Internet services daemon that offers more advanced features than inetd, including its own access control mechanisms, but it can still use tcpd for compatibility rather than directly parsing hosts.allow itself.

Concept tested: TCP Wrappers hosts.allow file usage

Source: https://man7.org/linux/man-pages/man8/tcpd.8.html

Topics

#TCP Wrappers#Access Control#Service Security#hosts.allow

Community Discussion

No community discussion yet for this question.

Full LFCS Practice