====== ProFTPd_Server ====== ===== 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 ==== mod_delay ==== 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: DelayEngine off That should do it. Info got from: http://www.castaglia.org/proftpd/modules/mod_delay.html ==== 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 Ref: http://www.linuxquestions.org/questions/showthread.php?t=211807 ==== Other ==== vi /etc/proftpd/proftpd.conf //change from 30 to 5 for quiet ftp server MaxInstances 5 ---- More Info on: ---- http://www.debian-administration.org/articles/228