Hello, .I have done all that. Giving the write request and setting the upload and download rate but it failed still.
--- On Sun, 17/4/11, Filippo Balicchia <[email protected]> wrote: From: Filippo Balicchia <[email protected]> Subject: Re: Problem in uploading the files to the ftp server. To: [email protected] Date: Sunday, 17 April, 2011, 1:16 AM Check the functionality. I use the following approach PropertiesUserManagerFactory userManagerFactory = new PropertiesUserManagerFactory(); UserManager userManager = userManagerFactory.createUserManager(); List<BaseUser> userToAdd = this.createUser(); for (BaseUser user : userToAdd) { try { List<Authority> authorities = new ArrayList<Authority>(); WritePermission writePerm = new WritePermission(); writePerm.authorize(new WriteRequest(user.getHomeDirectory())); authorities.add(writePerm); authorities.add(new ConcurrentLoginPermission(0, 0)); authorities.add(new TransferRatePermission(0, 0)); user.setAuthorities(authorities); userManager.save(user); } catch (FtpException e) { logger.info("", e); } } 2011/4/16 Sam Mizanin <[email protected]> > I have made a custom class for everything and put the functionality. Now > the problem i am facing is that even after setting the writepermission for > the home directory, i am not able to upload the file to the home directory. > > --- On Sat, 16/4/11, Filippo Balicchia <[email protected]> wrote: > > From: Filippo Balicchia <[email protected]> > Subject: Re: Problem in uploading the files to the ftp server. > To: [email protected] > Date: Saturday, 16 April, 2011, 8:58 PM > > For managing the user you have two ways > > 1: Use command line tool > 2: Use APi > > please see http://mina.apache.org/ftpserver/managing-users.html > > > Cheers > > --Filippo > > > 2011/4/16 Sam Mizanin <[email protected]> > > > Can you provide more specific context by what you mean by how do i create > > the user. > > > > --- On Sat, 16/4/11, Filippo Balicchia <[email protected]> wrote: > > > > From: Filippo Balicchia <[email protected]> > > Subject: Re: Problem in uploading the files to the ftp server. > > To: [email protected] > > Date: Saturday, 16 April, 2011, 7:37 PM > > > > Hello, > > how do you create the user ? > > > > > > --Filippo > > > > 2011/4/16 Sam Mizanin <[email protected]> > > > > > Hello, .I have a problem in uploading the files to the ftp server. > The > > > application uses a custom user and i had set the write permissions to > the > > > home directory. But still when i upload the files to the ftp server, i > > get a > > > permission denied to the error. This is the following error > > > 257 "/" is current directory.Command: TYPE IResponse: 200 Command > TYPE > > > okay.Command: PASVResponse: 227 Entering Passive Mode > > > (127,0,0,1,17,97)Command: STOR test.docResponse: 550 /test.doc: > > > Permission denied. > > >
