ftpd のインストール
LinkStation に ftp できるよう、Proftpd をインストールする
proftpd のインストール
linkstationVine# apt-get install proftpd
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
以下のパッケージが新たにインストールされます:
proftpd
0 個のアップグレードパッケージ, 1 個の新規パッケージ, 0 個の削除/リプレースパッ
ケージ, 1 個の保留パッケージがあります。
取得パッケージ: 503kB のアーカイブを取得します。インストール後は 2038kB が使用さ
れます。
取得:1 http://updates.vinelinux.org 2.6/ppc/main proftpd 1:1.2.6-0vl1 [503kB]
取得完了: 503kB を 2s (211kB/秒)
RPM コマンドを実行しています (-U)...
proftpd ##################################################
Proftpd の設定
Vine の標準では、proftpd は常時起動するようになっているが、
あんまり使わないので、inetd から起動するように修正する
/etc/proftpd.conf の修正
diff -c proftpd.conf.orig proftpd.conf
*** proftpd.conf.orig 2002-09-29 12:10:14.000000000 +0900
--- proftpd.conf 2004-02-19 01:43:39.000000000 +0900
***************
*** 5,11 ****
# for normal operation and anon.
ServerName "ProFTPD Basic Configuration"
! ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
--- 5,12 ----
# for normal operation and anon.
ServerName "ProFTPD Basic Configuration"
! #ServerType standalone
! ServerType inetd
DefaultServer on
# Port 21 is the standard FTP port.
/etc/inetd.conf の修正
#ftp stream tcp nowait root /usr/sbin/tcpd in.proftpd
を
ftp stream tcp nowait root /usr/sbin/tcpd in.proftpd
に修正
inetd に inetd.conf を読ませる
kill -HUP `cat /var/run/inetd.pid `
Proftpd の動作確認
anothermachine# ftp ls
Connected to ls.yamasita.jp.
220 ProFTPD 1.2.6 Server (ProFTPD Basic Configuration) [ls.yamasita.jp]
Name (ls:yasunari): yasunari
331 Password required for yasunari.
Password:
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
OK
←
BUFFALO Link Station をハックしよう
→ 玄箱 予約
Copyright (C) 2004 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp
山下康成@京都府向日市