linux 下配置telnet

 vi /etc/xinetd.d/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
}
将"disable = yes"改为“disable = no”

service xinetd restart

允许root登录
默认不允许root通过telnet登录的,下面是修改方法
vi /etc/pam.d/login
auth require pam_securetty.so
修改为
#auth require pam_securetty.so
或mv /etc/securetty /etc/securetty.bak

posted on 2011-07-13 22:04  徐郞顾  阅读(301)  评论(0编辑  收藏  举报

导航