Hi,
there are already a lot of questions into to same direction, however I still can't get it work nor do I saw anybody being successful.
my setup:
running FreeNAS 11.3 I created datasets for two users. lets call them user1 and user2. For both datasets I created NFS shares which are being mounted to the linux machines of these users. This works as it's supposed to be.
Furthermore I installed the Nextcloud plugin (v17.1) and would like to use these datasets as local external storage dedicated for each user.
I created mount points in nextcloud jail to /mnt/userX
In nextcloud webui I created user accounts for them and activated external storage as well as connected these local external storages. So far this does work. However I am struggeling with permissions.
The user datasets in FreeNAS have permissions like userX:usergroup.
In nextcloud I add the mount points under /mnt as local external storage. In the nextcloud jail these folder have owner 1000 and group 1000.
This does work but I don't have the permissions to write via from nextcloud webui or nextcloud desktop client.
I tried the following solution:
pw groupadd -n usergroup -g 1001 <- 1001 is the same GID as the dataset in FreeNAS has.
pw groupmod usergroup -m www
On the dataset permissions wrx is give to user and group.
But which user and group should the folders in nextcloud jails be.
www:1001?
www:usergroup?
root:usergroup?
...
Can someone shed some light on this to help me understand it?
Best
macx
there are already a lot of questions into to same direction, however I still can't get it work nor do I saw anybody being successful.
my setup:
running FreeNAS 11.3 I created datasets for two users. lets call them user1 and user2. For both datasets I created NFS shares which are being mounted to the linux machines of these users. This works as it's supposed to be.
Furthermore I installed the Nextcloud plugin (v17.1) and would like to use these datasets as local external storage dedicated for each user.
I created mount points in nextcloud jail to /mnt/userX
In nextcloud webui I created user accounts for them and activated external storage as well as connected these local external storages. So far this does work. However I am struggeling with permissions.
The user datasets in FreeNAS have permissions like userX:usergroup.
In nextcloud I add the mount points under /mnt as local external storage. In the nextcloud jail these folder have owner 1000 and group 1000.
This does work but I don't have the permissions to write via from nextcloud webui or nextcloud desktop client.
I tried the following solution:
pw groupadd -n usergroup -g 1001 <- 1001 is the same GID as the dataset in FreeNAS has.
pw groupmod usergroup -m www
On the dataset permissions wrx is give to user and group.
But which user and group should the folders in nextcloud jails be.
www:1001?
www:usergroup?
root:usergroup?
...
Can someone shed some light on this to help me understand it?
Best
macx