[cc lang="bash"]
\$ apt-get install pure-ftpd
\$ cd /etc/pure-ftpd/conf/
\$ rm -f *
\$ echo "clf:/var/log/pure-ftpd/transfer.log" > AltLog
\$ echo "10.20.30.40,21" > Bind
\$ echo "yes" > ChrootEveryone
\$ echo "yes" > DisplayDotFiles
\$ echo "yes" > DontResolve
\$ echo "yes" > IPV4Only
\$ echo "3" > MaxClientsPerIP
\$ echo "yes" > NoAnonymous
\$ echo "/etc/pure-ftpd/pureftpd.pdb" > PureDB
\$ echo "1" > TLS
\$ cd /etc/pure-ftpd/auth/
\$ rm -f *
\$ ln -s /etc/pure-ftpd/conf/PureDB PureDB
\$ cd /etc/pure-ftpd/
\$ rm -fr db/
\$ openssl req -x509 -nodes -newkey rsa:1024 -keyout
/etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
\$ chmod 600 /etc/ssl/private/pure-ftpd.pem
\$ pure-pw useradd "ftp-www" -c "FTP to /var/www/" -u www-data -d /var/www/ -m
\$ service pure-ftpd restart
\$ netstat -tulnp | grep :21
[/cc]