general usage
server:~ # yum install yum install vsftpd
server:~ # cat /etc/vsftpd/vsftpd.conf # 預設設定檔
server:~ # systemctl enable vsftpd.service # 開機時自動起動
server:~ # systemctl start vsftpd.service # 啟動 vsftpd
server:~ # systemctl stop vsftpd.service # 關閉 vsftpd
multiple instance
server:~ # cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd-mysite.conf
server:~ # systemctl start vsftpd@vsftpd-mysite.service
anonymous upload
server:~ # mkdir /var/ftp/pub/upload # 預設匿名者登入家目錄為 /var/ftp
server:~ # chmod 777 /vat/ftp/pub/upload
server:~ # chcon -R -t public_content_t /var/ftp/pub/upload
server:~ # setsebool -P allow_ftpd_anon_write=1
server:~ # vi /etc/vsftpd/vsftpd.conf # 確認匿名使用者可登入及上傳
anonymous_enable=YES
anon_upload_enable=YES
留言列表