Authentication failed of pure-ftpd
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
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
Solution 3
Did you run "pure-pw mkdb" after adding users?
Related videos on Youtube
Wayne
Updated on September 17, 2022Comments
-
Wayne almost 2 years
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?
-
Wayne about 14 yearsNo, but I just tried it. Same thing when I try to ftp localhost. The entry is still in the pureftp.passwd file. Is there any way to just make it user the linux /etc/passwd for authentication? I am the only user of the cloud instance so I don't need ftp after this update, I will disable it. It's irksome to get stuck on such a simple issue as ftping a file.
-
lg. about 14 yearsDid you reload the deamon also? Anyway read my other answer.
-
Guss about 13 yearsWayne - if this is how you resolved the problem, then please mark your answer as "Accepted" so that people will now that the question is closed.