Home arrow BLOG arrow ProFTPインストール
アーカイブカレンダー
 Jul   Aug 2008   Sep
SMTWTFS
   1  2
  3  4  5  6  7  8  9
10111213141516
17181920212223
24252627282930
31 
ASIC ESL
ProFTPインストール PDF プリント
作者 Web Master   
2007/04/28 Saturday 19:03:17 JST

ProFTPインストール

何をやるにしても必要になるFTPサーバをDebian(Sarge)に
インストールしときましょう。
今回もRedHadの時と同じProFTPを使用します。

1.インストール

aptitudeを使用してProFTPパッケージをさくっとインストールします。
Debianは楽で良いですね~。

 # aptitude install proftpd

 Reading Package Lists... Done
 Building Dependency Tree
 Reading extended state information
 Initializing package states... Done
 Reading task descriptions... Done
 The following NEW packages will be automatically installed:
   debconf-utils proftpd-common ucf
 The following NEW packages will be installed:
   debconf-utils proftpd proftpd-common ucf
 0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
 Need to get 631kB of archives. After unpacking 1712kB will be used.
 Do you want to continue? [Y/n/?] Y

Y」と答えた後にProFTPの起動をinetd経由で起動するか
standaloneで起動するか聞かれますのでstandaloneにしときましょう。
ProFTP

2.設定ファイルの編集

ProFTPの設定ファイルの必要箇所のみ編集しておきましょう。

私は下記の様に編集しました。
 ・サーバー名を変更する。
  ⇒ServerName
 ・ファイル日付を日本時間にする(標準はGMT)
  ⇒TimesGMT
 ・DNS逆引きを行わない。
  ⇒UseReverseDNS
 ・identプロトコルを使用しない。
  ⇒IdentLookups
 ・FTPサーバのバージョンを表示しない。
  ⇒ServerIdent
 ・ドットから始まるファイルも表示する。
  ⇒ListOptions

ここからproftpd.confをダウンロードできます。

/etc/proftpd.conf

 # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
 # To really apply changes reload proftpd after modifications.
 #

 ServerName   "unitics"  ←変更
 ServerType   standalone
 DeferWelcome   off

 MultilineRFC2228  on
 DefaultServer   on
 ShowSymlinks   on

 TimeoutNoTransfer  600
 TimeoutStalled   600
 TimeoutIdle   1200
 TimesGMT   FALSE      ←変更

 UseReverseDNS   off    ←変更
 IdentLookups   off         ←変更
 ServerIdent   off          ←変更

 DisplayLogin              welcome.msg
 DisplayFirstChdir       .message
 ListOptions              "-a"    ←変更

 DenyFilter   \*.*/

 # Uncomment this if you are using NIS or LDAP to retrieve passwords:
 #PersistentPasswd  off

 # Uncomment this if you would use TLS module:
 #TLSEngine    on

 # Uncomment this if you would use quota module:
 #Quotas    on

 # Uncomment this if you would use ratio module:
 #Ratios    on

 # Port 21 is the standard FTP port.
 Port    21

 # 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 that the server normally runs at.
 User    nobody
 Group    nogroup

 # Umask 022 is a good standard umask to prevent new files and dirs
 # (second parm) from being group and world writable.
 Umask    022  022
 # Normally, we want files to be overwriteable.
 AllowOverwrite   on

 # Delay engine reduces impact of the so-called Timing Attack described in
 # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
 # It is on by default.
 #DelayEngine    off

 # A basic anonymous configuration, no upload directories.

 # <Anonymous ~ftp>
 #   User    ftp
 #   Group    nogroup
 #   # We want clients to be able to login with "anonymous" as well as "ftp"
 #   UserAlias   anonymous ftp
 #   # Cosmetic changes, all files belongs to ftp user
 #   DirFakeUser on ftp
 #   DirFakeGroup on ftp
 #
 #   RequireValidShell  off
 #
 #   # Limit the maximum number of anonymous logins
 #   MaxClients   10
 #
 #   # 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
 #   <Directory *>
 #     <Limit WRITE>
 #       DenyAll
 #     </Limit>
 #   </Directory>
 #
 #   # Uncomment this if you're brave.
 #   # <Directory incoming>
 #   #   # Umask 022 is a good standard umask to prevent new files and dirs
 #   #   # (second parm) from being group and world writable.
 #   #   Umask    022  022
 #   #            <Limit READ WRITE>
 #   #            DenyAll
 #   #            </Limit>
 #   #            <Limit STOR>
 #   #            AllowAll
 #   #            </Limit>
 #   # </Directory>
 #
 # </Anonymous>

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

参考サイト
http://www.marronkun.net/linux/web/proftpd_000019.html

最終更新日 ( 2007/04/28 Saturday 19:25:42 JST )
 
< 前へ   次へ >
[ 自宅サーバーWebRing |ID=148 前後5表示乱移動サイト一覧 ]
© 2008 UNITICS
Joomla! is Free Software released under the GNU/GPL License.
Translation is Joomla!JAPAN