
Check your logs for errors, and run netstat again to verify all went well.
A quicker way of getting the same information, using grep:
$ grep −v '^#' /etc/inetd.conf
time stream tcp nowait root internal
pop−3 stream tcp nowait root /usr/sbin/tcpd ipop3d
Again, do you see anything there that you don't know what it is? Then in all likelihood you are not using it,
and it should be disabled.
Unlike the init services configuration, this is a lasting change so only the one step is required.
Let's expose one myth that gets tossed around: you shouldn't disable a service by commenting out, or
removing, entries from /etc/services. This may have the desired effect in some cases, but is not the
right way to do it, and may interfere with the normal operation of other system utilities.
3.3.3. Xinetd
xinetd is an inetd replacement with enhancements. Red Hat includes xinetd with 7.0 and later releases. It
essentially serves the same purpose as inetd, but the configuration is different. The configuration can be in the
file /etc/xinetd.conf, or individual files in the directory /etc/xinetd.d/. Configuration of
individual services will be in the individual files under /etc/xinetd.d/*. Turning off xinetd services is
done by either deleting the corresponding configuration section, or file. Or by using your text editor and
simply setting disable = yes for the appropriate service. Or by using chkconfig. Then, xinetd will need
to be restarted. See man xinetd and man xinetd.conf for syntax and configuration options. A sample
xinetd configuration:
# default: on
# description: The wu−ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = −l −a
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}
You can get a quick list of enabled services:
$ grep disable /etc/xinetd.d/* |grep no
/etc/xinetd.d/finger: disable = no
/etc/xinetd.d/rexec: disable = no
Security Quick−Start HOWTO for Red Hat Linux
3.3.3. Xinetd 13
Commenti su questo manuale