//設定檔
/etc/vsftpd/vsftpd.conf 主設定檔
/etc/vsftpd.ftpusers 指定哪些使用者不能訪問FTP伺服器
/etc/vsftpd.user_list 指定的使用者在/etc/vsftpd/vsftpd.conf中設定了userlist_enable=YES且userlist_deny=NO時能訪問FTP伺服器
//允許匿名使用者上傳
anon_upload_enable=YES 允許匿名使用者上傳
anon_mkdir_write_enable=YES 開啟匿名使用者的寫和建立目錄的許可權
anon_world_readable_only=NO 開放匿名使用者的瀏覽許可權
idle_session_timeout=600 在使用者會話空閑10分鐘後被中斷
data_connectiono_timeout=120 在資料連線空閑2分鐘後被中斷
accept_timeout=60
connect_timeout=60 在空閑1分鐘後自動斷串連,並在中斷1分鐘後自動啟用
max_clients=200 總的客戶並發串連數
max_per_ip=3 每個客戶機最大串連數
local_max_rate=50000
anon_max_rate=30000 本機使用者最大傳輸速率50KB/S,匿名的30KB/S
//安全
//設定/etc/hosts.deny
vsftpd:DENY FROM ALL
//設定/etc/hosts.allow
vsftpd:IP:ALLOW
//建立匿名上傳目錄
# mkdir /var/ftp/incoming
#chmod o+w /var/ftp/incoming/
//運行在xinetd方式下
//修改設定檔
# vi /etc/vsftpd/vsftpd.conf
//在如下配置選項前添加註釋
//# listen=YES
//# tcp_wrappers=YES
//從vsftpd的文檔目錄裡複製xinetd設定檔
# cp /usr/share/doc/vsftpd-1.1.3/vsftpd.xinetd /etc/xinetd.d/vsftpd
//修改設定檔
# vi /etc/xinetd.d/vsftpd
//將disable = yes 改為 disable = no
//修改rc3.d中的檔案,使下次啟動時不啟動獨立啟動並執行vsftpd
# mv /etc/rc.d/rc3.d/S60vsftpd /etc/rc.d/rc3.d/s60vsftpd
//重新啟動xinetd 守護進程
如果有什麼問題,請發郵件聯絡: webmaster@bcxy.com