Assuming
that xinetd is running on your system and controls the startup
of a relevant service when it's requested:
Look
at the directory:
#
/etc/xinetd.d
The
directory contains files which are configuration file for
services that the xinetd daemon controls.
Let's
say you want to turn telnet off.
Examine
the telnet file.
You
see something like so:
service
telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
replace
the second last line disable=no with disable=yes
You'll
require a xinetd restart. So go to the directory that contains
the xinetd daemon.
#
cd /etc/rc.d/init.d/
And
restart the application:
./xinetd
restart