Цитата:
Сообщение от igorbv
Имелась в виду автоматизация обнуления квоты анонимуса
|
Да, я уже понял, что неправильно Вам написал в первый раз.
Выход у Вас один, как я думаю.
Это использование
Domain ODBC (Domain Parameters), т.е. хранение настроек домена в базе данных.
Далее написание скрипта, который будет подсчитывать текущее место на диске и обновлять цифры в базе данных.
В базе данных будут использоваться три параметра, которые отвечают за квоту.
Единственное, что меня немного смущает, это что будет после обновления квоты в базе данных с пользователями, которые подключились к FTP ранее.
И 1 минута это очень часто, как я думаю
Читать в:
Serv-U Administrator Program -> Configuration Tabs -> Domain Parameters -> Domain ODBC
Цитата:
Column name of enable quota
This field is used in the user accounts table and is optional. If disk quota support is needed this field needs to be present. When enabled (TRUE) the account has disk quota enforced, when disabled (FALSE) there is no disk quota management for the account. This is a boolean field.
Column name of current disk quota
This field is used in the user accounts table and is optional. If disk quota support is needed this field needs to be present. This is the number of currently used bytes of disk quota for the account. It is a 64-bit integer field. If only 32-bit integers are available in the underlying database, such as in MS Access, this can be used but disk quota will be limited to a maximum of around 2GB.
Column name of maximum disk quota
This field is used in the user accounts table and is optional. If disk quota support is needed this field needs to be present. This is the maximum number of bytes the account is allowed to use. It is a 64-bit integer field. If only 32-bit integers are available in the underlying database, such as in MS Access, this can be used but disk quota will be limited to a maximum of around 2GB.
|