Configuring Telnet/FTP to login as root (Linux)
Configuring Telnet/FTP to login as root (Linux)
Contents
- Red Hat Enterprise Linux: RHEL3 / RHEL4
- Red Hat (Fedora Core 1 / Core 2)
- Red Hat (Release 7.x - 8.x)
Red Hat Enterprise Linux: RHEL3 / RHEL4
Enabling Telnet and FTP ServicesLinux is configured to run the Telnet and FTP server, but by default, these services are not enabled. To enable the telnet service, login to the server as the root user account and run the following commands:# chkconfig telnet on
# service xinetd reload
Reloading configuration: [ OK ]# /etc/init.d/vsftpd startIf you want the vsftpd service to start and stop when recycling (rebooting) the machine, you can create the following symbolic links:
Starting vsftpd for vsftpd: [ OK ]# ln -s /etc/init.d/vsftpd /etc/rc3.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc4.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc5.d/S56vsftpd
Allowing Root Logins to Telnet and FTP ServicesNow before getting into the details of how to configure Red Hat Linux for root logins, keep in mind that this is VERY BAD security. Make sure that you NEVER configure your production servers for this type of login.Configure Telnet for root logins
Simply edit the file
/etc/securetty
and add the following to the end of the file:pts/0This will allow up to 10 telnet sessions to the server as root.
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
Red Hat (Fedora Core 1 / Core 2)
Enabling Telnet and FTP ServicesLinux is configured to run the Telnet and FTP server, but by default, these services are not enabled. To enable the telnet these service, login to the server as the root userid and edit the files:Allowing Root Logins to Telnet and FTP ServicesIn this file, find the line for
disable
and change it from the value "yes" to "no".% /etc/init.d/xinetd reload# /etc/init.d/vsftpd startIf you want the vsftpd service to start and stop when recycling the machine, you can create the following symbolic links:# ln -s /etc/init.d/vsftpd /etc/rc3.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc4.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc5.d/S56vsftpdNow before getting into the details of how to configure Red Hat Linux for root logins, keep in mind that this is VERY BAD security. Make sure that you NEVER configure your production servers for this type of login.Configure Telnet for root logins
Simply edit the file
/etc/securetty
and add the following to the end of the file:pts/0This will allow up to 10 telnet sessions to the server as root.
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
Enabling Telnet and FTP Services
Linux is configured to run the Telnet and FTP server, but by default, these services are not enabled. To enable these services, login to the server as the root userid and edit the files:Allowing Root Logins to Telnet and FTP ServicesIn both files, find the line for
disable
and change it from the value "yes" to "no".% /etc/init.d/xinetd reload
Now before getting into the details of how to configure Red Hat Linux for root logins, keep in mind that this is VERY BAD security. Make sure that you NEVER configure your production servers for this type of login.Configure Telnet for root logins
Simply edit the file
/etc/securetty
and add the following to the end of the file:pts/0This will allow up to 10 telnet sessions to the server as root.
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9First edit the file
/etc/ftpaccess
and comment out the 'deny-uid' and 'deny-gid' lines.Also, don't forget to remove the 'root' line from
/etc/ftpusers
ความคิดเห็น
I begin on internet with a directory