CentOS7.6 安裝vsftpd

環境:CentOS7.6 64位,YUM安裝vsftpd
一、yum -y install vsftpd
二、useradd sundun -s /sbin/nologin -d /home/ftp
三、echo "sundun" |passwd --stdin sundun
四、touch /etc/vsftpd/vsftpd.chroot_list
五、echo "sundun" >/etc/vsftpd/vsftpd.chroot_list
六、 編輯vsftpd.conf配置文件
#vim /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=NO
local_root=/home/ftp
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
allow_writeable_chroot=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=NO
userlist_deny=NO
tcp_wrappers=YES
七、
#vim /etc/pam.d/vsftpd 將下面的註釋掉shell

#auth required pam_shells.so
八、#sysctl restart vsftpd.servicevim

相關文章
相關標籤/搜索