Ftp access to linux server and apache listing of this content

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
chroot_local_user=YES #chroot user to their home folder

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:

Total Page Visits: 730 - Today Page Visits: 1