FTP problems afther upgrade

Raevmiza

Verified User
Joined
Jan 22, 2009
Messages
6
Dera users

Yesterday i upgraded ProFTPD
Today I saw that no user can login in to the FTP
The users are stored in the proftpd.passwd. But when they try to login they get een error aboutwrong username or password. I as admin have no problem logging in to the admin account. Also the users have no problems to login in to DA section.
What can be the problem?

Thanx
 
It wasn't there so i added
But still they still can not login

Code:
# Define the log formats
LogFormat                       default "%h %l %u %t \"%r\" %s %b"
LogFormat                       auth    "%v [%P] %h %t \"%r\" %s"

# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
#TLSEngine                      on
#TLSRequired                    on
#TLSRSACertificateFile          /etc/pki/tls/certs/proftpd.pem
#TLSRSACertificateKeyFile       /etc/pki/tls/certs/proftpd.pem
#TLSCipherSuite                 ALL:!ADH:!DES
#TLSOptions                     NoCertRequest
#TLSVerifyClient                off
##TLSRenegotiate                ctrl 3600 data 512000 required off timeout 300
#TLSLog                         /var/log/proftpd/tls.log

# SQL authentication Dynamic Shared Object (DSO) loading
# See README.DSO and howto/DSO.html for more details.
#<IfModule mod_dso.c>
#  LoadModule mod_ban.c
#  LoadModule mod_ifsession.c
#  LoadModule mod_quotatab.c
#  LoadModule mod_quotatab_file.c
#  LoadModule mod_sql.c
#  LoadModule mod_sql_mysql.c
#  LoadModule mod_sql_postgres.c
#</IfModule>

AuthUserFile                    /etc/proftpd.passwd

# A basic anonymous configuration, with an upload directory.
#<Anonymous ~ftp>
#  User                         ftp
#  Group                                ftp
#  AccessGrantMsg               "Anonymous login ok, restrictions apply."
# 
#  # We want clients to be able to login with "anonymous" as well as "ftp"
#  UserAlias                    anonymous ftp
#
#  # Limit the maximum number of anonymous logins
#  MaxClients                   10 "Sorry, max %m users -- try again later"
#
#  # Put the user into /pub right after login
#  #DefaultChdir                        /pub
#
 
Code:
mv /etc/proftpd.conf /etc/proftpd.conf.back
cp /usr/local/directadmin/data/templates/proftpd.conf /etc/proftpd.conf
HOSTNAME=`hostname`
IP=`grep $HOSTNAME /etc/hosts | awk '{print $1}'`
perl -pi -e "s#\|SERVER_IP\|#$IP#" /etc/proftpd.conf
/etc/init.d/proftpd restart
 
Thanx.
What I did I just add the folowing line in to the conf file

Include /etc/proftpd.vhosts.conf

I don't know if its ok but it's working now
 
For future reference about this problem. You could check if user and group of proftpd.passwd file configured in your proftpd.conf

Lets say that user ftp1 and group ftp1 is running proftpd server. In order to access file that contain virtual username/password it need to have privileges do to that.

You can solve this i two ways change chown of file name proftpd.passwd or change user/group that run proftpd to match proftd.conf

Danijel,
 
Back
Top