Vine Linux 4にProFTPDをインストールする方法

Vine 4 hacks

/

ProFTPDのインストール

ProEvo / Vine Evo / Vine4 hacks / ProFTPDのインストール

Vine Linux 4にProFTPDをインストールする方法。


1. ProFTPDについて

1.1 ProFTPDとはなにか?

ProFTPDは、Unix/Linuxで使われるFTPサーバープログラムです。ProFTPDはGPLライセンスで開発が行われており、無償で利用することができます。
また設定ファイルがApacheと同様の形式で設定でき、安全で自由度の高いFTPサーバとなっています。

1.2 ProFTPDを手に入れる

Vine LinuxではProFTPDはrpmパッケージで提供されています。
そのため、apt-getでProFTPDをインストールできます。

2. ProFTPDのインストール

2.1 ProFTPDをインストールする

次の手順で、ProFTPDをインストールします。

  1. rootでログインします。
    [atsushifx@agartha atsushifx]$ su
    パスワード(P):
    [root@agartha atsushifx]#
  2. aptを使って、proftpdをインストールします。
    [root@agartha atsushifx]# apt-get install proftpd
    パッケージリストを読みこんでいます... 完了
    依存情報ツリーを作成しています... 完了
    以下のパッケージが新たにインストールされます:
      proftpd
    アップグレード: 0 個, 新規インストール: 1 個, 削除: 0 個, 保留: 7 個
    725kB のアーカイブを取得する必要があります。
    展開後に 2358kB のディスク容量が追加消費されます。
    取得:1 http://updates.vinelinux.org 4.0/i386/updates proftpd 1:1.2.10-0vl5.4 [725kB]
    725kB を 3s 秒で取得しました (190kB/s)
    変更を適用しています...
    準備中...                   ########################################### [100%]
       1:proftpd                ########################################### [100%]
    完了
    [root@agartha apt]#
    

以上で、ProFTPDのインストールは終了です。

2.2 ProFTPDを初期設定する

ProFTPDの設定ファイルを初期化し、自動起動を設定します。
次の手順で、ProFTPDを初期設定します。

  1. 設定ファイルを書き換え、次のように設定します。
    /etc/proftpd.conf
    # This is a basic ProFTPD configuration file (rename it to
    # 'proftpd.conf' for actual use.  It establishes a single server
    # and a single anonymous login.  It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.
    
    ServerName                      "ProFTPD Default Installation"
    ServerType                      standalone
    DefaultServer                   on
    
    # Port 21 is the standard FTP port.
    Port                            21
    
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask                           022
    
    # Use localtime
    TimesGMT                        FALSE
    
    # To prevent DoS attacks, set the maximum number of child processes
    # to 30.  If you need to allow more than 30 concurrent connections
    # at once, simply increase this value.  Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd).
    MaxInstances                    30
    
    # Set the user and group under which the server will run.
    User                            nobody
    Group                           nobody
    
    # iconv patch: set local/remote encoding
    # http://www.hakusan.tsg.ne.jp/tjkawa/software/misc/proftpd-iconv/index.jsp
    CharsetLocal  EUC-JP-MS
    # CharsetRemote CP932
    CharsetRemote EUC-JP-MS
    
    DefaultRoot     ~
    # Normally, we want files to be overwriteable.
    <Directory />
      AllowOverwrite                on
    </Directory>
    
    # A basic anonymous configuration, no upload directories.
    #<Anonymous ~ftp>
    #
    #  User                         ftp
    #  Group                                ftp
    #
    #  # We want clients to be able to login with "anonymous" as well as "ftp"
    #  UserAlias                    anonymous ftp
    #
    #  # Limit the maximum number of anonymous logins
    #  MaxClients                   10
    #
    #  # do not require shells listed in /etc/shells (user ftp do not have
    #  # shell...)
    #  RequireValidShell       no
    #
    #  # We want 'welcome.msg' displayed at login, and '.message' displayed
    #  # in each newly chdired directory.
    #  DisplayLogin                 welcome.msg
    #  DisplayFirstChdir            .message
    #
    #  # Limit WRITE everywhere in the anonymous chroot
    #  <Limit WRITE>
    #    DenyAll
    #  </Limit>
    #
    #</Anonymous>
    
  2. chkconfigを実行し、自動起動を設定します。
    [root@agartha etc]# /sbin/chkconfig proftpd on
  3. proftpdを起動します。
    [root@agartha etc]# /etc/init.d/proftpd restart
    ProFTPdを停止中:                                           [ 失敗 ]
    ProFTPdを起動中:                                           [  OK  ]
    [root@agartha etc]#
    

以上で、ProFTPDの初期設定は終了です。

AMAZON



$Revision: 1 $
$Date: 2009-03-19 20:17:04 +0900 (木, 19 3月 2009) $