0

我想禁用 rsh 和 rlogin。我在 iptables 中禁用了 513 和 154 端口,但我仍然可以在另一台主机上使用 rsh 登录。我正在使用 Debian7.8 32bit

我的 /etc/inetd.conf 在这里

# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not 
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard        stream  tcp nowait  root    internal
#discard        dgram   udp wait    root    internal
#daytime        stream  tcp nowait  root    internal
#time       stream  tcp nowait  root    internal

#:STANDARD: These are standard services.

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.

#:INFO: Info services

#:BOOT: TFTP service is provided primarily for booting.  Most sites
#       run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
#<off># netbios-ssn stream  tcp nowait  root    /usr/sbin/tcpd  /usr/sbin/smbd
swat        stream  tcp nowait.400  root    /usr/sbin/tcpd  /usr/sbin/swat
#<off># sane-port   stream  tcp nowait  saned:saned /usr/sbin/saned saned
4

1 回答 1

0

修改disable配置文件中的字段,/etc/xinetd.d/rlogin然后/etc/xinetd.d/rsh 使用命令service xinetd restart重启xinetd服务

于 2017-12-07T06:50:42.393 回答