配置RedHat telnet的方法
telnet在很多系统中都有所应用。今天我们就来讲解一下配置RedHat telnet服务的具体操作。由于RedHat AS3/4使用kerberos5认证,默认telnet服务无法行root登录,所以需要重新安�btelnet-server进行配置,具体步骤如下:
配置RedHat telnet服务1、下载安�btelnet-server.
配置RedHat telnet服务2、修改/etc/xinetd.d/telnet ,将disable=yes修改为no,之后将/etc/xinetd.d/krb5-telnet中disable=no修改为yes(让服务重启后,按设定值设置)
- QUOTE:[root@ika xinetd.d]# cat /etc/xinetd.d/telnet
- # default: on
- # description: The telnet server serves telnet sessions; it uses \
- # unencrypted username/password pairs for authentication.
- service telnet
- {
- 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@ika pam.d]# cat login
- #%PAM-1.0
- #authrequired /lib/security/pam_securetty.so
- auth required /lib/security/pam_stack.so service=system-auth
- auth required /lib/security/pam_nologin.so
- account required /lib/security/pam_stack.so service=system-auth
- password required /lib/security/pam_stack.so service=system-auth
- session required /lib/security/pam_stack.so service=system-auth
- session optional /lib/security/pam_console.so
配置RedHat telnet服务4、修改/etc/securetty文件,添加登录的tty,如pts/0,pts/1,pts/2.......
- QUOTE:[root@RN031 etc]# cat securetty
- pts/0
- pts/1
- pts/2
- vc/1
- vc/2
- vc/3
- vc/4
配置RedHat telnet服务5、重启xinetd:service xinetd restart.
关键词标签:RedHat,telnet