[gollem] A question about setting the root

Markus Krause krause at biochem.mpg.de
Sun Feb 19 00:45:17 PST 2006


i just downloaded the latest gollem tarball (gollem-h3-1.0.2-rc1.tar.gz) and the
entry in gollem/config/backends.php now reads:

---
$backends['file'] = array(
    'name' => 'Virtual Home Directories',
    'driver' => 'file',
    'preferred' => '',
    'hordeauth' => false,
    'params' => array(
        // The base location under which the user home directories live.
        //'vfsroot' => '/var/horde-vfs/home/',
        'vfsroot' => '/var/horde-vfs/home/' . Auth::getAuth(),
    ),
    'loginparams' => array(),
    'root' => '/',
    //'home' => Auth::getAuth(),
    'home' => '',
    'createhome' => false,
    // 'permissions' => $conf['umask'],
    // 'filter' => '^regex$',
    // 'quota' => false,
    'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group')
);
---

and the users can not go "higher" than their own home-dir, in my case
"/var/horde-vfs/home/<username>".

hth
  markus


Zitat von thewade <pdman at aproximation.org>:
> I tried that but with home still equal to Auth:getAuth() as per the
> defaults. Probably because I am an idiot. :)
> I am going to try it again right now!
>
> Thanks for the speedy help! Oder danke schon!
> -thewade
>
> Quoting Markus Krause <krause at biochem.mpg.de>:
>
> > 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
> >
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>


--
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



More information about the gollem mailing list