Код: [Просмотр]
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