telnet在很多系统中都有所应用。今天我们就来讲解一下配置RedHat telnet服务的具体操作。由于RedHat AS3/4使用kerberos5认证,默认telnet服务无法行root登录,所以需要重新安裝telnet-server进行配置,具体步骤如下:
配置RedHat telnet服务1、下载安裝telnet-server.
配置RedHat telnet服务2、修改/etc/xinetd.d/telnet ,将disable=yes修改为no,之后将/etc/xinetd.d/krb5-telnet中disable=no修改为yes(让服务重启后,按设定值设置)
- QUOTE:[root@ikaxinetd.d]#cat/etc/xinetd.d/telnet
- #default:on
- #description:Thetelnetserverservestelnetsessions;ituses
- #unencryptedusername/passwordpairsforauthentication.
- servicetelnet
- {
- disable=no
- flags=REUSE
- socket_type=stream
- wait=no
- user=root
- server=/usr/sbin/in.telnetd
- log_on_failure+=USERID
- }
配置RedHat telnet服务3、修改/etc/pam.d/login文件,将第二行“auth required pam_securetty.so“注释掉
- QUOTE:[root@ikapam.d]#catlogin
- #%PAM-1.0
- #authrequired/lib/security/pam_securetty.so
- authrequired/lib/security/pam_stack.soservice=system-auth
- authrequired/lib/security/pam_nologin.so
- accountrequired/lib/security/pam_stack.soservice=system-auth
- passwordrequired/lib/security/pam_stack.soservice=system-auth
- sessionrequired/lib/security/pam_stack.soservice=system-auth
- sessionoptional/lib/security/pam_console.so
配置RedHat telnet服务4、修改/etc/securetty文件,添加登录的tty,如pts/0,pts/1,pts/2.......
- QUOTE:[root@RN031etc]#catsecuretty
- pts/0
- pts/1
- pts/2
- vc/1
- vc/2
- vc/3
- vc/4
配置RedHat telnet服务5、重启xinetd:service xinetd restart.