Operating System - Linux
1756766 Members
2877 Online
108852 Solutions
New Discussion юеВ

how to disable rlogin,ftp,telnet

 
rajesh73
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
Matti_Kurkela
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
dirk dierickx
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
Reiner  Rottmann
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.