歡迎您光臨本站 註冊首頁

proftp+mysql+quota的硬碟限制問題。

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

proftp+mysql+quota的硬碟限制問題。

proftpd+mysql只要不使用quota功能,正常使用.
只要在"ftpquotalimits"加用戶就無法登錄。

server
# ./proftpd -n
proftpd - ProFTPD 1.3.1 (stable) (built 五 11月 30 16:10:14 CST 2007) standalone mode STARTUP
proftpd (192.168.36.106) - FTP session opened.
proftpd (192.168.36.106) - USER test: Login successful.
proftpd (192.168.36.106) - Preparing to chroot to directory '/home/test'
proftpd (192.168.36.106) - FTP session closed.


client
$ ftp 192.168.36.103
Connected to 192.168.36.103.
220 192.168.36.103 FTP server ready
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (192.168.36.103:jiangshu): jsh
331 Password required for jsh
Password:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory
ftp>
《解決方案》

問題以解,但又出現新問題!

我在limit里設定了10000000=9.幾M,用戶一次(如果上傳多個文件)合計10M以上的文件的時候會出錯(文件上傳失敗), 但是按ESC再重新接著傳沒有傳完的文件,就可以上傳上。
例:2個6M的文件。二個一起上傳,傳完第一個,傳第二個的時候報錯,但是按ESC,接著再傳第二個文件,一樣可以上傳上去.
個人理解為:proftpd表裡的quote是不是只能限制單次上傳量/不能限制使用空是的總大小.
這裡(表 : ftpquotalimits)我就設了一個值.
name         quota_type         per_session         limit_type         bytes_in_avail         bytes_out_avail         bytes_xfer_avail         files_in_avail         files_out_avail         files_xfer_avail
jsh         user         true         hard         1e+07         0         0         0         0         0
查看(表 : ftpquotatallies)沒有值這是為什麼呢?
name         quota_type         bytes_in_used         bytes_out_used         bytes_xfer_used         files_in_used         files_out_used         files_xfer_used
jsh         user         0         0         0         0         0         0
在client下用quote site quota
ftp> quote site quota
200-The current quota for this session are :
Name: jsh
Quota Type: User
Per Session: True
Limit Type: Hard
   Uploaded Mb:         0.00/9.54
   Downloaded Mb:       unlimited
   Transferred Mb:      unlimited
   Uploaded files:      unlimited
   Downloaded files:    unlimited
   Transferred files:   unlimited
200 Please contact jsh@163.com if these entries are inaccurate
請問這個問題怎麼解。
如果用系統的quota應該如何去設置?(不使用系統賬號)
謝謝!

[火星人 ] proftp+mysql+quota的硬碟限制問題。已經有408次圍觀

http://coctec.com/docs/service/show-post-33898.html