———————————————–

grep -Pv “^#” /etc/vsftpd/vsftpd.conf

local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

#local_root=/var/zqj

anonymous_enable=NO

listen_port=7777

chroot_local_user=YES
allow_writeable_chroot=YES

ascii_upload_enable=YES
ascii_download_enable=YES

pasv_enable=YES
pasv_min_port=50000
pasv_max_port=55000

—————————————————–

useradd -s /sbin/nologin -d /var/zs zs
echo “zsmm” | passwd –stdin zs


 

userlist_enable=YES

userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
allow_writeable_chroot=YES

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注