配置RedHat telnet的方法
时间:2024-01-05 05:50:53 点击:425

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(让服务重启后,按设定值设置)

  1. QUOTE:[root@ikaxinetd.d]#cat/etc/xinetd.d/telnet
  2. #default:on
  3. #description:Thetelnetserverservestelnetsessions;ituses
  4. #unencryptedusername/passwordpairsforauthentication.
  5. servicetelnet
  6. {
  7. disable=no
  8. flags=REUSE
  9. socket_type=stream
  10. wait=no
  11. user=root
  12. server=/usr/sbin/in.telnetd
  13. log_on_failure+=USERID
  14. }

配置RedHat telnet服务3、修改/etc/pam.d/login文件,将第二行“auth required pam_securetty.so“注释掉

  1. QUOTE:[root@ikapam.d]#catlogin
  2. #%PAM-1.0
  3. #authrequired/lib/security/pam_securetty.so
  4. authrequired/lib/security/pam_stack.soservice=system-auth
  5. authrequired/lib/security/pam_nologin.so
  6. accountrequired/lib/security/pam_stack.soservice=system-auth
  7. passwordrequired/lib/security/pam_stack.soservice=system-auth
  8. sessionrequired/lib/security/pam_stack.soservice=system-auth
  9. sessionoptional/lib/security/pam_console.so

配置RedHat telnet服务4、修改/etc/securetty文件,添加登录的tty,如pts/0,pts/1,pts/2.......

  1. QUOTE:[root@RN031etc]#catsecuretty
  2. pts/0
  3. pts/1
  4. pts/2
  5. vc/1
  6. vc/2
  7. vc/3
  8. vc/4

配置RedHat telnet服务5、重启xinetd:service xinetd restart.

展开 ↓

最新游戏更多

最新软件更多

  • 玩家推荐
  • 游戏攻略

诚捷手游网 Copyright(C) 2008- tynpfw.cn All Rights Reserved!

闽ICP备2023006241号-3| 免责声明