1.安装
sudo yum install vsftpd
2.配置
sudo vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO #匿名用户不可登录
local_enable=YES #
chroot_local_user=YES #只能访问当前用户的目录
systemctl restart vsftpd
systemctl enable vsftpd
3.用户配置
usermod --home /data/ftp test
http://unix.stackexchange.com/questions/94603/limit-ftp-access-only-to-the-var-www-with-vsftpd
http://www.howtogeek.com/howto/ubuntu/add-a-user-on-ubuntu-server/
http://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/
https://www.rackspace.com/knowledge_center/article/rackspace-cloud-essentials-centos-configuring-a-user-in-vsftpd