Current time: 11-15-2024, 10:07 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] proftpd - error - login incorrect
Author Message
shico Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #1
Exclamation [SOLVED] proftpd - error - login incorrect
hi,
i installed ispcp on centos5.3
i had some errors with proftpd about
error: no valid servers configured
and i solved it by editing the /etc/hosts file

but now i had error of 530 Login incorrect when i am trying to use the ftp
and the login details are correct...

help...
(This post was last modified: 06-10-2009 12:08 AM by BeNe.)
04-23-2009 08:08 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: proftpd - error - login incorrect
Please start proftpd in debug modus.
There are many Topics about it in the Forum around here.

Greez BeNe
04-23-2009 08:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
shico Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #3
RE: proftpd - error - login incorrect
how i start it in debug mode?
04-23-2009 08:45 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: proftpd - error - login incorrect
Quote:There are many Topics about it in the Forum around here.
Please use the ForumSearch!

Greez BeNe
04-23-2009 08:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
shico Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #5
RE: proftpd - error - login incorrect
its said : (Login failed): No such user found.
in the pannel there is such user...
??
04-23-2009 11:37 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: proftpd - error - login incorrect
Did you start now proftpd in Debug Modus ?
Please stop your proftpd and start it with:
Code:
# proftpd -n -d5
Try to connect and post the full output here.
Also you proftpd.conf (clear your PW in the config) and modules.conf.

Greez BeNe
04-23-2009 11:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
shico Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #7
RE: proftpd - error - login incorrect
the post from the debug:
localhost.localdomain - ProFTPD 1.3.2 (stable) (built Sun Mar 15 22:00:55 CET 2009) standalone mode STARTUP
localhost.localdomain (myIp) - session requested from client in unknown class
localhost.localdomain (myIp) - AuthOrder in effect, resetting auth module order
localhost.localdomain (myIp) - connected - local : serverIp:21
localhost.localdomain (myIp) - connected - remote : myIp:9422
localhost.localdomain (myIp) - FTP session opened.
localhost.localdomain (myIp) - dispatching PRE_CMD command 'USER someUser@someDomain' to mod_tls
localhost.localdomain (myIp) - dispatching PRE_CMD command 'USER someUser@someDomain' to mod_core
localhost.localdomain (myIp) - dispatching PRE_CMD command 'USER someUser@someDomain' to mod_core
localhost.localdomain (myIp) - dispatching PRE_CMD command 'USER someUser@someDomain' to mod_delay
localhost.localdomain (myIp) - dispatching PRE_CMD command 'USER someUser@someDomain' to mod_auth
localhost.localdomain (myIp) - dispatching CMD command 'USER someUser@someDomain' to mod_auth
localhost.localdomain (myIp) - dispatching POST_CMD command 'USER someUser@someDomain' to mod_sql
localhost.localdomain (myIp) - dispatching POST_CMD command 'USER someUser@someDomain' to mod_delay
localhost.localdomain (myIp) - dispatching LOG_CMD command 'USER someUser@someDomain' to mod_sql
localhost.localdomain (myIp) - dispatching LOG_CMD command 'USER someUser@someDomain' to mod_log
localhost.localdomain (myIp) - dispatching PRE_CMD command 'PASS (hidden)' to mod_tls
localhost.localdomain (myIp) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
localhost.localdomain (myIp) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
localhost.localdomain (myIp) - dispatching PRE_CMD command 'PASS (hidden)' to mod_sql
localhost.localdomain (myIp) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
localhost.localdomain (myIp) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain (myIp) - dispatching CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain (myIp) - USER someUser@someDomain (Login failed): No such user found.
localhost.localdomain (myIp) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_sql
localhost.localdomain (myIp) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
localhost.localdomain (myIp) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_sql
localhost.localdomain (myIp) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
localhost.localdomain (myIp) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
localhost.localdomain (myIp) - FTP session closed.

proftpd.conf:

#
# ispCP � (OMEGA) a Virtual Hosting Control System
#
# @copyright 2001-2006 by moleSoftware GmbH
# @copyright 2006-2008 by ispCP | http://isp-control.net
# @version SVN: $Id$
# @link http://isp-control.net
# @author ispCP Team
#
# @license
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MPL General Public License as published by the Free Software
# Foundation; either version 1.1 of the License, or (at your option) any later
# version.
# You should have received a copy of the MPL Mozilla Public License along with
# this program; if not, write to the Open Source Initiative (OSI)
# http://opensource.org | osi@opensource.org
#
################################################################################​

