Linux安装vsFTP快速配置

LINUX2016-01-22 16:45

新建FTP登录帐号:
useradd jtwoftp -s /sbin/nologin
echo ThisIsPWD | passwd --stdin jtwoftp

安装并配置vsFTP程序:
yum -y install vsftpd
mv /etc/vsftpd/vsftpd.conf{,.$(date +%y%m%d)}
vi /etc/vsftpd/vsftpd.conf

pam_service_name=vsftpd
dirmessage_enable=YES
tcp_wrappers=YES

max_per_ip=10
max_clients=100
local_umask=022
write_enable=YES

xferlog_enable=YES
xferlog_std_format=YES

userlist_enable=YES
chroot_local_user=YES

anonymous_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
idle_session_timeout=3600

pasv_enable=YES
pasv_min_port=49152
pasv_max_port=65535

listen=YES
listen_port=53000
local_enable=YES
local_root=/data/ftpfile/

原文链接: http://blog.jtwo.me/linux-vsftp-rapid-configuration