服务器 频道

RedHat Linux 网络和基本服务的配置手册

  二、 TELNET服务(虽然这里提到telnet,但是为了安全,最好还是使用ssh,这个程序现在流行的unix都默认安装)
  修改如下2个文件,使系统能被网络上的其他机器的用户访问,如果要能root远程操作机器
  开通TELNET服务是很必要的。
  1./etc/securetty,添加以下行:
  …… //省略
  pts/0
  pts/1
  ……
  pts/5 //可以加多行
  ----------------------------------------------------------------------------------------------------------------------
  2./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
  }
  ----------------------------------------------------------------------------------------------------------------------
  确保disable=no

  三、FTP服务
  1./etc/ftpusers 这个文件中的用户被拒绝响应ftp服务。用#将root屏蔽掉:
  #root
  这样root没有被这个配置文件限制ftp服务,可以在其他机器上请求这台机器提供的ftp服务。
  2./etc/ftpaccess 用#将以下两行注释掉,
  deny-uid% -99%65534
  deny-gid% -99%65534
  注释后为:
  #deny-uid% -99%65534
  #deny-gid% -99%65534
  3./etc/xinetd.d/wu-ftpd 决定是否能提供ftp服务。
  确保disable=no,可以向其他机器开通ftp服务。

 

0
相关文章