<Directory /*>
AllowOverwrite on ←上書きを許可
</Directory>
<Directory /home>
<Limit LOGIN>
Order deny,allow
DenyAll
Allow from 192.168.1.0/24 ←ログインをローカルに限定
</Limit>
</Directory>
# A basic anonymous configuration, no upload directories.
<Anonymous /var/ftp/pub> ←公開用ディレクトリの設定
# Uncomment the following line to allow anonymous access
#RequireValidShell off
#AllowChmod off
User ftp
Group ftp
#AccessGrantMsg "Anonymous login ok, restrictions apply."
# 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 ←一度に接続可能なクライアント数
# We want 'welcome.msg' displayed at login, '.message' displayed in
# each newly chdired directory and tell users to read README* files.
DisplayLogin welcome.msg
DisplayFirstChdir .message
#DisplayReadme README*
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE> ←すべてのユーザの書き込みを禁止
DenyAll
</Limit>
</Anonymous>
<Directory /var/ftp/pub/incoming> ←アップロード用ディレクトリの設定
<Limit READ WRITE> ←すべてのユーザの読み書き禁止
DenyAll
</Limit>
<Limit STOR> ←ファイルを置くことを許可
AllowAll
</Limit>
</Directory> |