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:
[...]
    pts/0
    pts/1
    pts/2
    pts/3
    pts/4
    pts/5
    pts/6
    pts/7
    pts/8
    pts/9
    pts/10
    pts/11


# 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
Attachments
There are no attachments for this article.
Comments
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
Modifying the inode count for an ext2/ext3/ext4 file system
Viewed 15548 times since Fri, Sep 18, 2020
RHCS6: Reduce a Global Filesystem 2 (GFS2)
Viewed 3529 times since Sun, Jun 3, 2018
linux ssh How to Hide the OpenSSH Version Details when Telnet to Port 22
Viewed 5522 times since Wed, Apr 22, 2020
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 3075 times since Fri, Apr 19, 2019
Managing temporary files with systemd-tmpfiles on Red Hat Enterprise Linux 7
Viewed 9798 times since Sun, Nov 22, 2020
Using etckeeper with git
Viewed 7040 times since Sun, Jun 3, 2018
How to encrypt a partition using LUKS?
Viewed 1972 times since Fri, Jul 13, 2018
debian How to Upgrade Debian 8 Jessie to Debian 9 Stretch
Viewed 2467 times since Sun, Sep 23, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 4069 times since Sat, Jun 2, 2018
RHEL : How to deal with “CLOSE_WAIT” and “TIME_WAIT” connection
Viewed 26571 times since Thu, Feb 14, 2019