# xinetd経由でProFTPD in ubuntu server

- リンク: https://torounit.com/blog/xinetd%e7%b5%8c%e7%94%b1%e3%81%a7proftpd-in-ubuntu-server/
- 公開日: 2011-04-07T20:35:28+09:00
- 作成者: Toro\_Unit

久々にサーバーやってみたら思いの外時間がかかってしまったので、メモです。

環境はubuntu server 10.04(VPS)です。

# ProFTPD側の設定

とりあえず、主役をインストール
 [bash] apt-get install proftpd [/bash]

proftpdをインストールするときに、起動方法をスタンドアローンかinetdか聞かれるので、
inetdを選択。

ちなみにproftpdの設定ファイルは
 /etc/proftpd/proftpd.conf です。

一応、
 [bash] vi /etc/proftpd/proftpd.conf [/bash] で ServerName “proftpd” を変更
することをおすすめします。myServerとか適当に。

# xinetd

[bash]
 vi /etc/xinetd.d/ftp [/bash] でftp用の設定ファイルを作成します。ファイル
名はproftpdとかでもなんでも良いようです。わかり易い名前をつけてあげましょう。

[plain]
 # default: on # description: Proftpd # securlevel: 30 service ftp { flags
= REUSE socket_type = stream wait = no user = root server = /usr/sbin/proftpd } [/
plain]

で保存します。

ちなみにCentOSの場合も手順はそんなに変わりませんが、
 [plain] server = /usr/sbin/
in.proftpd [/plain] になります。ご注意。

そして、xinetdを再起動
 [bash] /etc/init.d/xinetd restart [/bash]

これでFTPがつながるようになるはずです。
 ダメな場合、ファイヤーウォールなどの設定
を見直すなどの必要がありそうです。。。たぶん。
