CentOS7.6 install vsftpd

Environment: CentOS7.6 64-bit, YUM installation vsftpd
1, yum -y install vsftpd
2, useradd sundun -s / sbin / nologin -d / home / ftp
3, echo "sundun" | passwd --stdin sundun
4, touch / etc / vsftpd / vsftpd.chroot_list
5, echo "sundun"> /etc/vsftpd/vsftpd.chroot_list
6, edit the vsftpd.conf configuration file
# 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 is = YES
chroot_local_user = NO
local_root = / Home / FTP
chroot_list_enable = YES
the chroot_list_file = / etc / the vsftpd / vsftpd.chroot_list
allow_writeable_chroot = YES
the listen = NO
listen_ipv6 = YES
pam_service_name = vsftpd
userlist_enable = NO
userlist_deny = NO
tcp_wrappers = YES
7,
#vim /etc/pam.d/vsftpd Comment out the following

#auth required pam_shells.so
8、#sysctl restart vsftpd.service

Guess you like

Origin blog.51cto.com/devin223/2487338