Thank you very much,

I will take a look around the interfaces you suggest. I did not get any 
attached files though.


Genti

From: John Hartnup [mailto:john.hart...@gmail.com]
Sent: Wednesday, October 16, 2013 9:58 AM
To: ftpserver-users@mina.apache.org
Subject: Re: directory structure permissions & account locking

The answer to any question like this is to customise the Filesystem classes to 
do what you want.

I've attached some Java files (not warrantied for any particular purpose)  for 
"DelegatingFilesystem" -- you can use one of these as the top of your 
filesystem hierarchy, with real, separately configured, filesystems as 
delegates, which appear as subdirectories.

To grok these, you'll need to grok the FilesystemView, FilesystemViewFactory 
and SshFile interfaces - read the interfaces and they'll probably make sense.



On 16 October 2013 14:50, Gentian Hila 
<gh...@commercehub.com<mailto:gh...@commercehub.com>> wrote:
We have a use case where we would want to have two subdirectories under the 
user home directory incoming and outgoing.  Each of them would have a 
hierarchical path.

However, we want:

User have read-only permissions for the outgoing directory and its children.
User have read-write permissions for the incoming directory and its children.
Users cannot change the structure of the directories ( I think we can achieve 
that by disabling MKDIR and RMD).
Users cannot delete a file ( we can achieve that by disabling DELE command).

However I do not see a way how to apply different permissions to different 
folders either through configuration or through extending the API source code 
yet.

Is this possible at all? Has anybody attempted to do this?




We also have a use case that basically requires that we lock an account after 
several failed logins. I did not see a mechanism for account locking and 
unlocking when this happens?

Am I missing something?


Genti



--
"There is no way to peace; peace is the way"

Reply via email to