Pure-FTPD - 530 Login authentication failed

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
XSun
Beiträge: 30
Registriert: 06.06.2011 15:35:59

Pure-FTPD - 530 Login authentication failed

Beitrag von XSun » 25.06.2011 12:25:07

Guten Morgen,

ich hab ein kleines Problem mit Pure-FTPD. Leider kann ich mich mit keinem User einloggen den ich anlege.

Das FTP-Protokoll gibt aus:
Code:

Code: Alles auswählen

Antwort:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Antwort:	220-You are user number 1 of 50 allowed.
Antwort:	220-Local time is now 20:47. Server port: 21.
Antwort:	220-This is a private system - No anonymous login
Antwort:	220-IPv6 connections are also welcome on this server.
Antwort:	220 You will be disconnected after 15 minutes of inactivity.
Befehl:	USER XXXXX1
Antwort:	331 User XXXXX1 OK. Password required
Befehl:	PASS *******
Antwort:	530 Login authentication failed
Fehler:	Kritischer Fehler
Fehler:	Herstellen der Verbindung zum Server fehlgeschlagen

Syslog
http://nopaste.info/32cc1df2b2.html

Konfiguration:

/conf

AltLog

Code: Alles auswählen

clf:/var/log/pure-ftpd/transfer.log
BrokenClientsCompatibility ChrootEveryone DisplayDotFiles DontResolves FSCharset

Code: Alles auswählen

UTF-8
MinUID MySQLConfigFile

Code: Alles auswählen

/etc/pure-ftpd/db/mysql.conf
NoAnonymous PAMAuthentication PureDB

Code: Alles auswählen

/etc/pure-ftpd/pureftpd.pdb
TLS UnixAuthentication VerboseLog /auth

30mysql

Code: Alles auswählen

/etc/pure-ftpd/db/mysql.conf
65unix 70pam /db

mysql.conf

Code: Alles auswählen

##############################################
#                                            #
# Sample Pure-FTPd Mysql configuration file. #
# See README.MySQL for explanations.         #
#                                            #
##############################################


# Optional : MySQL server name or IP. Don't define this for unix sockets.

MYSQLServer     127.0.0.1


# Optional : MySQL port. Don't define this if a local unix socket is used.

# MYSQLPort       3306


# Optional : define the location of mysql.sock if the server runs on this host.

# MYSQLSocket      /var/run/mysqld/mysqld.sock


# Mandatory : user to bind the server as.

MYSQLUser       ispconfig


# Mandatory : user password. You must have a password.

MYSQLPassword   XXXXXXXXXX


# Mandatory : database to open.

MYSQLDatabase   dbispconfig


# Mandatory : how passwords are stored
# Valid values are : "cleartext", "crypt", "md5" and "password"
# ("password" = MySQL password() function)
# You can also use "any" to try "crypt", "md5" *and* "password"

MYSQLCrypt      crypt


# In the following directives, parts of the strings are replaced at
# run-time before performing queries :
#
# \L is replaced by the login of the user trying to authenticate.
# \I is replaced by the IP address the user connected to.
# \P is replaced by the port number the user connected to.
# \R is replaced by the IP address the user connected from.
# \D is replaced by the remote IP address, as a long decimal number.
#
# Very complex queries can be performed using these substitution strings,
# especially for virtual hosting.


# Query to execute in order to fetch the password

MYSQLGetPW      SELECT password FROM ftp_user WHERE active = 'y' AND server_id = '1' AND username="\L"


# Query to execute in order to fetch the system user name or uid

MYSQLGetUID     SELECT uid FROM ftp_user WHERE active = 'y' AND server_id = '1' AND username="\L"


# Optional : default UID - if set this overrides MYSQLGetUID

#MYSQLDefaultUID 1000


# Query to execute in order to fetch the system user group or gid

MYSQLGetGID     SELECT gid FROM ftp_user WHERE active = 'y' AND server_id = '1' AND username="\L"


# Optional : default GID - if set this overrides MYSQLGetGID

#MYSQLDefaultGID 1000


# Query to execute in order to fetch the home directory

