
29th December 2007, 12:07
|
|
Junior Member
|
|
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Pureftpd login problem
Hello.
First a warm thanks from Denmark. I really like the guides from this website.
First with a empty computer, I followed the perfect_setup_debian_etch 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 debian_etch_virtual_hosting_pureftpd_mysql_quota, 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)
|

30th December 2007, 16:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
Any errors in your log files? What's the exact login failure message you get?
|

7th January 2008, 10:49
|
|
Junior Member
|
|
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello, sorry for the long answer.
Happy newyear.
My sys log contains this, after a failed login.
Dec 30 00:46:42 guldsrv pure-ftpd: (?@**.hrnxx13.adsl-dhcp.tele.dk) [INFO] New connection from **.hrnxx13.adsl-dhcp.tele.dk
Dec 30 00:46:42 guldsrv pure-ftpd: (?@**.hrnxx13.adsl-dhcp.tele.dk) [WARNING] Wrong SQL parameters : [SELECT Dir FROM ftpd WHERE User="webhost" AND status="1" AND (ipaccess = "*" AND (ipaccess = "*" OR ipaccess LIKE "87.49.60.*")]
Dec 30 00:46:42 guldsrv pure-ftpd: (?@**.hrnxx13.adsl-dhcp.tele.dk) [INFO] PAM_RHOST enabled. Getting the peer address
Dec 30 00:46:44 guldsrv pure-ftpd: (?@**.hrnxx13.adsl-dhcp.tele.dk) [WARNING] Authentication failed for user [webhost]
Could it be, that my group (ftpgroup) and user (ftpuser) dosen't have the rights to access the /users/ directory to make its own for the user.
Groups, users and rights are not my strongest, would you take the time to guide me through.
|

8th January 2008, 17:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
What's in your /etc/pure-ftpd/db/mysql.conf? Should look like this:
Code:
MYSQLSocket /var/run/mysqld/mysqld.sock
#MYSQLServer localhost
#MYSQLPort 3306
MYSQLUser pureftpd
MYSQLPassword ftpdpass
MYSQLDatabase pureftpd
#MYSQLCrypt md5, cleartext, crypt() or password() - md5 is VERY RECOMMENDABLE uppon cleartext
MYSQLCrypt md5
MYSQLGetPW SELECT Password FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetUID SELECT Uid FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetGID SELECT Gid FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetDir SELECT Dir FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthUL SELECT ULBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthDL SELECT DLBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTASZ SELECT QuotaSize FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTAFS SELECT QuotaFiles FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
|

9th January 2008, 16:33
|
|
Junior Member
|
|
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, and to make sure - I copied the one you posted.
Still same error.
The group and user has uid/gid 2008 - same as the value in the database. After a login try that has error, I checked my home directory - and the ftp has placed my home dir correct.
But the ftp still dosent let me in.
|

10th January 2008, 16:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
Quote:
|
Originally Posted by mho
Dec 30 00:46:42 guldsrv pure-ftpd: (?@**.hrnxx13.adsl-dhcp.tele.dk) [WARNING] Wrong SQL parameters : [SELECT Dir FROM ftpd WHERE User="webhost" AND status="1" AND (ipaccess = "*" AND (ipaccess = "*" OR ipaccess LIKE "87.49.60.*")]
|
To me it looks as if a bracket is missing in the SQL statement. Should be
Code:
SELECT Dir FROM ftpd WHERE User="webhost" AND status="1" AND (ipaccess = "*" AND (ipaccess = "*" OR ipaccess LIKE "87.49.60.*"))
|

24th January 2008, 21:17
|
|
Junior Member
|
|
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yeah I got that.
I've got it working, but after a 'unwanted' reboot and reinstalll off the server - I got to start again.
Now I followed the guide.. but still the password dosen't seems to be correct.
Where to place the information you wrote? :-) (don't recall.. it's been a while..)
|

25th January 2008, 17:10
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
Do you mean /etc/pure-ftpd/db/mysql.conf?
|

27th January 2008, 09:51
|
|
Member
|
|
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
|
|
What is the output of your MySQL tables? Are you using the MD5() function to encrypt your password?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:41.
|
|
Recent comments
5 hours 31 min ago
10 hours 24 min ago
19 hours 16 min ago
20 hours 16 min ago
1 day 3 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 12 hours ago
1 day 21 hours ago
1 day 22 hours ago