Ftp – pure-ftpd home directory

ftppureftpd

After installing pure-ftpd and adding a user using the command:

pure-pw useradd <user> -u <user> -d /var/www/domain -f /var/pure-ftpd/pureftpd.passwd

pure-ftp asks me for a new password for the user. However, after logging in the user via ftp I can only do this using his linux password (and not the one set above). More, user is directed to his home at /home/ rather then given /var/www/domain.

Can someone help?

Best Answer

Maybe you've forgotten to set your puredb path in your pure-ftpd.conf file or specify the auth mode in the launching command using the -l option (see the man page for pure-ftpd).