MYSQLGetDir     SELECT dir FROM ftp_user WHERE active = 'y' AND server_id = '1' AND username="\L"


# Optional : query to get the maximal number of files 
# Pure-FTPd must have been compiled with virtual quotas support.

MySQLGetQTAFS  SELECT quota_files FROM ftp_user WHERE active = 'y' AND server_id = '1' AND quota_files != '-1' AND username="\L"


# Optional : query to get the maximal disk usage (virtual quotas)
# The number should be in Megabytes.
# Pure-FTPd must have been compiled with virtual quotas support.

MySQLGetQTASZ  SELECT quota_size FROM ftp_user WHERE active = 'y' AND server_id = '1' AND quota_size != '-1' AND username="\L"


# Optional : ratios. The server has to be compiled with ratio support.

MySQLGetRatioUL SELECT ul_ratio FROM ftp_user WHERE active = 'y' AND server_id = '1' AND ul_ratio != '-1' AND username="\L"
MySQLGetRatioDL SELECT dl_ratio FROM ftp_user WHERE active = 'y' AND server_id = '1' AND dl_ratio != '-1' AND username="\L"


# Optional : bandwidth throttling.
# The server has to be compiled with throttling support.
# Values are in KB/s .

MySQLGetBandwidthUL SELECT ul_bandwidth FROM ftp_user WHERE active = 'y' AND server_id = '1' AND ul_bandwidth != '-1' AND username="\L"
MySQLGetBandwidthDL SELECT dl_bandwidth FROM ftp_user WHERE active = 'y' AND server_id = '1' AND dl_bandwidth != '-1' AND username="\L"

# Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
# 1) You know what you are doing.
# 2) Real and virtual users match.

# MySQLForceTildeExpansion 1


# If you upgraded your tables to transactionnal tables (Gemini,
# BerkeleyDB, Innobase...), you can enable SQL transactions to
# avoid races. Leave this commented if you are using the
# traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.

MySQLTransactions On

Weis da jemand eine Lösung? Danke im Vorraus

P.S Neu Installation hta auch nichts gebracht

wilfried
Beiträge: 153
Registriert: 04.12.2009 12:32:16

Re: Pure-FTPD - 530 Login authentication failed

Beitrag von wilfried » 25.06.2011 14:33:54

was sagt denn dein syslog zu einem login-Versuch?
Debian testing (wheezy)
Kernel Linux 3.2.0-3-686-pae
Mainboard: Fujitsu D3041-A1
CPU: Intel Pentium Dual-Core E5800 @ 3.20GHz, 4 GB RAM
Grafik: ATI RV710 [Radeon HD 4350]
eth0: RTL8111/8168B PCI Express Gigabit Ethernet

XSun
Beiträge: 30
Registriert: 06.06.2011 15:35:59

Re: Pure-FTPD - 530 Login authentication failed

Beitrag von XSun » 25.06.2011 14:35:05

Code: Alles auswählen

Jun 23 22:10:52 debian pure-ftpd: (XXXXt-dialin.net) [INFO] New connection from XXXX.dip.t-dialin.net
Jun 23 22:10:52 debian pure-ftpd: (XXXXt-dialin.net) [ERROR] The SQL server seems to be down [Access denied for user 'root'@'localhost' (using password: YES)]
Jun 23 22:10:52 debian pure-ftpd: (XXXXt-dialin.net) [INFO] PAM_RHOST enabled. Getting the peer address
Jun 23 22:10:58 debian pure-ftpd: (XXXXt-dialin.net) [WARNING] Authentication failed for user [uk_media1]
Jun 23 22:10:59 debian pure-ftpd: (XXXXt-dialin.net) [INFO] Logout.

wilfried
Beiträge: 153
Registriert: 04.12.2009 12:32:16

Re: Pure-FTPD - 530 Login authentication failed

Beitrag von wilfried » 25.06.2011 18:32:48

deinstallier nochmal alles, und geh dann mal nach dieser Anleitung vor:
http://linux.justinhartman.com/PureFTPd ... _and_Setup

