March 28, 20251 yr as i have unfortunately not received any feedback in the german forum. i am posting this again here in english Hello everyone, I have installed a Nextcloud server on a Proxmox instance. For the data directory I use a NFS share which I have created on Unraid. /mnt/user/nc_data/ on the Nextcloud server this is mounted in /mnt/nc_data. I can't say when this happens but regularly the permissions change from /mnt/nc_data to ower 99 (which is nobodyuser from unraid) so I always have to manually change it to www-data. What is the reason for this and how can I fix it? I had thought about changing the folder and not using the share directory directly but a subfolder of nc_data but before I change it I thought I would ask the professionals here if I can fix it properly without a workaround. Thanks for the help.
March 28, 20251 yr What version/method of Nextcloud are you using? (As in, the default community Nextcloud with seperate DB/Cron/Redis, Nextcloud from Linuxserver.io or the Nextcloud All in one (AIO)) If youre using the first option, then are your nextcloud and redis containers using the --user parameter in extra parameters to set it to user 99? And the cron container, for that you will need the nextcloud cron container in the apps section on Unraid as most other versions of it will refuse to use the nobody user. If youre using either of the other options.. sadly can't help there
March 28, 20251 yr Community Expert How this problem is addressed (in Unraid) with smb is that every Share Access user is a member of the 'users' group. This can result in the following situation for owners of resources: Notice that there are three 'owners' for the four files shown here. Yet all three can have full access to the files because all three of these Share Access users are also members of the 'users' group! Note that the permissions for 'group' is identical to 'owner'. For a Docker container, this is the recommended setup of the Docker Container to allow full access to files created by the Docker: (PUID 0f 99 = nobody and GUID of 100 = users ) Here is what the Edit function looks like: This should also set up things for NFS to work correctly also. Hope this helps... Edited March 28, 20251 yr by Frank1940
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.