HOWTO: The Computer Classroom July 7, 2001  
 
 

3.3 Turn Off Services in xinetd

Services like telnet and ftp are security risks to your system. In fact, the more services that your server and workstations run, the greater chance that a cracker will be able to gain access to your computers. Turning off all services in xinet will help secure your system. If you do not need an ftp server or telnet, turn off xinetd completely on your server:

chkconfig --level 3 xinet off

Then, to turn it off immediately, if it’s on:

/etc/rc.d/init.d/xinet stop

If for some reason you do need a service controlled by xinet, you need to com-ment out or move all of the other files in the /etc/xinet.d directory. I usually move all of the files in /etc/xinet.d to another directory, keeping only the services I want on in the /etc/xinet.d directory. For instance, if you want to keep the ftp service running, move all of the other files to a another directory — like /etc/xinet.off — so they will not be read by the xinet service.

 
   
 
© 2001 by grlucas.com; all rights reserved