See my answer below,

2009/5/14 Jeff Jensen <[email protected]>:
> Hello Apache FtpServer Users,
>
> How do I create a new user?
>
> Background
> I unzipped Apache FtpServer in c:\apache-ftpserver-1.0.0
>
> under the resources directory is the users.properties text file
> (C:\apache-ftpserver-1.0.0\res\conf\users.properties)
>
> Using a text editor, I copied and pasted the annonymous user and changed to
> a new username and password, so it looks like this
>
> *# 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
> #
> #  http://www.apache.org/licenses/LICENSE-2.0
> #
> # 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 License.
>
> # Password is "admin"
> ftpserver.user.admin.userpassword=21232F297A57A5A743894A0E4A801FC3
> ftpserver.user.admin.homedirectory=./res/home
> ftpserver.user.admin.enableflag=true
> ftpserver.user.admin.writepermission=true
> ftpserver.user.admin.maxloginnumber=0
> ftpserver.user.admin.maxloginperip=0
> ftpserver.user.admin.idletime=0
> ftpserver.user.admin.uploadrate=0
> ftpserver.user.admin.downloadrate=0
>
> ftpserver.user.jjensen.userpassword=normal
> ftpserver.user.jjensen.homedirectory=./res/home
> ftpserver.user.jjensen.enableflag=true
> ftpserver.user.jjensen.writepermission=false
> ftpserver.user.jjensen.maxloginnumber=20
> ftpserver.user.jjensen.maxloginperip=2
> ftpserver.user.jjensen.idletime=300
> ftpserver.user.jjensen.uploadrate=4800
> ftpserver.user.jjensen.downloadrate=4800

You can see a  "weird" password for admin , that means that we don't
store the plain text password but a MD5 hash of the password string.
So in order to be able to log-in you'll have to calculate the md5 of
"normal" and store that string in the userpassword= property.
It is possible though that you use plain-text passwords with a
configuration similar to this one:

<file-user-manager file="users.properties" encrypt-passwords="false" />





> ftpserver.user.anonymous.userpassword=1
> ftpserver.user.anonymous.homedirectory=./res/home
> ftpserver.user.anonymous.enableflag=true
> ftpserver.user.anonymous.writepermission=false
> ftpserver.user.anonymous.maxloginnumber=20
> ftpserver.user.anonymous.maxloginperip=2
> ftpserver.user.anonymous.idletime=300
> ftpserver.user.anonymous.uploadrate=4800
> ftpserver.user.anonymous.downloadrate=4800*
>
> The problem is I'm unable to login with the username jjensen and password
> normal. Any ideas what I'm doing wrong?
>
> I stopped and started the Apache FtpServer ftpd service but still unable to
> login. Note, I can login with the admin admin username and password.
>
> Thanks for your assistance,
>
> --
> Jeffery J Jensen, PE
> Adjunct Instructor
> University of Nevada Las Vegas (UNLV)
> College of Civil and Environmental Engineering
> 4505 S Maryland Pkwy - Box 454015
> Las Vegas NV 89154-4015
> email: [email protected]
> http://faculty.unlv.edu/jensen/
>

Reply via email to