bevor du aber nach der Anleitung neu installierst, vergewissere dich, ob tatsächlich alles deinstalliert ist, mit: ps -A | grep pure
falls pure-ftpd-mysql noch vorhanden ist und läuft, kill den Prozess spätestens bevor du den neu installierten pure-ftp startest.

die Zeile in /etc/pure-ftpd/conf/PureDB "/etc/pure-ftpd/pureftpd.pdb"
muss allerdings lauten:
/etc/pureftpd.pdb
oder du musst die Datei nach /etc/pure-ftpd/ verschieben.

hoffe es klappt jetzt
Gruss, Wilfried
Debian testing (wheezy)
Kernel Linux 3.2.0-3-686-pae
Mainboard: Fujitsu D3041-A1
CPU: Intel Pentium Dual-Core E5800 @ 3.20GHz, 4 GB RAM
Grafik: ATI RV710 [Radeon HD 4350]
eth0: RTL8111/8168B PCI Express Gigabit Ethernet

XSun
Beiträge: 30
Registriert: 06.06.2011 15:35:59

Re: Pure-FTPD - 530 Login authentication failed

Beitrag von XSun » 25.06.2011 18:35:18

Problem ist halt das Pure-FTPD mit ISPConfig zusammen arbeitet, schadet das nicht wenn ich das deinstallier und neu installier?

wilfried
Beiträge: 153
Registriert: 04.12.2009 12:32:16

Re: Pure-FTPD - 530 Login authentication failed

Beitrag von wilfried » 25.06.2011 19:08:52

wilfried hat geschrieben:deinstallier nochmal alles, und geh dann mal nach dieser Anleitung vor:
http://linux.justinhartman.com/PureFTPd ... _and_Setup
bevor du aber nach der Anleitung neu installierst, vergewissere dich, ob tatsächlich alles deinstalliert ist, mit: ps -A | grep pure
falls pure-ftpd-mysql noch vorhanden ist und läuft, kill den Prozess spätestens bevor du den neu installierten pure-ftp startest.
die Zeile in /etc/pure-ftpd/conf/PureDB "/etc/pure-ftpd/pureftpd.pdb"
muss allerdings lauten:
/etc/pureftpd.pdb
oder du musst die Datei nach /etc/pure-ftpd/ verschieben.
hoffe es klappt jetzt
Gruss, Wilfried
sorry, hierbei hatte ich ganz übersehen, dass gier gar nicht mysql verwendet wird!
:oops:
hier hab ich noch eine 2. copy and paste Anleitung mit mysql,
ISPConfig sollte damit auch funktionieren,
brauchst dafür auch nicht deinstallieren, musst halt nur die entsprechenden Variablen anpassen.
Debian testing (wheezy)
Kernel Linux 3.2.0-3-686-pae
Mainboard: Fujitsu D3041-A1
CPU: Intel Pentium Dual-Core E5800 @ 3.20GHz, 4 GB RAM
Grafik: ATI RV710 [Radeon HD 4350]
eth0: RTL8111/8168B PCI Express Gigabit Ethernet

XSun
Beiträge: 30
Registriert: 06.06.2011 15:35:59

Re: Pure-FTPD - 530 Login authentication failed

Beitrag von XSun » 25.06.2011 20:00:26

Kannst du mir den Link schicken? :hail: :THX:

wilfried
Beiträge: 153
Registriert: 04.12.2009 12:32:16

Re: Pure-FTPD - 530 Login authentication failed

Beitrag von wilfried » 26.06.2011 07:55:48

XSun hat geschrieben:Kannst du mir den Link schicken? :hail: :THX:
http://www.howtoforge.com/pureftpd_mysq ... al_hosting

:roll:
Debian testing (wheezy)
Kernel Linux 3.2.0-3-686-pae
Mainboard: Fujitsu D3041-A1
CPU: Intel Pentium Dual-Core E5800 @ 3.20GHz, 4 GB RAM
Grafik: ATI RV710 [Radeon HD 4350]
eth0: RTL8111/8168B PCI Express Gigabit Ethernet

Antworten