In this post we create an ftp server aand grant access for user to linux server, based on Centos 7, and allow listing of this content on specific url via Apache web server (eventually for testing speed download via web and upload via ftp).
At the beginng, we install secure ftp server:
yum -y install vsftpd
And if we want secure ftp server, then we need to modify some variables in main configuration file. And check other variables, if set by below example:
vim /etc/vsftpd/vsftpd.conf
anonymous_enable=NO #disable anonymous access local_enable=YES write_enable=YES chroot_local_user=YES #chroot user to their home folder allow_writeable_chroot=YES
Now we allow ftp access in firewall:
firewall-cmd --permanent --add-service=ftp --zone=public firewall-cmd --reload
chown ftpuser:ftpuser -R /var/www/jjjj.sk/html/upload semanage fcontext -a -t public_content_rw_t /var/www/jjjj.sk/html/upload restorecon -Rvv /var/www/jjjj.sk/html/upload/ setsebool -P ftpd_full_access 1 a este zmenit home folder: ftpuser:x:1002:1002::/var/www/jjjj.sk/html/upload:/bin/bash
Total Page Visits: 730 - Today Page Visits: 1