Depending on a system's configuration, which of the following files can be used to enable and disable network services running on this host?
Depending on a system's configuration, which of the following files can be used to enable and disable network services running on this host?
The file /etc/xinetd.conf is used to configure the xinetd daemon, which acts as a super-server daemon on many Unix-like systems. This file can be used to enable or disable network services on the host by specifying configuration details for those services. Each service configuration typically includes options like 'disable = yes/no' which directly control whether the service should be started by xinetd. In contrast, other files like /etc/services only list standard service ports and do not enable or disable services.
D is wrong answer, /etc/services just has port mapping and that it is, to disable or enable network services I think in Linux we should use /etc/xinetd.conf.
yes you right
Agreed, the TCP Wrapper of xinetd should be used to enable and disable network services that are running on the host.
yes cat /etc/services its just a port list. in the xinetd.conf there are disable yes/no options. B is the right answer
can confirm B is correct
"B" is correct.
xinetd is one of superdaemon which listen for incoming network connections and start the appropriate service on demand ref: https://learning.lpi.org/en/learning-materials/102-500/110/110.2/110.2_01/
B IS CORRECT !
/etc/services is a file to define TCP/IP ports.
"In this section we will use xinetd to intercept connections to the sshd daemon and start this daemon on request to demonstrate how the superdaemon was used." https://learning.lpi.org/en/learning-materials/102-500/110/110.2/110.2_01/#:~:text=In%20this%20section%20we%20will%20use%20xinetd%20to%20intercept%20connections%20to%20the%20sshd%20daemon%20and%20start%20this%20daemon%20on%20request%20to%20demonstrate%20how%20the%20superdaemon%20was%20used.
B IS CORRECT
Answer is D. /etc/services
Option D is wrong. "On a Linux system, standard service ports are listed in the /etc/services file" https://learning.lpi.org/en/learning-materials/102-500/109/109.1/109.1_02/#:~:text=On%20a%20Linux%20system%2C%20standard%20service%20ports%20are%20listed%20in%20the%20/etc/services%20file
Is correct
This file is not present on any modern distro, I checked CentOS 7 which is not that modern anymore and ubuntu 18.02 and there is only the xinetd.conf directory present with some telent file inside
It is B use /etc/xinetd.conf.
xinetd is one of superdaemon which listen for incoming network connections and start the appropriate service on demand ref: https://learning.lpi.org/en/learning-materials/102-500/110/110.2/110.2_01/