<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>jail for multiple homes</title> 
  <pubDate>Wed, 08 Apr 2026 17:39:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6435</link> 
  <atom:link rel="self" type="application/rss+xml" title="jail for multiple homes" href="https://bugs.horde.org/ticket/6435/rss" /> 
  <description>jail for multiple homes</description> 
 
   
   
  <item> 
   <title>Hi,



If you have multiple home directories on the ftp serv</title> 
   <description>Hi,



If you have multiple home directories on the ftp server like;



/home_1/user_a

/home_2/user_b



you cannot define a static &#039;root&#039; =&gt; &#039;/home&#039; and a &#039;home&#039; =&gt; Auth::getAuth() line to jail a user to the home (in conf/backends.php).



The only choice left (that I could figure out :) is to use something like &#039;root&#039; =&gt; &#039;~&#039; and &#039;home&#039; =&gt; &#039;./&#039; which seems to be working until you try to &quot;cd&quot; to a sub-directory (error: ~/~/sub-directory not found).



This did the trick for me;



Added the lines below to horde/gollem/lib/Sessions.php just above the comment:

&quot;Make sure the home parameter lives under root ....&quot; on line 127;

 

if (!empty($ptr[&#039;multihomejail&#039;])) {

     if ($ptr[&#039;multihomejail&#039;] == true) {

         $ptr[&#039;home&#039;] =  $GLOBALS[&#039;gollem_vfs&#039;]-&gt;getCurrentDirectory();

         $ptr[&#039;root&#039;] =  $ptr[&#039;home&#039;];

     }

 }



and added the parameter &#039;multihomejail&#039; =&gt; true to horde/gollem/config/backends.php . A sample ftp entry looks like this;



$backends[&#039;hordeftp&#039;] = array(

    &#039;name&#039; =&gt; &#039;WebFTP&#039;,

    &#039;driver&#039; =&gt; &#039;ftp&#039;,

    &#039;preferred&#039; =&gt; &#039;&#039;,

    &#039;hordeauth&#039; =&gt; true,

    &#039;params&#039; =&gt; array(

        &#039;hostspec&#039; =&gt; &#039;servername&#039;,

        &#039;port&#039; =&gt; 21,

        &#039;pasv&#039; =&gt; true,

        &#039;vfsroot&#039; =&gt; &#039;&#039;,

       &#039;permissions&#039; =&gt; &#039;700&#039;

    ),

    &#039;loginparams&#039; =&gt; array(

    ),

    &#039;root&#039; =&gt; &#039;&#039;,

    &#039;home&#039; =&gt; &#039;&#039;,

    &#039;multihomejail&#039; =&gt; true,

    &#039;clipboard&#039; =&gt; true,

    &#039;attributes&#039; =&gt; array(&#039;type&#039;, &#039;name&#039;, &#039;edit&#039;, &#039;download&#039;, &#039;modified&#039;, &#039;size&#039;, &#039;permission&#039;, &#039;owner&#039;, &#039;group&#039;)

);



Best regards,



Emre Sezginer

horde-tr team

horde-tr.at.metu.edu.tr</description> 
   <pubDate>Wed, 12 Mar 2008 16:56:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6435#t43748</link> 
  </item> 
   
  <item> 
   <title>Did you try root = &#039;~&#039; and home = &#039;&#039;? home = &#039;./&#039; doesn&#039;t lo</title> 
   <description>Did you try root = &#039;~&#039; and home = &#039;&#039;? home = &#039;./&#039; doesn&#039;t look correct to me.</description> 
   <pubDate>Thu, 13 Mar 2008 11:14:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6435#t43800</link> 
  </item> 
   
  <item> 
   <title>Yes. It leads to the error: &quot;Backend Configuration Error: Ho</title> 
   <description>Yes. It leads to the error: &quot;Backend Configuration Error: Home directory not below root.&quot;



Emre.



&gt; Did you try root = &#039;~&#039; and home = &#039;&#039;? home = &#039;./&#039; doesn&#039;t look correct to me.

</description> 
   <pubDate>Thu, 13 Mar 2008 11:47:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6435#t43807</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
