Custom Mount Filestorage local

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Version 4 is not supported anymore! Please upgrade your ownCloud for security and support.
Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting

Custom Mount Filestorage local

Postby owncloud_ » Sun Jul 01, 2012 3:22 pm

Hello,

i have setup Custom Mount Configuration as described in documentation and enabled External storage support.
There is no new mountpoint under "Files" and also no error in log. My php version is PHP 5.3.3 (from debian stable) and my setup looks like this:

Code: Select all
user@ooo:~# cat /var/www/owncloud/config/mount.php
<?php
return array(
    'group'=>array(
        'admin'=>array(
            '/user/shares/admin'=>array('class'=>'OC_Filestorage_Local','options'=>array('datadir'=>'/home/owncloud/shares/admin')),
        ),
    ),
    'user'=>array(
        'all'=>array(
            '/$user/shares/mp3'=>array('class'=>'OC_Filestorage_Local','options'=>array('datadir'=>'/home/owncloud/shares/mp3')),
        ),
    )
);


Can somebody help and is something missing in my setup?

Thanks, Tony
owncloud_
Newbie
 
Posts: 6
Joined: Tue Mar 27, 2012 4:44 pm

Re: Custom Mount Filestorage local

Postby bourgeoa » Sun Jul 01, 2012 6:44 pm

1. Mount Filestorage local works only for Admin's
2. '/user/shares/admin' should be '/$user/files/admin'

You could try to use current Git which offers a UI to set the parameters.
I'm able to mount Local, Google Drive and Dropbox but not the other ones like SMB (partially) or webdav
bourgeoa
Beginner
 
Posts: 27
Joined: Sun Jun 03, 2012 6:08 pm

Re: Custom Mount Filestorage local

Postby owncloud_ » Mon Jul 02, 2012 10:46 am

Thanks, shared files for admins are working now. Why local filesystem shares only working for admins?
owncloud_
Newbie
 
Posts: 6
Joined: Tue Mar 27, 2012 4:44 pm

Re: Custom Mount Filestorage local

Postby bourgeoa » Mon Jul 02, 2012 6:14 pm

It is for security reasons, so that only Admin's have the knowledge of the server file structure.
bourgeoa
Beginner
 
Posts: 27
Joined: Sun Jun 03, 2012 6:08 pm

Re: Custom Mount Filestorage local

Postby owncloud_ » Mon Jul 02, 2012 6:35 pm

Ah, i see. Is it a good idea and possible to mount local filesystem via OC_Filestorage_DAV and owncloud webdav?

What are common workarounds?
owncloud_
Newbie
 
Posts: 6
Joined: Tue Mar 27, 2012 4:44 pm

Re: Custom Mount Filestorage local

Postby bourgeoa » Mon Jul 02, 2012 11:20 pm

Only the Admin can mount a local folder but he can make it applicable to whoever is allowed.
For example if it is a music folder the Admin can make it applicable to All users.
bourgeoa
Beginner
 
Posts: 27
Joined: Sun Jun 03, 2012 6:08 pm

Re: Custom Mount Filestorage local

Postby c.monty » Sat Sep 08, 2012 12:34 pm

bourgeoa wrote:Only the Admin can mount a local folder but he can make it applicable to whoever is allowed.
For example if it is a music folder the Admin can make it applicable to All users.


Can you please provide some more details how this can be realized?
I mean, what needs to be maintained apart from mount.php in order to activate this function?

THX
c.monty
Newbie
 
Posts: 6
Joined: Wed Sep 05, 2012 10:25 am


Return to ownCloud Community Edition 4.x and older

Who is online

Users browsing this forum: No registered users and 10 guests