Ciao guys,
this is hilarious, I don't know but I had ended up with having a
$USERNAME dir inside the user $HOME_DIR whose name was
programmatically set to USERNAME, hence I was erroneously thinking
that users where able to navigate beyond their home dir.

Thx anyway,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041  Camaiore (LU)
Italy

phone: +39 0584983027
fax:      +39 0584983027
mob:    +39 333 8128928


http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------



On Thu, May 7, 2009 at 11:35 PM, David Latorre <[email protected]> wrote:
> 2009/5/7 Simone Giannecchini <[email protected]>:
>> Ciao Sai,
>> thanks for the feedback, but I am already doing that in my custom
>> UserManager I load users from a db table and I create BaseUsers
>> instances on the fly, setting the Home Directory correctly, however as
>> I log in with one of my user the cwd is set to the root ftp dir. I
>> check how the NativeFileSystem gets created and that seems to be the
>> default behavior. I admit that I did investigate too much yet, so I
>> might have made some other mistakes along the line. Any other
>> suggestions?
>
> If you are using the NativeFileSystem implementation there's not even
> a place where you configure a rootDir, from NativeFileSystemView:
>
>      String rootDir = user.getHomeDirectory();
>
> So unless you're using a different Filesystem implementation I'd say
> you're good to go. Actually, you cannot configure a FTP root dir
> anywhere!
>
>
>
>
>>
>> Simone.
>> -------------------------------------------------------
>> Ing. Simone Giannecchini
>> GeoSolutions S.A.S.
>> Owner - Software Engineer
>> Via Carignoni 51
>> 55041  Camaiore (LU)
>> Italy
>>
>> phone: +39 0584983027
>> fax:      +39 0584983027
>> mob:    +39 333 8128928
>>
>>
>> http://www.geo-solutions.it
>> http://simboss.blogspot.com/
>> http://www.linkedin.com/in/simonegiannecchini
>>
>> -------------------------------------------------------
>>
>>
>>
>> On Thu, May 7, 2009 at 8:58 PM, Sai Pullabhotla
>> <[email protected]> wrote:
>>> The BaseUser class has a home directory and users are restricted to that
>>> directory. So, all you have to do is set the home directory of the user to
>>> the appropriate directory.
>>>
>>> Sai Pullabhotla
>>> Phone: (402) 408-5753
>>> Fax: (402) 408-6861
>>> www.jMethods.com
>>>
>>>
>>>
>>> On Thu, May 7, 2009 at 12:58 PM, Simone Giannecchini 
>>> <[email protected]>wrote:
>>>
>>>> Dear List,
>>>> I am pretty new to the apache ftp server, but so far I can say that it
>>>> look great.
>>>>
>>>> I am trying to wire it up within my own app. I already hooked up my
>>>> own usermanager.
>>>> My question now is, there is a simple way to limit user to their own
>>>> home directory. I don't want users to be able to navigate to other
>>>> user's home dirs.
>>>>
>>>> Thx,
>>>> Simone.
>>>> -------------------------------------------------------
>>>> Ing. Simone Giannecchini
>>>> GeoSolutions S.A.S.
>>>> Owner - Software Engineer
>>>> Via Carignoni 51
>>>> 55041  Camaiore (LU)
>>>> Italy
>>>>
>>>> phone: +39 0584983027
>>>> fax:      +39 0584983027
>>>> mob:    +39 333 8128928
>>>>
>>>>
>>>> http://www.geo-solutions.it
>>>> http://simboss.blogspot.com/
>>>> http://www.linkedin.com/in/simonegiannecchini
>>>>
>>>> -------------------------------------------------------
>>>>
>>>
>>
>

Reply via email to