HAYAGUI

FreeBSD 5.1 で ftp/telnet できるようにする

はじめに

FreeBSD 4.x までは、インストール後に ftp/telnet を有効にするには、こんな感じに /etc/inetd.conf を変更するだけでよかったのですが、FreeBSD 5.0 からは inetd が起動していない為、inetd を有効にする必要があります。 このページでは、FreeBSD 5.1 でtelnet と ftp できるように設定します。

/etc/inetd.conf

FreeBSD にコンソールでログインして、root になってください。root でログインしてもいいよ。
/etc に cd して、inetd.conf を vi で開きます。
mico# cd /etc
mico# vi inetd.conf

IPv4環境なので、tcp6 ではない行の # を外して保存します。
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
telnet  stream  tcp     nowait  root    /usr/libexec/telnetd    telnetd
#telnet stream  tcp6    nowait  root    /usr/libexec/telnetd    telnetd
FreeBSD 4.x までは、ここで kill -HUP `cat /var/run/inetd.pid` すればよかったのですが、 まだ inetd が起動していません。

/etc/rc.conf

/etc/rc.conf を開いて、inet_enable の設定を追加します。
sshd_enable="YES"
usbd_enable="YES"
# add ito 2003/11/07
inetd_enable="YES"
sshはデフォルトでもOKになってるのね。

で、reboot します。

リモートからログインできたでしょ。


戻る



(C)1999 - 2001 Kenji Ito All rights reserved.