Код:
yum -y install vsftpd
Код:
-y, --assumeyes Assume yes; assume that the answer to any question which would be asked is yes. Configuration Option: assumeyes
Код:
vim /etc/vsftpd/vsftpd.conf
Код:
anonymous_enable=NO
Код:
chroot_local_user=YES
Код:
ascii_upload_enable=YES ascii_download_enable=YES
Код:
allow_writeable_chroot=YES
pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100
Код:
systemctl restart vsftpd
Код:
systemctl enable vsftpd
Код:
firewall-cmd --permanent --add-service=ftp
firewall-cmd --reload
Код:
setsebool -P ftp_home_dir on
setsebool -P ftpd_full_access=on
Код:
getsebool -a | grep ftp