May be the line below in user.properties need to grant the user "write'
access...

ftpserver.user.novus.writepermission=false

Change the value to "true" and try again.

Hope this helps.

On Mon, Oct 4, 2010 at 11:05 AM, <[email protected]>wrote:

> Niklas,
>
> Thanks for quick response. I have added the relevant information at the
> end.
>
> Thanks.
>
> Bill
>
> (1) Configuration file snippet
>
> <server xmlns="http://mina.apache.org/ftpserver/spring/v1";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="
>           http://mina.apache.org/ftpserver/spring/v1
> http://mina.apache.org/ftpserver/ftpserver-1.0.xsd
>           "
>        id="myServer">
>        <listeners>
>                <nio-listener name="default" port="2121">
>                    <ssl>
>                <keystore file="./res/ftpserver.jks" password="password"
> />
>            </ssl>
>                </nio-listener>
>        </listeners>
>        <file-user-manager file="./res/conf/users.properties"
> encrypt-passwords="clear" />
> </server>
>
>
> (2) Properties file snippet
>
> ftpserver.user.novus.userpassword=
> ftpserver.user.novus.homedirectory=/home/novus/bss
> ftpserver.user.novus.enableflag=true
> ftpserver.user.novus.writepermission=false
> ftpserver.user.novus.maxloginnumber=20
> ftpserver.user.novus.maxloginperip=2
> ftpserver.user.novus.idletime=300
> ftpserver.user.novus.uploadrate=0
> ftpserver.user.novus.downloadrate=0
>
> (3) ftpd log file
>
> [ INFO] 2010-10-04 10:52:12,739 [] [] Refreshing
> org.springframework.context.support.filesystemxmlapplicationcont...@3889
> 93: displa
> y name
> [org.springframework.context.support.filesystemxmlapplicationcont...@388
> 993]; startup date [Mon Oct 04 10:52:12 CDT 2010]; r
> oot of context hierarchy
> [ INFO] 2010-10-04 10:52:13,002 [] [] Loading XML bean definitions from
> file [/home/novus/bss/apache-ftpserver-1.0.4/res/conf/ftpd-
> typical.xml]
> [ INFO] 2010-10-04 10:52:15,685 [] [] Bean factory for application
> context [org.springframework.context.support.FileSystemXmlApplic
> ationcont...@388993]:
> org.springframework.beans.factory.support.defaultlistablebeanfact...@fef
> e3f
> [ INFO] 2010-10-04 10:52:15,763 [] [] Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBean
> fact...@fefe3f: defining beans
> [org.apache.ftpserver.listener.ListenerFactory#0,org.apache.ftpserver.us
> ermanager.PropertiesUserMana
> gerFactory#0,org.apache.ftpserver.FtpServerFactory#0,myServer]; root of
> factory hierarchy
> [ INFO] 2010-10-04 10:52:16,839 [] [] FTP server started
> [ INFO] 2010-10-04 10:52:28,993 [] [163.231.197.171] CREATED
> [ INFO] 2010-10-04 10:52:29,053 [] [163.231.197.171] OPENED
> [ INFO] 2010-10-04 10:52:29,101 [] [163.231.197.171] SENT: 220 Service
> ready for new user.^M
>
> [ INFO] 2010-10-04 10:52:31,582 [] [163.231.197.171] RECEIVED: USER
> novus
> [ INFO] 2010-10-04 10:52:31,592 [novus] [163.231.197.171] SENT: 331 User
> name okay, need password for novus.^M
>
> [ INFO] 2010-10-04 10:52:33,072 [novus] [163.231.197.171] RECEIVED: PASS
> *****
> [ INFO] 2010-10-04 10:52:33,103 [novus] [163.231.197.171] Login success
> - novus
> [ INFO] 2010-10-04 10:52:33,134 [novus] [163.231.197.171] RECEIVED: SYST
> [ INFO] 2010-10-04 10:52:33,135 [novus] [163.231.197.171] SENT: 230 User
> logged in, proceed.^M
>
> [ INFO] 2010-10-04 10:52:33,136 [novus] [163.231.197.171] SENT: 215 UNIX
> Type: Apache FtpServer^M
>
> [ INFO] 2010-10-04 10:53:54,682 [novus] [163.231.197.171] RECEIVED: PASV
> [ INFO] 2010-10-04 10:53:54,697 [novus] [163.231.197.171] SENT: 227
> Entering Passive Mode (167,68,147,153,210,240)^M
>
> [ INFO] 2010-10-04 10:53:54,698 [novus] [163.231.197.171] RECEIVED: STOR
> README1.txt
> [ INFO] 2010-10-04 10:53:54,713 [novus] [163.231.197.171] SENT: 550
> /README1.txt: Permission denied.^M
>
>
> (4) User FTP session
>
> /novus/users/novus $ftp santafe 2121
> Connected to santafe.westlan.com.
> 220 Service ready for new user.
> Name (santafe:novus): novus
> 331 User name okay, need password for novus.
> Password:
> 230 User logged in, proceed.
> Remote system type is UNIX.
> ftp> passive
> Passive mode on.
> ftp> send README.txt README1.txt
> 227 Entering Passive Mode (167,68,147,153,210,240)
> 550 /README1.txt: Permission denied.
> ftp>
>
> -----Original Message-----
> From: Niklas Gustavsson [mailto:[email protected]]
> Sent: Monday, October 04, 2010 10:19 AM
> To: [email protected]
> Subject: Re: file permission and user authentication
>
> On Mon, Oct 4, 2010 at 4:53 PM,  <[email protected]>
> wrote:
> > What do I need to do with respect to user authentication that will
> allow
> > me to send a file to a remote system where I am running the FTP
> server.
> > I have tried creating a user in properties file with same user name
> and
> > password to match an existing Unix user. However, I keep on getting
> > permission denied error when I try to send/put a file.
>
> Could you provide us with the log output when you get this error and
> your configuration (with any sensitive parts removed)?
>
> /niklas
>
>

Reply via email to