ftp サーバ
必要に応じて ftp サーバをセットアップします。
inetutils-ftpd のインストール
inetutils-ftpd パッケージをインストールします。
hackkit:~# apt-get install inetutils-ftpd
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
inetutils-ftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 91.6kB of archives.
After unpacking 193kB of additional disk space will be used.
Get:1 http://ftp2.jp.debian.org etch/main inetutils-ftpd 2:1.5.dfsg.1-2 [91.6kB]
Fetched 91.6kB in 1s (72.2kB/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 14328 files and directories currently installed.)
Unpacking inetutils-ftpd (from .../inetutils-ftpd_2%3a1.5.dfsg.1-2_arm.deb) ...
Setting up inetutils-ftpd (1.5.dfsg.1-2) ...
hackkit:~#
/etc/inetd.cof への追加
ftp の接続要求に対して ftpd が起動するよう inetd.conf に
設定を追加します。
hackkit:~# echo "ftp stream tcp nowait root /usr/sbin/tcpd ftpd">> /etc/inetd.conf
hackkit:~#
追加できたか確認します。
hackkit:~# tail /etc/inetd.conf
#:RPC: RPC based services
#:HAM-RADIO: amateur-radio services
#:OTHER: Other services
## netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
rsync stream tcp nowait root /usr/sbin/tcpd /usr/bin/rsync --daemon
ftp stream tcp nowait root /usr/sbin/tcpd ftpd
hackkit:~#
最後に ftp の行があればOKです。
inetd.conf の再読込み
inetd に inetd.conf を読込み直させます。
hackkit:~# kill -HUP `cat /var/run/inetd.pid `
hackkit:~#
確認
hackkit:~# ftp localhost
Connected to localhost.
220 hackkit FTP server (GNU inetutils 1.5) ready.
Name (localhost:yasunari):
331 Password required for yasunari.
Password:
230- Linux hackkit 2.6.16.16-arm1 #9 Wed Mar 7 14:17:36 JST 2007 armv5tejl
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221 Goodbye.
hackkit:~#
ログインできれば設定完了です。
Copyright (C) 2007-2008 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp
山下康成@京都府向日市