Custom Mount Filestorage local

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
owncloud_
Newbie
Posts: 6
Joined: Tue Mar 27, 2012 4:44 pm

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

bourgeoa
Beginner
Posts: 27
Joined: Sun Jun 03, 2012 6:08 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

owncloud_
Newbie
Posts: 6
Joined: Tue Mar 27, 2012 4:44 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?

bourgeoa
Beginner
Posts: 27
Joined: Sun Jun 03, 2012 6:08 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.

owncloud_
Newbie
Posts: 6
Joined: Tue Mar 27, 2012 4:44 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?

bourgeoa
Beginner
Posts: 27
Joined: Sun Jun 03, 2012 6:08 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.

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

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


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests