centos下root用户telnet登录
1,修改 /etc/pam.d/login,用# 注释掉以下行
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
2,修改 /etc/xinetd.d/krb5-telnet 如下
service telnet
{
disable =no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/telnetd
log_on_failure += USERID
}
2.修改 /etc/xinetd.d/telnet
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
4. selinux
/etc/selinux/config
SELINUX=disabled
5. /etc/securetty
添加
pts/1
pts/2
pts/3
pts/4
pts/5
6. 如果以上招数都使用了,还是不行,那么重启系统,我就是这样搞定的。
阅读(6876) | 评论(2) | 转发(0) |