Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unable to login into apache ftp server while using database user manager: while entering username and password,I am getting following error in log file:

[ INFO] 2013-02-07 20:51:07,779 [] [0:0:0:0:0:0:0:1] RECEIVED: USER piyush
[ INFO] 2013-02-07 20:51:07,781 [piyush] [0:0:0:0:0:0:0:1] SENT: 331 User name okay, need password for piyush.

[ INFO] 2013-02-07 20:51:07,784 [piyush] [0:0:0:0:0:0:0:1] RECEIVED: PASS *****
[ WARN] 2013-02-07 20:51:07,785 [piyush] [0:0:0:0:0:0:0:1] User failed to log in
[ WARN] 2013-02-07 20:51:08,285 [piyush] [0:0:0:0:0:0:0:1] Login failure - piyush
[ INFO] 2013-02-07 20:51:08,286 [piyush] [0:0:0:0:0:0:0:1] SENT: 530 Authentication failed.

[ INFO] 2013-02-07 20:51:08,286 [piyush] [0:0:0:0:0:0:0:1] RECEIVED: QUIT
[ INFO] 2013-02-07 20:51:08,290 [piyush] [0:0:0:0:0:0:0:1] SENT: 221 Goodbye.

[ INFO] 2013-02-07 20:51:08,291 [piyush] [0:0:0:0:0:0:0:1] CLOSED

here is my xml file ftpd-typical.xml:

<?xml version="1.0" encoding="UTF-8"?>
        Licensed to the Apache Software Foundation (ASF) under one or more
        contributor license agreements. See the NOTICE file distributed with
        this work for additional information regarding copyright ownership.
        The ASF licenses this file to you under the Apache License, Version
        2.0 (the "License"); you may not use this file except in compliance
        with the License. You may obtain a copy of the License at Unless required by
        applicable law or agreed to in writing, software distributed under the
        License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
        CONDITIONS OF ANY KIND, either express or implied. See the License for
        the specific language governing permissions and limitations under the
<server xmlns=""
        <nio-listener name="default" port="2121" />
    <db-user-manager encrypt-passwords="salted">
            <beans:bean class="org.apache.commons.dbcp.BasicDataSource" >
                <beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />
                <beans:property name="url" value="jdbc:mysql://localhost/apache_test" />
                <beans:property name="username" value="amy" />
                <beans:property name="password" value="piyush" />
        <insert-user>INSERT INTO FTP_USER (userid, userpassword,
            homedirectory, enableflag, writepermission, idletime, uploadrate,
            downloadrate) VALUES ('{userid}', '{userpassword}',
            {enableflag}, {writepermission}, {idletime},
            <update-user>UPDATE FTP_USER SET
                WHERE userid='{userid}'
            <delete-user>DELETE FROM FTP_USER WHERE userid = '{userid}'
            <select-user>SELECT userid, userpassword, homedirectory,
                enableflag, writepermission, idletime, uploadrate, downloadrate,
                maxloginnumber, maxloginperip FROM
                FTP_USER WHERE userid = '{userid}'
            <select-all-users>SELECT userid FROM FTP_USER ORDER BY userid
            <is-admin>SELECT userid FROM FTP_USER WHERE userid='{userid}'
            <authenticate>SELECT userpassword from FTP_USER WHERE
share|improve this question

The proble not because of passowrd, It could be invalid username, So check your username and passwords in the file.

FILE : ftpserver.user.e101.userpassword=abs123 for

Here UserName=e101 Password=abs123

or ftpserver.user.admin.userpassword=21232F297A57A5A743894A0E4A801FC3 for Here UserName=admin Password=XXXXXXXXXX

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.