1关闭iptables,selinux
2安装vsftpd
# yum install vsftpd -y
3创建虚拟用户文件
[root@localhost.localdomain ~]
# vim /etc/vsftpd/vusers.txt
one
redhat
two
redhat
three
4使用db_load工具生成数据库.db文件(db_load工具由db4-utils包提供)
# db_load -T -t hash -f /etc/vsftpd/vusers.txt /etc/vsftpd/vusers.db
# chmod 700 /etc/vsftpd/vusers.*
5生成pam认证文件并修改虚拟用户路径
1)只能使用虚拟用户