Installing Pure-FTPd on Ubuntu 12.04

Guide wrote on 13 Jan 2014

Step 1) Install Pure-FTPd using aptitude package tool

root@server:~# aptitude -y install pure-ftpd

Step 2) Run pure-ftpd as a daemon (background process)

root@server:~# echo "yes" > /etc/pure-ftpd/conf/Daemonize

Step 3) Disable anonymous ftp login

root@server:~# echo "yes" > /etc/pure-ftpd/conf/NoAnonymous

Step 4) Jail all local user to their home directories

root@server:~# echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone

Step 5) Configure FTP server to use IPv4 only

root@server:~# echo "yes" > /etc/pure-ftpd/conf/IPV4Only

Last Step) Restart pure-FTP server for changes to take effect

root@server:~# service pure-ftpd restart

Optional configurations you may need:

Defining passive ports (passive port range 21000 to 21100 in example below)

root@server:~# echo "21000 21100" > /etc/pure-ftpd/conf/PassivePortRange

Set maximum number of clients (50 clients in example below)

root@server:~# echo "50" > /etc/pure-ftpd/conf/MaxClientsNumber