Re: A question about setting the root

Markus Krause <[email protected]>
Newsgroups gmane.comp.horde.gollem
Message-ID <[email protected]>
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 <[email protected]>:
> 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 <[email protected]>:
>
> > 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]
> >
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>


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