LINUX comment cree un serveur ftp avec pureftpd et mysql

Ce we pendant mes moments perdu et dieu sait qu’ils ne sont pas nombreux :p
J’ai installé un serveur pureftpd avec le support de mysql, gestion des quota et gestion de bande passante.

Donc voila un tuto très bien fais, en gros si on a des bases suffisante, c’est terminer en 5 minutes.

This document describes how to install a PureFTPd server that uses virtual users from a MySQL database instead of real system users. This is much more performant and allows to have thousands of ftp users on a single machine. In addition to that I will show the use of quota and upload/download bandwidth limits with this setup. Passwords will be stored encrypted as MD5 strings in the database.

For the administration of the MySQL database you can use web based tools like phpMyAdmin which will also be installed in this howto. phpMyAdmin is a comfortable graphical interface which means you do not have to mess around with the command line.
source

Pour le TLS , sécurité tout ça, tout ça :p

1
2
3
mkdir -p /etc/ssl/private
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/*.pem

Et on restart pureftpd avec l’option
–tls=1 : Connexions de client normaux ou sécurisé autorisé.
–tls=2 : Seul les clients sécurisés peuvent se connecter.