ProFTPd Server

From Wiki

Jump to: navigation, search


Setting up A FTP Server on Debian

apt-get install proftpd-basic

Choose the "Standalone" Version.

After the installation the server will be running, and will grant access to all user accounts upon the host.

The config file is in /etc/proftpd/proftpd.conf

DefaultRoot ~
// This causes all users to be presented with the contents of their home directory

DefaultRoot /direct_path/folder user //This overrides the default above.
RequireValidShell on|off


By default, proftpd has mod_delay enabled. It automatically works when people start downloading too much data too fast etc. This however can be a nuisance sometimes if you are downloading a lot of files etc. The ftp client program may return a 502 error saying some temporary error (which is caused by mod_delay) and can make continuation of ftp downloads painful. To disable mod_delay on proftpd:

vi /etc/proftpd.conf
//insert the following lines:

  <IfModule mod_delay.c>
   DelayEngine off

That should do it. Info got from:

Bandwidth Speed Limiting for FTP

If a user wants to limit their own ftp download from their account on a ftp server, they can do the following:

cd ~/
vi .ftpaccess
TransferRate RETR 20 user sburke
#where 20 = 20KB max, and sburke = username

If an admin wants to limit a user, they can do the following:

vi /etc/proftpd/proftpd.conf
TransferRate RETR 20 user sburke



vi /etc/proftpd/proftpd.conf
//change from 30 to 5 for quiet ftp server
MaxInstances                    5

More Info on:

Personal tools