- 论坛徽章:
- 0
|
- ServerName "******"
- ServerType standalone
- DefaultServer on
- ServerIdent off
- Port 21
- Umask 022
- MaxLoginAttempts 3
- TimeoutLogin 120
- TimeoutIdle 600
- TimeoutNoTransfer 900
- TimeoutStalled 3600
- MaxClients 100
- MaxClientsPerHost 3
- AllowOverwrite no
- AllowStoreRestart on
- UseReverseDNS off
- RequireValidShell off
- DefaultRoot ~ ftpusers
- DefaultRoot ~ FTPGRP
- MaxInstances 30
- User FTPUSR
- Group FTPGRP
- Normally, we want files to be overwriteable.
- <Directory />
- AllowOverwrite on
- </Directory>
- # A basic anonymous configuration, no upload directories.
- <Anonymous /ftp>
- User ftp
- Group ftpusers
- # 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, 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>
- SQLConnectInfo FTPUSERS@localhost root ******
- SQLAuthTypes Backend Plaintext
- SQLUserInfo FTPUSERS userid passwd uid gid homedir shell
- SQLGroupInfo FTPGRPS groupname gid members
- SQLAuthenticate users groups usersetfast groupsetfast
- SQLHomedirOnDemand on
- QuotaDirectoryTally on
- QuotaDisplayUnits "Kb"
- QuotaEngine on
- QuotaLog "/var/log"
- QuotaShowQuotas on
- SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail,f
- iles_in_avail, files_out_avail, files_xfer_avail FROM quotalimits WHERE name = '%{0}' AND quota_type = '%{1}'"
- SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_use
- d, files_xfer_used FROM quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
- SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_us
- ed = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used = files_out_used + %{4}, files_xfer_used = files_x
- fer_used + %{5} WHERE name = '%{6}' AND quota_type = '%{7}'" quotatallies
- SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" quotatallies
- QuotaLimitTable sql:/get-quota-limit
- QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
复制代码 |
|