yum -y install vsftpd
useradd upload -s /sbin/nologin
passwd upload
mkdir /data/upload
chown -R upolad:upload /data/upload
vim /etc/passwd
upolad:upload:500:500::/home/upload:/usr/sbin/nologin
->
upolad:upload:500:500::/data/upload:/usr/sbin/nologin
# /etc/vsftpd/user_list
upload
# /etc/vsftpd/chroot_list
upload
# /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES
#chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
ls_recurse_enable=NO
listen=YES
listen_port=60000
listen_ipv6=NO
pasv_enable=YES
use_localtime=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
connect_timeout=60
accept_timeout=60
data_connection_timeout=300
idle_session_timeout=300
/etc/init.d/vsftpd start && chkconfig vsftpd on