System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable rlogin,ftp,telnet

 
Highlighted
Super Advisor

how to disable rlogin,ftp,telnet

i want to disble below services in RHEL 5
rlogin,telnet,ftp


command output

uname -a
Linux workstation1 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

3 REPLIES 3
Highlighted
Honored Contributor

Re: how to disable rlogin,ftp,telnet

Remove packages "telnet-server", "rsh-server" and "vsftpd".

This is the surest way to disable those services, because the binaries providing the services will be completely removed from the system.

Example:

yum erase telnet-server rsh-server vsftpd
or
rpm -e telnet-server rsh-server vsftpd

NOTE: the default RHEL 5 installation does not install these packages. So if you have them, you (or someone else administering the system) has chosen to enable them.

MK
MK
Highlighted
Honored Contributor

Re: how to disable rlogin,ftp,telnet

by default they're not running, but if they are, you can disable them by changing the settings in their xinetd config file found in /etc/xinetd.d
Highlighted
Frequent Advisor

Re: how to disable rlogin,ftp,telnet

Usually none of the mentioned services are active after a default install.

However you may also check your firewall settings to filter out the TCP ports 513, 20, 21, 23 that are used for these services.

FTP may also be blocked via tcpwrappers file /etc/hosts.deny.