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.
Question
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)- A4% (1)
- B8% (2)
- C88% (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`.
The `/etc/profile` file is a system-wide initialization script for shell environments and does not control the enabling or disabling of network services.
The `/etc/services` file maps service names to port numbers but does not contain configuration that directly turns network services on or off.
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.
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.
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
Community Discussion
No community discussion yet for this question.