Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-29-2007, 06:17 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Pureftpd login problem


First a warm thanks from Denmark. I really like the guides from this website.

First with a empty computer, I followed the guide, from chapter 1 to 7, 10 to 13 and 15 to 18.

It works, apache, mysql, phpmyadmin and so on. Works really good.

Then I followed the, from chapter 3 (the system has mysql installed from above guide).

This works also pretty nice, but - when I adds a user via mysql and tries to login with the specified username/password - I get a login failure. It seems that the ftp server aproves my username but not the password.

I did a guide walk through several times, but all information seems to follow the guide.

Does any one have a solution.

(excuse my bad english)

Info on login try:
Connecting to
Connected to in 0.015625 seconds, Waiting for Server Response
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 13:14. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Host type (1): Automatic Detect
USER webhost
331 User webhost OK. Password required
PASS (hidden)
530 Login authentication failed

Mysql info:
webhost 1 test 2008 2008 /www/webhost4u 100 100 * 50 0

Last edited by guldhammer; 12-29-2007 at 06:19 AM.
Old 12-29-2007, 08:20 AM   #2
LQ Newbie
Registered: Dec 2007
Posts: 7

Rep: Reputation: 0
Do all users fail authentication or just that one?

oh, i see now, webadmin is defined in a mysql table. You did remember to use MD5('password') for the password in your insert statement, yes?

Last edited by s3gfault; 12-29-2007 at 08:33 AM.
Old 12-29-2007, 08:47 AM   #3
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
what does your logfile report?
i tested it here, a non-existing user and allso i get "user OK, specify password"
it's the combination that must be correct.

This works also pretty nice, but - when I adds a user via mysql and tries to login with the specified username/password - I get a login failure.
if you create a mysql user, the user is for mysql only, not ftp.
try adding a system-user (eg: useradd -c foo -d /home/foo foo) and then set it's password using passwd foo (foo = your username, change this to the user you want)

then test it again, if it still does not work, go check /var/log/secure or other relevant logfiles


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pureftpd dellthinker Linux - Server 2 12-02-2007 06:48 PM
[pureftpd] problem running from non default ftp port karphead Linux - Networking 2 10-25-2005 10:17 AM
Pureftpd + xinetd: Writes pureftpd commandline to client when connecting bomix Linux - Software 2 03-29-2005 09:21 PM
pureftpd authentication faild problem agentqx2 Linux - Software 0 08-04-2004 02:09 AM
pureftpd problem ksgill Linux - Newbie 2 04-16-2003 08:08 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration