# vi /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 は任意でOK。接続した時に表示されます。
ServerName "FTP Server"
# standalone でシステムに常駐が可能
ServerType standalone
# デフォルトサーバを有効にする
DefaultServer on
# FFFTPで.htaccess等の./等で始まるファイルを表示、削除できるようにする場合に追記
ListOptions "-a"
# 接続された時に表示されるバナーメッセージを記述
# この項目が無いと ProFTPD を使っている事と、バージョンが相手に知られます
ServerIdent on "FTP OK"
# この二つの項目を off にする事で高速に接続可能
UseReverseDNS off
IdentLookups off
# この例ではユーザーyosi 意外は、
# 自分のホームディレクトリの/public_htmより上位層には行けなくしている
DefaultRoot ~/public_html !yosi
# ProFTPD が動作するポート番号
# 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
# 使用ルータがPASVモード非対応の場合のみ設定
# 固定IPアドレス環境の場合は、IPアドレスを記載
# 非固定IPアドレス環境の場合はグローバルIPアドレスが牽けるサーバー名を記載
MasqueradeAddress xxxx.com
# 最大ポート、最小ポートを指定(ポートは1024以上を指定する事)
PassivePorts 4000 4029
# 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 5
# パスワードの入力ミスは3回まで(各自の環境に合わせて設定)
MaxLoginAttempts 3
# 同一ホストからの同時接続数の制限(必要な場合は任意で設定)
# The maximum number of clients allowed to connect per host.(default none: no limit)
#MaxClientsPerHost 1
# 複数ホストから同一ユーザでの同時接続数の制限(必要な場合は任意で設定)
# The the maximum number of times different hosts. (default none: no limit)
#MaxHostsPerUser 1
# アップロード中断ファイルの自動削除
# Enable automatic deletion of partially uploaded files (default off)
DeleteAbortedStores on
# ユーザが認証されるまでの間、ProFTPD はこのユーザ権限で動作しています
# Set the user and group under which the server will run.
User nobody
Group nobody
# 上書きを許可
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# 詳細なログのフォーマットと取得
LogFormat allinfo "%t : %l %u (%a [%h]) : [%s] \"%r\" %T,
(%f)"
LogFormat auth "%t : %u %a \"%r\" %s"
LogFormat write "%t : %u : %F %a"
LogFormat read "%t : %u : %F %a"
ExtendedLog /var/log/proftpd/all.log ALL allinfo ExtendedLog /var/log/proftpd/auth.log AUTH auth
ExtendedLog /var/log/proftpd/write.log WRITE write
ExtendedLog /var/log/proftpd/read.log READ read
#この下に「Anonymous」の記述がありますが
#全て「#」でコメントアウトする事によって、
#Anonymous としては動作しなくなります
# 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>
|