<IfModule mod_dso.c>
LoadModule mod_sql.c
LoadModule mod_sql_mysql.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_sql.c
</IfModule>

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off

ServerName "MyServer"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

AllowOverwrite on
UseReverseDNS off
IdentLookups off
AllowStoreRestart on
AllowForeignAddress on

LogFormat traff "%b %u"

TimeoutLogin 120
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
#DisplayFirstChdir message
DisplayChdir .message

ListOptions "-l"
#LsDefaultOptions "-l"

DenyFilter \*.*/

DefaultRoot ~

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd off

# Port 21 is the standard FTP port.
Port 21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
#PassivePorts 49152 65534

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User nobody
Group nobody

# Normally, we want files to be overwriteable.

<Directory /*>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
HideNoAccess on
</Directory>

<Limit ALL>
IgnoreHidden on
</Limit>

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile off

<Global>
RootLogin off
TransferLog /var/log/proftpd/xferlog
ExtendedLog /var/log/proftpd/ftp_traff.log read,write traff
PathDenyFilter "\.quota$"
</Global>

#
# SSL via TLS
#
#<IfModule mod_tls.c>
# TLSEngine off # on for use of TLS
# TLSLog /var/log/proftpd/ftp_ssl.log # where to log to
# TLSProtocol SSLv23 # SSLv23 or TLSv1
# TLSOptions NoCertRequest # either to request the certificate or not
# TLSRSACertificateFile /etc/proftpd/ssl.crt # SSL certfile
# TLSRSACertificateKeyFile /etc/proftpd/ssl.key # SSL keyfile
# TLSVerifyClient off # client verification
#</IfModule>

#
# ISPCP Quota management;
#
<IfModule mod_quotatab.c>
QuotaEngine on
QuotaShowQuotas on
QuotaDisplayUnits Mb

SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail FROM quotal$
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_used, files_xfer_used FROM quotatallies WHERE name = '%{0}' AND $
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + $
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" quotatallies

QuotaLock /var/run/proftpd/tally.lock
QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=de...2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>

# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_sql.c mod_auth_pam.c* mod_auth_unix.c

# ispCP SQL Managment
SQLBackend mysql
SQLAuthTypes Crypt
SQLAuthenticate on
SQLConnectInfo ispcp@localhost vftp myFtpPass
SQLUserInfo ftp_users userid passwd uid gid homedir shell
SQLGroupInfo ftp_group groupname gid members
SQLMinUserUID 2000
SQLMinUserGID 2000

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
Include /etc/proftpd/ispcp/*
04-24-2009 03:14 AM
Find all posts by this user Quote this message in a reply
Alekska Offline
Newbie
*

Posts: 6
Joined: Apr 2009
Reputation: 0
Post: #8
RE: proftpd - error - login incorrect
Are you using Debian 5.0??

make a backup of /etc/proftpd/proftpd.conf:

Code:
cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf.bak

And remplace it with /etc/proftpd.conf:

Code:
cp -fv /etc/proftpd.conf /etc/proftpd/proftpd.conf

/*EDIT*/
Also, you need to uncomment these lines in /etc/proftpd/modules.conf

Code:
LoadModule mod_sql.c
LoadModule mod_sql_mysql.c
(This post was last modified: 04-24-2009 03:45 AM by Alekska.)
04-24-2009 03:39 AM
Find all posts by this user Quote this message in a reply
shico Offline
Newbie
*

Posts: 7
Joined: Apr 2009
Reputation: 0
Post: #9
RE: proftpd - error - login incorrect
Alekska - i am using centos 5.3 (i wrote in the first post)
dont have the file /etc/proftpd/proftpd.conf
dont have the file /etc/proftpd/modules.conf
these lines are uncomment in /etc/proftpd.conf
LoadModule mod_sql.c
LoadModule mod_sql_mysql.c
04-24-2009 05:45 PM
Find all posts by this user Quote this message in a reply
fhawk Offline
Junior Member
*

Posts: 29
Joined: Mar 2009
Reputation: 1
Post: #10
RE: proftpd - error - login incorrect
backup and then edit /etc/proftpd.conf
change:
DisplayFirstChdir message
to:
#DisplayFirstChdir message
change:
AuthOrder mod_sql.c mod_auth_pam.c* mod_auth_unix.c
to:
AuthOrder mod_sql.c
(This post was last modified: 05-02-2009 09:12 PM by fhawk.)
05-02-2009 09:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)