cancel
Showing results for 
Search instead for 
Did you mean: 

Change FTP RootDirectory from /Alfresco

vishal
Champ in-the-making
Champ in-the-making
Hi,

I want to change the FTP RootDirectory from /Alfresco(default configuration) to some directory i mention under <rootDirectory>…</rootDirectory> tag.Can anybody suggest me how this configuration can be done.
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
Hi,

Create a file called file-servers-custom.xml under tomcat/shared/classes/alfresco/extension and use something like the following
<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="FTP Server">
      <port>2121</port>
      <rootDirectory>/Alfresco/User Homes/MikeH</rootDirectory>
   </config>

</alfresco-config>

Note here I have moved the FTP server onto port 2121 as well as setting the default root directory. Note that the root directory supplies the starting point for an FTP session, it doesn't prevent navigation into the parent folders (depending on user permissions, of course).

http://wiki.alfresco.com/wiki/File_Server_Configuration

Thanks,
Mike

asifjaan
Champ in-the-making
Champ in-the-making
Hello ,

Is it possible to have the username part in following to be dynamically resolved based on the username of the logging in user.

<rootDirectory>/Alfresco/User Homes/MikeH</rootDirectory>

i.e.  for user Tom

<rootDirectory>/Alfresco/User Homes/Tom</rootDirectory>

and for Dick

<rootDirectory>/Alfresco/User Homes/Dick</rootDirectory>

i.e. something like

<rootDirectory>/Alfresco/User Homes/{username}</rootDirectory>

Thanks a lot

andrepra
Champ in-the-making
Champ in-the-making
Have you find the right sintax to point to userhome dir?

thanks
Andrea