CentOS7.6インストールvsftpd

環境:CentOS7.6 64ビット、YUMインストールvsftpd
1、yum -yインストール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、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 = /ホーム/ FTP
chroot_list_enable = YES
chroot_list_file =の/ etc / vsftpdは/ vsftpd.chroot_list
allow_writeable_chroot = YES
NO =聞きます
listen_ipv6 = YES
pam_service_name = vsftpd
userlist_enable = NO
userlist_deny = NO
tcp_wrappers = YES
7、
#vim /etc/pam.d/vsftpd以下をコメント化します

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

おすすめ

転載: blog.51cto.com/devin223/2487338