ubuntu14.04 安装FTP
apt-get install vsftpd -y
service vsftpd restart
mkdir /home/idriver
useradd -d /home/idriver -s /bin/bash idriver
passwd idriver
rm /etc/pam.d/vsftpd
usermod -s /sbin/nologin idriver
vim /etc/vsftpd.conf
chroot_local_user=YES
userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/allowed_users
seccomp_sandbox=NO
pasv_promiscuous=YES
utf8_filesystem=YES
local_root=/home/idriver
vim /etc/allowed_users
idriver
chmod a-w /home/idriver
mkdir /home/idriver/public && sudo chmod 777 -R /home/idriver/public
service vsftpd restart