1) installation and firewall setup - follow instruction on wiki page. To summarize - one needs to install the package (yum install vsftp) and setup the firewall rules so that the traffic is passed to the ftp port
2) configuration of access rights - in my case step 1 was still not enough. Each login access attempt as a normal user ended up with error:
In order to solve it I needed to change the SELinux boolean value of ftp_home_dir:
# getsebool -a | grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
ftp_home_dir --> off
ftpd_connect_db --> off
httpd_enable_ftp_server --> off
sftpd_anon_write --> off
sftpd_enable_homedirs --> off
sftpd_full_access --> off
sftpd_write_ssh_home --> off
tftp_anon_write --> off
# setsebool -P ftp_home_dir on
# getsebool -a | grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
ftp_home_dir --> on
ftpd_connect_db --> off
httpd_enable_ftp_server --> off
sftpd_anon_write --> off
sftpd_enable_homedirs --> off
sftpd_full_access --> off
sftpd_write_ssh_home --> off
tftp_anon_write --> off
#
Afterwards I was able to login/create directories/upload files via FTP as a normal OS user ;)
Brak komentarzy:
Prześlij komentarz