How to Setup an FTP server using PureFTP

 

Setting up a PureFTP server is rather easy. I am making it easier. In a CentOS server, follow these steps to install a fully standalone PureFTP server, without PAM authentication.

Step 1

Install PureFTP from Yum

yum -y install pure-ftpd
chkconfig pure-ftpd on

Step 2

Disable Anonymous login.

sed -i '/NoAnonymous/ s/no/yes/' /etc/pure-ftpd/pure-ftpd.conf

Step 3

Enable PureDB user database

sed -i '/\/etc\/pure-ftpd\/pureftpd.pdb/ s/# PureDB/PureDB/' /etc/pure-ftpd/pure-ftpd.conf

Step 4

Disable PAM authentication.

sed -i '/PAMAuthentication/ s/yes/no/' /etc/pure-ftpd/pure-ftpd.conf

Step 5

Bind the PublicIP of the server.

sed -i "/127.0.0.1,21/ s/# Bind/Bind/" /etc/pure-ftpd/pure-ftpd.conf
sed -i "/Bind/ s/127.0.0.1/PUBLICIP/" /etc/pure-ftpd/pure-ftpd.conf

Step 6

Create the first FTP user.

pure-pw useradd USERNAME -u apacheĀ -g apacheĀ -d /var/www/html/
pure-pw mkdb
service pure-ftpd restart

Finishing Touch

Once you have done with the install, please make sure that you whitelist the necessary ports / IP address in your firewall.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu