cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Server Default Root Directory by User

dhoechst
Champ in-the-making
Champ in-the-making
Hi,

I'd like to change the root directory for FTP logins based on the user that logs in. For example, when I log in to FTP, I'd like to go right to /Alfresco. When other users login, I'd like it to go to a specific folder. I found where I can change the file-servers-custom.xml file to default all users to a different root folder, but I want to do it on a user basis, similar to how the web client allows users to select their default start location.

Thanks.
1 REPLY 1

romschn
Star Collaborator
Star Collaborator
You can specify the default directory, to be displayed to the user when he logs in through FTP, in file-servers-context.xml.

Search for the bean ftpServerConfig in file-servers-context.xml and put an entry as shown in the example below :
<property name="rootDirectory">
<value>/Alfresco/Test</value>
</property>
The first part of the path should be the file system name, optionally followed by one or more folder names.

It will navigate the user to the specified folder.

You may want to do the customization in java code to navigate to specific user's home space as per your requirement.

Hope this helps

Thanks,