• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

A cPanel Tech

The Diaries of a Linux Server Administrator

  • Home
  • About
  • Privacy
You are here: Home / Articles / How to Setup an FTP server using PureFTP

How to Setup an FTP server using PureFTP

October 18, 2015 By admin 1 Comment

 

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.

Filed Under: Articles, Linux Tagged With: linux, pureftp, pureftpd

Reader Interactions

Trackbacks

  1. What is the difference between ProFTP and PureFTP says:
    December 22, 2018 at 10:20 pm

    […] You can view this article to see how to set up a standalone Pure FTP server  […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

Primary Sidebar

Copyright 2018 CPanelTech