[PREV] | [UP] | [NEXT]

Setting up Pure-FTPD

First install pure-ftpd:
apt-get install pure-ftpd-common pure-ftpd-ldap
(run as daemon, not from inetd)

Configuration: you need to edit some files. Examples are in the /examples directory. I recommend you do a diff between the original and the example before you start editing.

  • edit /etc/pure-ftpd/db/ldap.conf
  • rm /etc/pure-ftpd/auth/65unix
  • echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone
  • echo "yes" > /etc/pure-ftpd/conf/CreateHomeDir
  • echo "no" > /etc/pure-ftpd/conf/PAMAuthentication
  • echo "113 002" > /etc/pure-ftpd/conf/Umask
  • echo "/bin/false" >> /etc/shells

    In the web interface, create a test user and enable ftp for this user. Try loging in. Pay attention to the homedir, does the changeroot work?

    If the above works, disable ftp access for the test user in the web interface and try login in again. If this succeeds, there is a bug in your pureftpd configuration!

    [PREV] | [UP] | [NEXT]