配置turbo linux es11上的ftp(gssftp) and telnet服務,及讓root 直接telnet備記

wisdomone1發表於2009-01-18

bash-3.2$ hostname
turbolinux.es11.com
[root@turbolinux ~]# bash
[root@turbolinux ~]# clear
[root@turbolinux ~]# cd /etc/xinetd.d
[root@turbolinux xinetd.d]# ls
amanda         chargen-stream  discard-dgram   eklogin       klogin       rlogin         telnet
amandaidx      cvs             discard-stream  ekrb5-telnet  krb5-telnet  rsh            telnet.bak
amidxtape      daytime-dgram   echo-dgram      gssftp        kshell       rsync          time-dgram
chargen-dgram  daytime-stream  echo-stream     gssftp.bak    rexec        tcpmux-server  time-stream
[root@turbolinux xinetd.d]# more telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream       
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no   #本來是yes
}

[root@turbolinux xinetd.d]# more gssftp
# default: off
# description: The kerberized FTP server accepts FTP connections \
#              that can be authenticated with Kerberos 5.
service ftp
{
        flags           = REUSE
        socket_type     = stream       
        wait            = no
        user            = root
        server          = /usr/kerberos/sbin/ftpd
        server_args     = -l  #本來是-l -a
        log_on_failure  += USERID
        disable         = no  #本來是yes
}
[root@turbolinux xinetd.d]# service xinetd restart  #重啟xinetd服務
Stopping xinetd: [  OK  ]
Starting xinetd: [  OK  ]


[root@turbolinux etc]# more securetty.bak   #為了讓root直接telnet,把/etc/securetty改名另一個檔名.就可以了
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
[root@turbolinux etc]#

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-541354/,如需轉載,請註明出處,否則將追究法律責任。

相關文章