[gollem] A question about setting the root
Anders Sjöö
Sjoo at pedagog.lu.se
Mon Feb 13 05:13:00 PST 2006
I have done about the same thing. For testing purpose I have placed a
copy of Horde and Gollem on a Windows box. It's working fine, though
there is one problem. I have tried to check so that users can't cd
any nearer root of the file system then their own home directory. If
I press "Change folder" and type ".." in the dialog when standing in
[root], I'm just redirected back to [root], which is fine. But if I
change to a subdirectory of [root], press "Change folder" and then
type "../.." (or "..\..") something goes wrong. Apache hangs with a
CPU usage near 100% and has to be killed with the Task Manager.
I don't know if this is specific just when running on a Windows box.
I'm using Apache 1.3.33, php 4.4.0, Horde 3.0.9 and Gollem 1.0.1.
Regards
Anders Sjöö
On 10 Feb 2006 at 22:27, Markus Krause wrote:
> i am doing this by setting the following in gollem/config/backends.php:
>
> $backends['file'] = array(
> 'name' => 'Home',
> 'driver' => 'file',
> 'preferred' => '',
> 'hordeauth' => false,
> 'params' => array('vfsroot' => '/var/horde-vfs/home/' . Auth::getAuth(), ),
> 'loginparams' => array(),
> 'root' => '/',
> 'home' => '',
> 'createhome' => true,
> 'attributes' => array('type', 'name', 'download', 'modified', 'size' )
> );
>
> hth
> markus
>
> Zitat von thewade <pdman at aproximation.org>:
> > Hello,
> >
> > I have a question though. I am using the linux file structure as my
> > backend and so far everyone's root is the same. If I could set per user
> > permissions this wouldn't be a problem but for the interface to work
> > apache has to be able to modify files so that isint an option.
> >
> > I want to make each users root to be /vfs root/username so that each
> > user can only see or modify files in the "username" subfoler of root.
> > Like chroot.
> > How do I go about doing this?
> >
> > I am sure there is some $conf['uname'] like attribute set but I son't
> > know which ones are validated and proper to use. If I knew the right
> > one I could simply set the root to be
> > 'root' => '/' . $conf['username']
> > or something.
> >
> > THanks for the help and for writing the module in the first place!
> > -thewade
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> > --
> > Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: gollem-unsubscribe at lists.horde.org
> >
>
>
> --
> Markus Krause email: krause at biochem.mpg.de
> Computing Center Tel.: 089 - 89 40 85 99
> Group Lottspeich / Proteomics Fax.: 089 - 89 40 85 98
>
> ---------------------------------------------------------------------
> This message was sent using https://webmail.biochem.mpg.de
> If you encounter any problems please report to rz-linux at biochem.mpg.de
>
> --
> Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: gollem-unsubscribe at lists.horde.org
--
Anders Sjöö
Lund University, Dept of Education
PO-Box 199, SE-221 00 Lund, Sweden
+46 46 222 87 23 fax +46 46 222 45 38
Sjoo at pedagog.lu.se
More information about the gollem
mailing list