How to configure ftp server and anonymous dropbox in RHEL7 part2
Now let’s configure a drpbox ftp!!!:
mkdir /var/ftp/pub/uploads
chmod 730 /var/ftp/pub/uploads/
chown :ftp /var/ftp/pub/uploads/
ls -ld /var/ftp/pub/uploads/
vim /etc/vsftpd/vsftpd.conf
anon_upload_enable=YES
anon_mkdir_write_enable=YES
chown_uploads = yes
chown_username = root
systemctl restart vsftpd
lftp ftp://rhel7.example.com or lftp ftp://localhost
cd uploads
put /etc/hosts
229 Entering Extended Passive Mode
Could not create file 553.
We need to apply some SELinux context:
grep AVC /var/log/audit/audit.log
semanage fcontext -a -t public_content_rw_t
restorecon -R -v /var/ftp/uploads
getsebool -a | grep ftp
ftpd_anon_write — off
setsebool -P ftpd_anon_write on
And try again!!!
by Fidel Dominguez-Valero
linux ftp server
it is working good .Thanks.