Totally remove ProFTPd and all configuration files:
- apt-get remove –purge proftpd
Create proftpd user and directories for the install:
- groupadd -g 46 proftpd (Note: If gid 46 is already used, just pick another one)
- useradd -c proftpd -d /srv/ftp -g proftpd -s /usr/bin/proftpdshell -u 46 proftpd
- install -v -d -m775 -o proftpd -g proftpd /srv/ftp
- ln -v -s /bin/false /usr/bin/proftpdshell
- echo /usr/bin/proftpdshell >> /etc/shells
As an unpriveledged user, download the proftpd version 1.3.2 and configure it for install:
- cd /tmp
- wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2.tar.gz
- tar -zxvf proftpd-1.3.2.tar.gz
- cd /tmp/proftpd-1.3.2
- ./configure –prefix=/usr –sysconfdir=/etc –localstatedir=/var/run –with-modules=mod_tls
- make
As a priveledged user, install proftpd:
- make install
Configure proftpd:
- mkdir /etc/proftpd
- mv /etc/proftpd.conf /etc/proftpd/proftpd.conf
- add the following lines to /etc/proftpd/proftpd.conf
DefaultRoot ~
IdentLookups off
ServerIdent on “FTP Server ready.”
- cd /etc/init.d
- rm -f ./proftpd
- wget http://www.redneck-geek.net/blog/wp-content/proftpd.txt –output-document=proftpd
- chmod 755 proftpd
- update-rc.d proftpd defaults
Start proftp:
- /etc/init.d/proftpd start