Different local area mounts for multiple accounts

Ask all your questions regarding OC 8.2 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
DavidShutter
Newbie
Posts: 5
Joined: Sun Jul 03, 2016 10:48 am

Different local area mounts for multiple accounts

Postby DavidShutter » Sun Jul 03, 2016 11:09 am

I am running Owncloud on ubuntu as a remote access portal for students at a high school.
Until my most recent upgrade (8.1.something to 8.2.5), I was able to drop a symlink into the datadir for each of my users, to give them access to their user areas, however I am unable to do this any more.
I (now) know that modifying the datatir is unsupported - (viewtopic.php?f=17&t=32183) but I don't think any of the solutions that it suggests will allow me to restore this functionality.

The users who already had the areas set up prior to the upgrade are still able to access their files through the symlink, but I am not able to do this with any new users.

Are there any solutions that will give me this functionality back? Is it feasible to roll back to 8.1? Or am I going to have to look at a different cloud solution?


Steps to reproduce
1. symlink to locally mounted directory in datadir for user

Expected behaviour
Prior to upgrade, this would appear as a folder in the webui, allowing user to browse files stored across network

Actual behaviour
Folder does not show in webui

Server configuration
Operating system: Ubuntu 14.04
Web server:Apache2
Database:MySQL
PHP version:5
ownCloud version (see ownCloud admin page):8.25
Updated from an older ownCloud or fresh install:updated
ownCloud log (data/owncloud.log):N/A

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
Second server hosting data for multiple users, connected via samba to /media/studentdrives/. Auth via LDAP.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Different local area mounts for multiple accounts

Postby RealRancor » Sun Jul 03, 2016 12:01 pm

Hi,

9.1 will even completely drop support of such symlinks:

https://github.com/owncloud/documentation/issues/2493

Instead of doing such creepy stuff like symlinks in the datadir use the external storage support app as advised in:

viewtopic.php?f=17&t=32183

If you create a new user you can configure such an moutpoint via the occ command line tool as discussed here:

https://github.com/owncloud/documentation/issues/2236
https://github.com/owncloud/documentation/pull/2299
*gone*

DavidShutter
Newbie
Posts: 5
Joined: Sun Jul 03, 2016 10:48 am

Re: Different local area mounts for multiple accounts

Postby DavidShutter » Sun Jul 03, 2016 6:17 pm

Thank you!

I think I just needed someone to tell me to go back and read it again. Yes I believe I can do what I want to with External Storage.

I know that using symlinks was a clunky and inelegant solution (I wonder why you use the word creepy though...), I put it together that way as a proof of concept to get the system off the ground and it seemed to work so I was loathed to change it and break it, but I guess this is a good thing overall!

I am upgrading to 9.0, to use the occ scripts to generate these mounts (it's not going to be feasible to do this manually on 1500+ users).

Question:

Will the symlinks already in place break, when I upgrade to 9.1? It would be good to know if so, as I will have the time to do a massive tidy-up in the summer!

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Different local area mounts for multiple accounts

Postby RealRancor » Sun Jul 03, 2016 6:43 pm

Hi,

i had used the word "creepy" together with the usage of them within ownCloud. :) Those are unsupported since a longer time:

https://doc.owncloud.org/server/8.0/adm ... w-symlinks

and now get finally completely blocked/ignored with oC 9.1 (Probably because they had caused various issues).

If something happens further with symlinks within ownCloud only the developers can tell you or you need to do some tests on your own.
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.2”

Who is online

Users browsing this forum: No registered users and 1 guest