CentOS7.6 instalar vsftpd

Entorno: CentOS7.6 64 bit, instalación YUM 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, edite el archivo de configuración vsftpd.conf
# vim /etc/vsftpd/vsftpd.conf
anonymous_enable = NO
local_enable = YES
local_enmask =
YES_escribible 022 =
dirmessage_enable = SÍ
xferlog_enable = SÍ
connect_from_port_20 = SÍ
xferlog_std_format es = SI
chroot_local_user = NO
local_root = / home / ftp
chroot_list_enable = SÍ
la chroot_list_file = / etc / vsftpd el / vsftpd.chroot_list
allow_writeable_chroot = SÍ
la escucha = NO
listen_ipv6 = YES
pam_service_name = vsftpd
userlist_enable = NO
userlist_deny = NO
tcp_wrappers = YES
7,
#vim /etc/pam.d/vsftpd Comenta lo siguiente

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

Supongo que te gusta

Origin blog.51cto.com/devin223/2487338
Recomendado
Clasificación