proftpd


Using VirtualHosts on a ProFTPd server

When using ProFTPd you may want to have the server listening on different ports, for example if you want to use FTP and SFTP at the same time. Here is an example: <VirtualHost 0.0.0.0 ftp.example.net> SFTPEngine off Port 21 DefaultRoot ~ Umask 022 022 AllowOverwrite on </VirtualHost> <VirtualHost 0.0.0.0 sftp.example.net> SFTPEngine on Port 2222 SFTPLog […]


Installing ProFTPd with Public Key Authentication on Ubuntu 16.04

First install proftpd: apt-get update apt-get install proftpd Next, change the following lines in /etc/proftpd/proftpd.conf: ServerName "sftp.example.net" DefaultRoot ~ Put in your hostname (if it resolves) or IP address as ServerName. The second line will jail the user to his home directory. Next, create the file /etc/proftpd/conf.d/sftp.conf with the following content: <IfModule mod_sftp.c> SFTPEngine on # If […]


Upgrading Proftpd from 1.3.3a to 1.3.3g on Debian Squeeze

As the current version of Proftpd has some important security problems and as Debian does not provide an updated package yet, the best way to patch Proftpd is to download the updated sources and create your own debian package. To do this we need to first install some needed packages: apt-get install autotools-dev fakeroot dh-make […]


ProFTPd with MySQL Backend on Debian

First of all we install the needed packages: apt-get install proftpd proftpd-mysql mysql-server The configuration files of the proftpd server are in /etc/proftpd.   First we edit the file /etc/proftpd/modules.conf and insert/uncomment the following lines: LoadModule mod_sql.c LoadModule mod_sql_mysql.c   Then we should create the mysql database and the table that will contain the proftpd users: CREATE DATABASE […]