インストール
インストールはSynapticから行います。
バージョンは、1.3.2です。また、下記URLからProFTPDの詳細がわかります。
インストール方法は、PHP5と同じ方法で行います。
パネルにあるシステム→システム管理→Synapticを選択します。パスワードをいれ、Synapticを立ち上げ、検索でproftpdを検索します。proftpdをクリックすると窓が出てくるのでインストールをクリックします。四角に黄色矢印がつきます。
全てアップグレードをクリックし適用をクリックします。確認画面が出るので、適用をクリック。インストールを開始します。終了後、proftpdの四角が緑色になっていればインストール終了です。
Apacheで設定したDocument Root"/home/page/html"のpage以下を見えるようにします。
設定
ProFTPDの設定ファイルは、proftpd.confです。etc/の中にあります。
パネルのある端末を選択します。コマンドラインが出るので、su -と入力しEnter。パスワードをきいてくるので、ROOTのパスワードを入力しEnter。#にかわったら、leafpad /etc/proftpd.confと入力しEnter。leafpadのエディタと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"→ServerName "hugahuga.net"に変更。(6行目)
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
# Server side: EUC / Client side: EUC
# CharsetLocal EUC-JP-MS
# CharsetRemote EUC-JP-MS
# Server side: UTF-8 / Client side: UTF-8
CharsetLocal UTF-8→#CharsetLocal UTF-8に変更。(40行目)
CharsetRemote UTF-8→#CharsetRemote UTF-8に変更。(41行目)
# Server side: UTF-8 / Client side: Shift-JIS
# CharsetLocal UTF-8
# CharsetRemote CP932
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>↓ここから、#ですべてコメントアウトに変更。(54行目から)
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
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>↑ここまで、#ですべてコメントアウトに変更。(80行目まで)
<Limit LOGIN>
Order allow,deny
Allow from 192.168.0.0/24
Allow from 127.0.0.1
Deny from all
</Limit>
ServerIdent on "ftp server"
UseReverseDNS off
IdentLookups off
DefaultRoot ~/を追加します。
# '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"→ServerName "hugahuga.net"に変更。(6行目)
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
# Server side: EUC / Client side: EUC
# CharsetLocal EUC-JP-MS
# CharsetRemote EUC-JP-MS
# Server side: UTF-8 / Client side: UTF-8
CharsetLocal UTF-8→#CharsetLocal UTF-8に変更。(40行目)
CharsetRemote UTF-8→#CharsetRemote UTF-8に変更。(41行目)
# Server side: UTF-8 / Client side: Shift-JIS
# CharsetLocal UTF-8
# CharsetRemote CP932
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>↓ここから、#ですべてコメントアウトに変更。(54行目から)
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
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>↑ここまで、#ですべてコメントアウトに変更。(80行目まで)
<Limit LOGIN>
Order allow,deny
Allow from 192.168.0.0/24
Allow from 127.0.0.1
Deny from all
</Limit>
ServerIdent on "ftp server"
UseReverseDNS off
IdentLookups off
DefaultRoot ~/を追加します。