RHEL: Enabling standard ftp/telnet

# Tested on RHEL 5

# By default system is as secured as to be accesible only via ssh/sftp.

# Enabling ftp
# ------------------------------------------------------------------------------------------

# 1.- Edit File /etc/xinetd.d/gssftp and change following line:

# from

   disable = yes

# to

   disable = no

# This modification can be carried out by issuing 'chkconfig' command too:

chkconfig gssftp [ on | off ]

# In the same file, replace this line:

   server_args = -l -a

# by

   server_args = -l

# 2.- Reiniciar el demonio xinetd

/etc/init.d/xinetd restart

# or

service xinetd restart

# or

skill -HUP xinetd

# or

kill -HUP <xinetd_PID>

# Enabling telnet
# ------------------------------------------------------------------------------------------

# 1.- If not installed, install a telnet server, for instance telnet-server-0.17-39.el5

# 2.- Disable (if enabled) kerberos telnet service and enabled the new one:

chkconfig krb5-telnet off
chkconfig ekrb5-telnet off

chkconfig telnet on

chkconfig --list | grep -i telnet
   ekrb5-telnet:   off
   krb5-telnet:    off
   telnet:         off

# 3.- Edit /etc/securetty file and add new access for pts connections:

# 4.- Restart xinetd daemon

/etc/init.d/xinetd restart

# or

service xinetd restart

# or

skill -HUP xinetd

# or

kill -HUP xinetd

# 5.- In case of access problems, comment out following line in /etc/pam.d/login file:

   auth required pam_securetty.so

# and restart xinetd daemon

# Note: Take into account that it may be necessary to adjust conveniently iptables subsystem.
#       In addition to this, on RHEL 6, if active, we'll have to adjust SELinux configuration.

0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
How to use yum-cron to automatically update RHEL/CentOS Linux 6.x / 7.x
Viewed 1174 times since Tue, Dec 4, 2018
Viewed 744 times since Sat, Jun 2, 2018
How to do a Filesystem Resize (ext3/ext4) on Redhat running on VMware
Viewed 1183 times since Wed, Jul 25, 2018
How to stop and disable auditd on RHEL 7
Viewed 4254 times since Tue, Aug 6, 2019
10 Linux nslookup Command Examples for DNS Lookup
Viewed 493 times since Sun, Sep 30, 2018
LVM: Remove an existing Volume Group
Viewed 646 times since Sat, Jun 2, 2018
Setting up encrypted tunnel using stunnel
Viewed 411 times since Fri, Sep 28, 2018
Migrate a Linux System from Red Hat Enterprise to CentOS
Viewed 81 times since Fri, May 15, 2020
Applescript: Run or Call a Shell Script
Viewed 578 times since Tue, Aug 6, 2019
ZFS: Grow/Shrink an existing zfs filesystem
Viewed 679 times since Sun, Jun 3, 2018