vi /etc/vsftpd/vsftpd.conf
# no anonymous
anonymous_enable=NO
# uncomment (permit ascii mode transfer)
ascii_upload_enable=YES
ascii_download_enable=YES
# 可以不使用chroot
# uncomment ( enable chroot list )
chroot_list_enable=YES
chroot_local_user=YES
# line 99: uncomment ( enable chroot list file )
chroot_list_file=/etc/vsftpd/chroot_list
# line 105: uncomment
ls_recurse_enable=YES
# 不使用chroot就无需设置以下
# add follows to the end
# specify root directory ( if don't specify, users' home directory become FTP home directory )
local_root=public_html
# use localtime
use_localtime=YES
# add users you allow to move over their home directory
cent
vi /etc/vsftpd/user_list
vi /etc/vsftpd/ftpusers
chkconfig vsftpd on
service vsftpd start