Hello David,

Thanks for the reply. Following your instructions I was able to add a user
to the users.properties text file.

Step 1. Stopped the Apache FtpServer ftpd service

Step 2: edited the ftpd-typical.xml text file so the passwords are nolonger
encrypted
in the users.properties text file.

*    <!-- it appears the default is encrypt-passwords="true" if not
specified -->
    <!--    <file-user-manager file="./res/conf/users.properties" /> -->
    <file-user-manager file="./res/conf/users.properties"
encrypt-passwords="false" />*

Step 3: add any new users (username and passwords) to the users.properties
text file

Step 4: install the service again

*C:\apache-ftpserver-1.0.0\bin\service install ftpd
c:\apache-ftpserver-1.0.0\res\conf\ftpd-typical.xml*

Step 5: start the service

*ftpdw*

alternative is to start the service using Windows Control Panel >
Administrative Tools > Services. It appears by default the Apache FtpServer
ftpd service is set to Manual instead of Automatic start.

Step 6: test the ftp server is working with your new username and password

ftp
open localhost 2121
user: jjensen
password: normal
230 User logged in, proceed.

Everything should work.

>From an administration procedure, whenever I need to add a user or make any
changes, I must stop and then start the service, right?

Thanks,

Jeff Jensen



On Thu, May 14, 2009 at 10:20 AM, Jeff Jensen <[email protected]>wrote:

> 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
>
> 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