ftp サーバのセットアップ

Debian TS-WXL

ftp サーバをセットアップする。
第三世代 LinkStationハックキットの ftp サーバのセットアップ手順そのまま

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

tswxl:~# 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 0s (335kB/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 9821 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) ...
!tswxl:~#

/etc/inetd.cof への追加

tswxl:~# echo "ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd" >> /etc/inetd.conf
tswxl:~# 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

rsync   stream  tcp     nowait  root    /usr/sbin/tcpd /usr/bin/rsync --daemon
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd
tswxl:~#

inetd.conf の再読込み

tswxl:~# kill -HUP `cat /var/run/inetd.pid `
tswxl:~#

確認

yasunari@sil:~$ ftp tswxl
Connected to tswxl.
220 tswxl FTP server (GNU inetutils 1.5) ready.
Name (tswxl:yasunari):
331 Password required for yasunari.
Password:
230- Linux tswxl 2.6.22.18-mv78100 #134 Thu Feb 4 11:14:40 JST 2010 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> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 20
-rw------- 1 yamasita 2199 May 28 23:07 .bash_history
-rw-r--r-- 1 yamasita  220 Mar 16 23:25 .bash_logout
-rw-r--r-- 1 yamasita 3116 Mar 16 23:25 .bashrc
-rw------- 1 yamasita   70 Apr 10 19:14 .lesshst
-rw-r--r-- 1 yamasita  675 Mar 16 23:25 .profile
226 Transfer complete.
ftp> bye
221 Goodbye.
yasunari@sil:~$
いけてそう

TS-WXL
楽天市場
amazon
Yahoo ショッピング
Livedoor デパート


DTV-S100
ハックの記録
LinkStation/玄箱 をハックしよう

apache のインストール

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