$ telnet fuga.hoge.co.jp |
$ telnet 192.168.0.128 |
$ su # |
# cp -ip /etc/inetd.conf /etc/inetd.conf.ORG |
# vi /etc/inetd.conf |
以下が telnet 及び ftp デーモンに関する記述。telnet デーモンのコメントアウトを外す。
: # # These are standard services. # ### With tcpd (TCP Wrapper) ### #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a #telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd ### Without tcpd (TCP Wrapper) ### #ftp stream tcp nowait root /usr/sbin/in.ftpd -l -a #telnet stream tcp nowait root /usr/sbin/in.telnetd :
TCP Wrapper を使用する場合と使用しない場合の二通りの記述があるが、
今回は TCP Wrapper もテストしてみたいので、
TCP Wrapper を使用する場合のコメントアウトを外す(下線部)。
ちなみに、 ftp デーモンは /usr/sbin/in.ftpd が存在しないため、現状では使用出来ない。
使用するには、別途バイナリを入手する必要がある。
: # # These are standard services. # ### With tcpd (TCP Wrapper) ### #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd ### Without tcpd (TCP Wrapper) ### #ftp stream tcp nowait root /usr/sbin/in.ftpd -l -a #telnet stream tcp nowait root /usr/sbin/in.telnetd :
# ps -ef | grep inetd root 139 1 0 02:23 ? 00:00:00 /usr/sbin/inetd zaurus 5922 5920 0 10:48 ttya0 00:00:00 grep inetd # kill -HUP 139 |
# ps -ef | grep inetd root 139 1 0 02:23 ? 00:00:00 /usr/sbin/inetd zaurus 5922 5920 0 10:48 ttya0 00:00:00 grep inetd |