nerdexam
CompTIA

LX0-104 · Question #672

Depending on the host's configuration, which of the following files can be used to turn on and off network services running on a host? (choose two correct answers.)

The correct answer is C. /etc/inetd.conf D. /etc/xinetd.conf. Network services that are started on demand by a super-server can be enabled or disabled by modifying the configuration files for inetd or xinetd.

Essential System Services

Question

Depending on the host's configuration, which of the following files can be used to turn on and off network services running on a host? (choose two correct answers.)

Options

  • A/etc/profile
  • B/etc/services
  • C/etc/inetd.conf
  • D/etc/xinetd.conf
  • E/etc/host.conf

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    88% (23)

Why each option

Network services that are started on demand by a super-server can be enabled or disabled by modifying the configuration files for `inetd` or `xinetd`.

A/etc/profile

The `/etc/profile` file is a system-wide initialization script for shell environments and does not control the enabling or disabling of network services.

B/etc/services

The `/etc/services` file maps service names to port numbers but does not contain configuration that directly turns network services on or off.

C/etc/inetd.confCorrect

The `/etc/inetd.conf` file is the configuration file for the `inetd` super-server, which listens for incoming connections on specific ports and launches the corresponding service on demand; commenting out or removing entries here effectively turns services on or off.

D/etc/xinetd.confCorrect

The `/etc/xinetd.conf` file (or files in `/etc/xinetd.d/`) is the configuration for `xinetd`, an enhanced `inetd` super-server, where entries for network services can be enabled or disabled to control their availability.

E/etc/host.conf

The `/etc/host.conf` file determines the order in which name resolution sources are consulted (e.g., files before DNS) and does not control the operational status of network services.

Concept tested: Super-server configuration files

Source: https://www.man7.org/linux/man-pages/man5/inetd.conf.5.html, https://www.man7.org/linux/man-pages/man5/xinetd.conf.5.html

Topics

#inetd.conf#xinetd.conf#Network service management#Service configuration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice