(1)修改/etc/securetty文件,添加终端
root@:~# tail -5 /etc/securetty pts/0 pts/1 pts/2 pts/3 pts/4或者直接将securetty文件改名,即可使用root登录
(2)修改/etc/pam.d/login文件,将securetty验证注释调
12 # Disallows root logins except on tty's listed in /etc/securetty 13 # (Replaces the `CONSOLE' setting from login.defs) 14 # Note that it is included as a "required" module. root will be 15 # prompted for a password on insecure ttys. 16 # If you change it to a "requisite" module, make sure this does not leak 17 # user name information. 18 #auth required pam_securetty.so这样telnet基本上就配置完成了,不过还是建议大家用ssh(但windows系统要用ssh还要附加专门的软件,真的很艹蛋!