Authentication failed of pure-ftpd
I installed pure-ftpd on Ubuntu 8.04 using
aptitude install pure-ftpd
What's the step to add users?
I'm new to pure-ftpd and PAM authentication, but I followed pure-ftpd documentation to do pure-pw useradd then restarted pure-ftpd but no dice.
It still says "authentication failed" when trying to connect with ftp client.
I verified that there is a /etc/pure-ftpd/pure-ftpd.passwd entry for the user that was added.
So what's the missing piece of the puzzle?
Solution 1:
I've just had a similar problem. I've added user using pure-pw useradd
and get 530 Login authentication failed
.
The solution was a symlink added to /etc/pure-ftpd/auth
directory pointing to /etc/pure-ftpd/conf/PureDB
(there is a path to file that keeps ftp users) that shows in alphabetical order before other files in auth
, e.g.
cd /etc/pure-ftpd/auth/
ln -s ../conf/PureDB 50PureDB
Then, ls
within the same directory returns:
50PureDB -> ../conf/PureDB
65unix -> ../conf/UnixAuthentication
70pam -> ../conf/PAMAuthentication
Solution 2:
Did you run "pure-pw mkdb" after adding users?
Solution 3:
I recently had an issue which was solved here:
http://download.pureftpd.org/pure-ftpd/doc/FAQ
Not enough questions link to the answers in the FAQ.
To log in, the shell assigned to your users must be listed in the /etc/shells file