Step 1:
sudo apt-get install vsftpd
Step 2:
修改配置文件/etc/vsftpd.conf
添加如下幾行:
userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/allowed_users
seccomp_sandbox=NO
並在etc文件夾中建立對應的allowed_users文件,其中加入賦予權限的用戶名
Step 3:
查看/etc/ftpusers, 刪除Step2中加入的用戶名,該文件爲限制訪問的用戶列表。
Step 4:
/etc/init.d/vsftpd restart
重啓服務即可