Configuring Telnet/FTP to login as root (Linux)

copyleft by http://www.idevelopment.info/data/Unix/Linux/LINUX_TelnetFTPAsRoot.shtml


Configuring Telnet/FTP to login as root (Linux)

by Jeff Hunter, Sr. Database Administrator

Contents

   1. Red Hat Enterprise Linux: RHEL3 / RHEL4
   2. Red Hat (Fedora Core 1 / Core 2)
   3. Red Hat (Release 7.x - 8.x)

Red Hat Enterprise Linux: RHEL3 / RHEL4

    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 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  ]

        Starting with the Red Hat Enterprise Linux 3.0 release (and in CentOS Enterprise Linux), the FTP server (wu-ftpd) is no longer available with xinetd. It has been replaced with vsftp and can be started from /etc/init.d/vsftpd as in the following:

        # /etc/init.d/vsftpd start
        Starting vsftpd for vsftpd:         [ OK ]

        If you want the vsftpd service to start and stop when recycling (rebooting) 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/S56vsftpd


    Allowing Root Logins to Telnet and FTP Services

        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/0
        pts/1
        pts/2
        pts/3
        pts/4
        pts/5
        pts/6
        pts/7
        pts/8
        pts/9

        This will allow up to 10 telnet sessions to the server as root.

        Configure FTP for root logins

        Edit the files /etc/vsftpd.ftpusers and /etc/vsftpd.user_list and remove the 'root' line from each file.


Red Hat (Fedora Core 1 / Core 2)

    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 the telnet these service, login to the server as the root userid and edit the files:

            * /etc/xinetd.d/telnet

        In this file, find the line for disable and change it from the value "yes" to "no".

        After changing the above value(s), you will need to restart the xinetd deamon. As the root userid, type the following command:

          % /etc/init.d/xinetd reload

        Starting with the Fedora Core 1 release, the FTP server (wu-ftpd) is no longer available with xinetd. It has been replaced with vsftp and can be started from /etc/init.d/vsftpd as in the following:

        # /etc/init.d/vsftpd start

        If 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/S56vsftpd

    Allowing Root Logins to Telnet and FTP Services

        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/0
        pts/1
        pts/2
        pts/3
        pts/4
        pts/5
        pts/6
        pts/7
        pts/8
        pts/9

        This will allow up to 10 telnet sessions to the server as root.

        Configure FTP for root logins

        Edit the files /etc/vsftpd.ftpusers and /etc/vsftpd.user_list and remove the 'root' line from each file.


Red Hat (Release 7.x - 8.x)

    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:

            * /etc/xinetd.d/telnet
            * /etc/xinetd.d/wu-ftpd

        In both files, find the line for disable and change it from the value "yes" to "no".

        After changing the above values, you will need to restart the xinetd deamon. As the root userid, type the following command:

          % /etc/init.d/xinetd reload

    Allowing Root Logins to Telnet and FTP Services

        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/0
        pts/1
        pts/2
        pts/3
        pts/4
        pts/5
        pts/6
        pts/7
        pts/8
        pts/9

        This will allow up to 10 telnet sessions to the server as root.

        Configure FTP for root logins

        First 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


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 삐꾸강아쥐

2007/12/27 11:34 2007/12/27 11:34
, , , , ,
Response
0 Trackbacks , 0 Comments
RSS :
http://blog.blog.n-nuri.com/rss/response/487

Trackback URL : http://blog.blog.n-nuri.com/trackback/487

Leave a comment
[로그인][오픈아이디란?]

Total Commander 파일 관리 프로그램

윈도우용 파일 관리 프로그램의 대명사

사이트 : http://www.ghisler.com/index.htm

깔끔한 인터페이스가 마음에 든다.

한달간 쉐어웨어로 사용하고 그 이후엔 정품 등록 해야된다...^^


사용자 삽입 이미지
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 삐꾸강아쥐

2007/04/18 22:01 2007/04/18 22:01
, ,
Response
0 Trackbacks , 0 Comments
RSS :
http://blog.blog.n-nuri.com/rss/response/291

Trackback URL : http://blog.blog.n-nuri.com/trackback/291

Leave a comment
[로그인][오픈아이디란?]

Filezilla ( FTP ) 프로그램

윈도우용 FTP 클라이언트 프로그램

사이트 : http://sourceforge.net/projects/filezilla

깔끔한 인터페이스가 마음에 든다.


사용자 삽입 이미지
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 삐꾸강아쥐

2007/04/18 21:48 2007/04/18 21:48
,
Response
0 Trackbacks , 0 Comments
RSS :
http://blog.blog.n-nuri.com/rss/response/290

Trackback URL : http://blog.blog.n-nuri.com/trackback/290

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

http://blog.n-nuri.com 이 접속이 안 될경우 http://x2x.dnip.net 으로 접속해 주세요 공유하지 않는 지식은 썩은 물과 같다~~~!!!

- 삐꾸강아쥐

Archives

Recent Trackbacks

Calendar

«   2009/01   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Site Stats

Total hits:
227704
Today:
55
Yesterday:
279
free counters