vsftpd安装
创建ftp用户
useradd -d /home/ftpuser1 -s /sbin/nologin ftpuser1
创建ftp用户密码
passwd ftpuser1
ftp配置文件的修改
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
listen_ipv6=no //这个一定要改
chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
allow_writeable_chroot=YES //这一句要写
pasv_min_port=30000
pasv_max_port=30999