第三世代 LinkStation ハックキットに ftp サーバ

Debian LS-GL

LS-QL をハックするでもなく、
LS-XHL の initrd をハックするでもなく、
第三世代 LinkStation ハックキット をインストールした LS-GL に ftp サーバを セットアップする。

パッケージのインストール

ude:~# apt-cache search ftpd
atftpd - advanced TFTP server
auth2db-filters - Auth2db defaults filters pack
ccze - A robust, modular log coloriser
fail2ban - bans IPs that cause multiple authentication errors
ftp-ssl - The FTP client with SSL or TLS encryption support
ftpd - File Transfer Protocol (FTP) server
ftpd-ssl - FTP server with SSL encryption support
gadmin-proftpd - GTK+ configuration tool for proftpd
gadmin-tools - GTK+ server administration tools
gforge-ftp-proftpd - collaborative development tool - FTP management (using ProFTPd)
gproftpd - GTK+ configuration tool for proftpd (transitional package)
heimdal-servers - Heimdal Kerberos - server programs
inetutils-ftpd - File Transfer Protocol server
krb5-ftpd - Secure FTP server supporting MIT Kerberos
muddleftpd - A flexible and efficient FTP daemon
proftpd - versatile, virtual-hosting FTP daemon
proftpd-basic - versatile, virtual-hosting FTP daemon - binaries
proftpd-doc - Versatile, virtual-hosting FTP daemon - documentation
proftpd-mod-ldap - versatile, virtual-hosting FTP daemon - LDAP module
proftpd-mod-mysql - versatile, virtual-hosting FTP daemon - MySQL module
proftpd-mod-pgsql - versatile, virtual-hosting FTP daemon - PostgreSQL module
pure-ftpd - Pure-FTPd FTP server
pure-ftpd-common - Pure-FTPd FTP server (Common Files)
pure-ftpd-ldap - Pure-FTPd FTP server with LDAP user authentication
pure-ftpd-mysql - Pure-FTPd FTP server with MySQL user authentication
pure-ftpd-postgresql - Pure-FTPd FTP server with PostgreSQL user authentication
pyftpd - ftp daemon with advanced features
tcllib - the Standard Tcl Library
tftpd - Trivial file transfer protocol server
tftpd-hpa - HPA's tftp server
twoftpd - a simple secure efficient FTP server (programs)
twoftpd-run - a simple secure efficient FTP server
vsftpd - The Very Secure FTP Daemon
wu-ftpd - powerful and widely used FTP server
wzdftpd - A portable, modular, small and efficient ftp server
wzdftpd-back-mysql - MySQL backend for wzdftpd
wzdftpd-back-pgsql - PostgreSQL backend for wzdftpd
wzdftpd-dev - Development files for wzdftpd
wzdftpd-mod-avahi - Zeroconf module for wzdftpd
wzdftpd-mod-perl - Perl module for wzdftpd
wzdftpd-mod-tcl - Tcl module for wzdftpd
ude:~#
しかし、これだけたくさん ftpd があれば、 どれをインストールしたらいいのか迷うわな。

これまで通り inetutils-ftpd をインストールする。

ude:~# apt-get install inetutils-ftpd
Reading package lists... Done
Building dependency tree
Reading state information... 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 94.1kB of archives.
After this operation, 197kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org lenny/main inetutils-ftpd 2:1.5.dfsg.1-9 [94.1kB]
Fetched 94.1kB in 2s (33.2kB/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 10039 files and directories currently installed.)
Unpacking inetutils-ftpd (from .../inetutils-ftpd_2%3a1.5.dfsg.1-9_armel.deb) ...
Processing triggers for man-db ...
Setting up inetutils-ftpd (2:1.5.dfsg.1-9) ...
ude:~#

/etc/inetd.cof への追加

ude:~# grep ftp /etc/inetd.conf
ude:~#
inetd.conf に /usr/sbin/ftpd を起動する設定を追加する。
ude:~# echo "ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd" >> /etc/inetd.conf
ude:~# tail /etc/inetd.conf
#       run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
## netbios-ssn     stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/smbd

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd
ude:~#

inetd.conf の再読込み

inetd に inetd.conf を読込み直させる。
ude:~# kill -HUP `cat /var/run/inetd.pid `
ude:~#

確認

別マシン(HS-DHGL)から ftp で接続してみる。
yasunari@sil:~$ ftp ude
Connected to ude.
220 ude FTP server (GNU inetutils 1.5) ready.
Name (ude:yasunari): yasunari
331 Password required for yasunari.
Password:
230- Linux ude 2.6.16.16-arm1 #37 Tue May 20 10:01:57 JST 2008 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> bye
221 Goodbye.
yasunari@sil:~$
OK

LS-GL
バッファローダイレクト
楽天市場
Amazon
Yahoo!ショッピング
ソフマップ
livedoor デパート
ドスパラ


また壊れた?
ハックの記録
LinkStation/玄箱 をハックしよう

第三世代 LinkStation ハックキットに tftp サーバ

Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市