Redhat Linux下用vsftp配置ftp伺服器

來源:互聯網
上載者:User

//設定檔

/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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.