Setup Pure-FTPd on Ubuntu 17.04 | 17.10

For students and new users who want to transfer files to and from remote Linux servers via FTP protocols, Pure-FTPd is a great alternative. This post shows you how install and configure Pure-FTPd on Ubuntu 17.04 | 17.10.

Our previous posts showed you how to install VSFTPD and ProFTPD on Ubuntu. Pure-FTPd is another alternative to the two we’ve already discussed. If the previous two FTP servers are not meeting your needs, you should give Pure-FTPd a try.

When it comes to using FTP on Linux systems, these three FTP servers are probably all you’ll ever need, and we’ve discussed how to install and use all three of them on this blog.

To learn how to install and configure Pure-FTPd, follow the steps below:

Step 1: Install Pure-FTPd

To install Pure-FTPd on Ubuntu, run the commands below.

sudo apt-get install pure-ftpd

The commands above install the server, and by default allows anyone with accounts on the system logs on automatically.

Step 2: Configuring Pure-FTPd

After installing the server, you’ll find all of Pure-FTPd configurations files in the directory below. On big difference between Pure-FTPd and the other FTP servers we’ve discussed here is that there’s not a single configuration file to configure Pure-FTPd. Different settings have their own file, which is kinda sucks.

So, in the below location is where you’ll find the files for individual stetting.

/etc/pure-ftpd/conf

To configure Pure-FTPd and allow basic security, run the commands below. These commands set individual settings for the server.

sudo bash
echo "yes" > /etc/pure-ftpd/conf/Daemonize
echo "yes" > /etc/pure-ftpd/conf/NoAnonymous
echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone
echo "yes" > /etc/pure-ftpd/conf/IPV4Only
echo "yes" > /etc/pure-ftpd/conf/ProhibitDotFilesWrite

When you’re done, these individual files will be created in the default conf directory:

Daemonize = Runs Pure-FTPd as daemon

NoAnonymous = disable Anonymous logins

ChrootEveryone = Keep everyone in their home directory

IPV4Only = Only allow IPv4 to connect

ProhibitDotFilesWrite = Don’t not edit dot files

When you’re done, run the commands below to restart the server

sudo systemctl restart pure-ftpd

Now, open your favorite FTP client (FileZilla) and connect using the server hostname or server IP address.

ubuntu install pure-ftpd

Below are more setting files you can create

echo     ‘yes’    >          BrokenClientsCompatibility
echo     ’50’        >            MaxClientsNumber
echo     ‘5’            >               MaxClientsPerIP
echo    ‘no’         >            VerboseLog
echo    ‘yes’        >            DisplayDotFiles
echo    ‘yes’       >         NoChmod
echo    ‘no’        >         AnonymousOnly
echo    ‘no’        >              PAMAuthentication
echo    ‘no’       >               UnixAuthentication
echo    ‘/etc/pure-ftpd/pureftpd.pdb’ > PureDB
echo    ‘yes’        >       DontResolve
echo    ’15’          >      MaxIdleTime
echo    ‘2000 8’   >      LimitRecursion
echo    ‘yes’          >     AntiWarez
echo    ‘no’           >     AnonymousCanCreateDirs
echo    ‘4’           >     MaxLoad
echo    ‘no’         >     AllowUserFXP
echo    ‘no’        >     AllowAnonymousFXP
echo    ‘no’          >     AutoRename
echo    ‘yes’        >     AnonymousCantUpload
echo    ‘yes’         >     NoChmod
echo    ’80’           >     MaxDiskUsage
echo    ‘yes’         >     CustomerProof
echo    ‘0’           >        TLS

That’s it! This is how one installs and configures Pure-FTPd.

Enjoy!

You may also like the post below:

Setup ProFTPD on Ubuntu 17.04 / 17.10

Leave a 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.