[gollem] Can't get multi-user homedirectories working

Richard Hobbs hobbs at mongeese.co.uk
Wed Mar 23 01:17:09 PST 2005


This is a cryptographically signed message in MIME format.

--=_2gipva5z61hc
Content-Type: text/plain;
	charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hello,

I have just downloaded and installed gollem from
"gollem-HEAD-2005-03-22.tar.gz", and while it works fine when using the
standard SQL engine, i do not want each user to be able to see everyone else's
files.

I have therefore decided to go for the "home directory and root directory in a
SQL vfs" backend.

I have created the "horde_muvfs" table, and i have altered the relevant section
of backends.php (see below), but when i try to create a folder, i simply get
"Access denied to folder ""." and "Access denied to folder ""." (one with an
'i' icon, and another with a warning icon).

Here is backends.php as i currently have it set up:

======================================================================
<?php
/**
 * $Horde: gollem/config/backends.php.dist,v 1.24 2005/02/17 12:30:40 jan Exp $
 *
 * This file is where you specify what backends people using your
 * installation of Gollem can log in to. There are a number of properties
 * that you can set for each backend:
 *
 * name:       This is the plaintext name that you want displayed if you are
 *             using the drop down server list.
 *
 * driver:     The VFS (Virtual File System) driver to use to connect.
 *             Valid options:
 *               'file'  --  Work with a local file system.
 *               'ftp'   --  Connect to a FTP server.
 *               'sql'   --  Connect to VFS filesystem stored in SQL database.
 *
 * preferred:  This is only useful if you want to use the same backend.php
 *             file for different machines: if the hostname of the Gollem
 *             machine is identical to one of those in the preferred list,
 *             then the corresponding option in the select box will include
 *             SELECTED, i.e. it is selected by default. Otherwise the
 *             first entry in the list is selected.
 *
 * hordeauth:  If this parameter is present and true, then Gollem will attempt
 *             to use the user's existing credentials (the username/password
 *             they used to log in to Horde) to log in to this source. If this
 *             parameter is 'full', the username will be used unmodified;
 *             otherwise, everything after and including the first @ in the
 *             username will be stripped before attempting authentication.
 *
 * params:     A params array containing any additional information that the
 *             VFS driver needs.
 *
 * root:       The directory that will be the "top" or "root" directory, being
 *             the topmost directory where users can change to. This is in
 *             addition to a vfsroot parameter set in the params array.
 *             If empty, this will default to the value of the home directory.
 *
 * home:       The directory that will be used as home directory for the user.
 *             This parameter will overrule a home parameter in the params
 *             array.
 *             If empty, this will default to the active working directory
 *             immediately after logging into the VFS backend (i.e. for ftp,
 *             this will most likely be ~user, for SQL based VFS backends,
 *             this will probably be the base directory).
 *
 * attributes: The list of attributes that the driver supports. Available
 *             attributes:
 *               'download'
 *               'group'
 *               'modified'
 *               'name'
 *               'owner'
 *               'permission'
 *               'size'
 *               'type'
 */

// FTP Example.
/*
$backends['ftp'] = array(
    'name' => 'FTP Server',
    'preferred' => '',
    'driver' => 'ftp',
    'params' => array(
        // The hostname/IP Address of the FTP server
        'hostspec' => 'ftp.example.com',
        // The port number of the FTP server
        'port' => 21,
        // Use passive mode?
        'pasv' => false,
        // Hide all files that match this regex
        // 'filter' => '^regex$'
    ),
    'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group')
);
*/

// This backend uses Horde credentials to automatically log in.
/*
$backends['hordeftp'] = array(
    'name' => 'FTP Server',
    'driver' => 'ftp',
    'preferred' => '',
    'hordeauth' => true,
    'params' => array(
        // The hostname/IP Address of the FTP server
        'hostspec' => 'ftp.example.com',
        // The port number of the FTP server
        'port' => 21,
        // Use passive mode?
        'pasv' => false
    ),
    'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group')
);
*/

// SQL Example.
/*
$backends['sql'] = array(
    'name' => 'SQL Server',
    'driver' => 'sql',
    'preferred' => '',

    // The default connection details are pulled from the Horde-wide SQL
    // connection configuration.
    'params' => array_merge($GLOBALS['conf']['sql'], array('table' =>
'horde_vfs')),

    // If you need different connection details than from the Horde-wide SQL
    // connection configuration, uncomment and set the following lines.
    'params' => array(
        // The SQL connection parameters. See horde/config/conf.php for
        // descriptions of each parameter.
        'phptype' => 'mysql',
        'hostspec' => 'localhost',
        'database' => 'horde',
        'username' => 'horde',
        'password' => 'passwd',

        // The SQL table containing the VFS. See the horde/scripts/db
        // directory for examples.
        'table' => 'horde_muvfs'
    ),

    'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group')
);
*/

// This backend specifies a home directory and root directory in a SQL vfs.
$backends['sqlhome'] = array(
    'name' => 'SQL Server with home',
    'driver' => 'sql',
    'preferred' => '',

    // The default connection details are pulled from the Horde-wide SQL
    // connection configuration.
    'params' => array_merge($GLOBALS['conf']['sql'], array('table' =>
'horde_vfs')),

    // If you need different connection details than from the Horde-wide SQL
    // connection configuration, uncomment and set the following lines.
    'params' => array(
        // The SQL connection parameters. See horde/config/conf.php for
        // descriptions of each parameter.
        'phptype' => 'mysql',
        'hostspec' => 'localhost',
        'database' => 'horde',
        'username' => 'horde',
        'password' => 'passwd',

        // The SQL table containing the VFS. See the horde/scripts/db
        // directory for examples.
        'table' => 'horde_muvfs'
    ),

    'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group'),
    'root' => '/home',
    'home' => '/home/' . Auth::getAuth(),
);

// NOTE: /usr/local/data/home and all subdirectories should be, for
// security reasons, owned by your web server user and mode 700 or you
// will need to use suexec or something else that can adjust the web
// server effective uid.
/*
$backends['file'] = array(
    'name' => 'Virtual Home Directories',
    'driver' => 'file',
    'preferred' => '',
    'params' => array(
        // The base location of user home directories.
        'vfsroot' => '/usr/local/data/home/',
        // The name of the current user's home directory.
        'home' => Auth::getAuth()
    ),
    'attributes' => array('type', 'name', 'download', 'modified', 'size',
'permission', 'owner', 'group')
);
*/

======================================================================

If anyone has any ideas why this is happening, could you please let me know??

Other than creating the horde_muvfs table, i have done *nothing* else to the
database.

Thanks in advance,
Hobbs.

-- 
Richard Hobbs            http://mongeese.co.uk
http://fishsponge.co.uk  http://hififorum.co.uk  http://unixforum.co.uk
____________________________________________________________________________
Would you like jokes in your email?   Email jokes-subscribe at fishsponge.co.uk
Would you like to discuss unix/linux? Email ufq-subscribe at unixforum.co.uk

--=_2gipva5z61hc
Content-Description: S/MIME Cryptographic Signature
Content-Disposition: attachment;
	filename="smime.p7s"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1108 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.horde.org/archives/gollem/attachments/20050323/4a86d7f9/smime.bin

--=_2gipva5z61hc--


More information about the gollem mailing list