превышение квоты в Proftpd
Добавлено: 2010-07-07 10:23:59
Проблема в том, что при копировании мелких файлов в за раз с помощью Total Сommander квота не срабатывает, а срабатывает после того как еще раз запускаешь копирование. При этом при копировании файла, размер которого больше квоты при превышении квоты копирование прерывается.
Настройку Proftpd производил согласно статье http://www.lissyara.su/articles/freebsd ... from_file/. Тип квот выставил в HARD.
Настройку Proftpd производил согласно статье http://www.lissyara.su/articles/freebsd ... from_file/. Тип квот выставил в HARD.
Код: Выделить всё
#
# For more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#
# 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 "FTP Server"
ServerType standalone
DefaultServer on
ScoreboardFile /var/run/proftpd/proftpd.scoreboard
# Port 21 is the standard FTP port.
Port 21
# Use IPv6 support by default.
UseIPv6 on
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600
# 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
CommandBufferSize 512
# Set the user and group under which the server will run.
User ftp
Group ftp
#Encoding
LangEngine on
UseEncoding KOI8-R CP1251
#Config Quotas
QuotaEngine on
QuotaOptions ScanOnLogin
QuotaDirectoryTally on
QuotaDisplayUnits Mb
QuotaShowQuotas on
QuotaLimitTable file:/usr/local/etc/proftpd.quota.limittab
QuotaTallyTable file:/usr/local/etc/proftpd.quota.tallytab
QuotaLog /var/log/proftpd/quota.log
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
AuthUserFile /usr/local/etc/proftpd.passwd
AuthGroupFile /usr/local/etc/proftpd.group
RequireValidShell off
SystemLog /var/log/proftpd/error.log
TransferLog /var/log/proftpd/transfer.log
DefaultRoot ~
<Directory ~>
# Normally, we want files to be overwriteable.
AllowOverwrite on
<Limit Write>
AllowAll
</Limit>
<Limit READ>
AllowAll
</Limit>
</Directory>