Sorry for the long title.
Long titles are great and much appreciated! No need for apology, in fact it is the opposite.
I just published the article on how to setup ProFTPD FTP server on CentOS 7. I understand that your server is CentOS 6 but I though since it is quite old already why to waste time and instead write about CentOS 7 and then simply point out the differences.
As it turns out the setup of ProFTPD FTP server on CentOS 7 and CentOS 6 is exactly the same. The only difference is the way how you open firewall port. On CentOS 6 you still need to use
iptables whereas on CentOS 7 we can use
I’m assuming that we need to get FTP running on host ftp.example.com on port 3303. That we need a single user e.g.
luna to access directory
/var/www/html/my-site. I’m also assuming that the port 3303 is already opened hence firewall is not blocking incoming packets to this port.
Here are the differences when you follow my how to setup ProFTPD FTP server on CentOS 7 guide:
Configure ProFTPD ftp server to lissten on port 3303 instead of default port 21:
# echo "Port 3303" >> /etc/proftpd.conf
# service proftpd restart
At this point do not setup passive FTP mode yet. Make sure that your FTP is set to create “active” FTP connection. If you do setup passive ftp mode make sure that your firewall carters for additional incoming ports as set by ProFTPD’s
Be careful with permissions here! Make sure that you know what you are doing! I do not know your exact environment so do not want to give you are wrong suggestion:
# useradd luna -s /sbin/nologin -d /var/www/html/my-site
# passwd luna
# chown -R root.luna /var/www/html/my-site
# chmod -R 770 /var/www/html/my-site
# setsebool -P allow_ftpd_full_access=1
Rest of the tutorial is exactly the same including the TLS encryption.
Hope this helps