Re: A question about setting the root

"Anders Sjöö" <[email protected]>
Newsgroups gmane.comp.horde.gollem
Organization Dept of Education, Lund University, Sweden
Message-ID <[email protected]>
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 <[email protected]>:
> > 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: [email protected]
> >
> 
> 
> --
> Markus Krause                           email: [email protected]
> 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 [email protected]
> 
> -- 
> Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: [email protected]

-- 
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
[email protected]


-- 
Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.