Nextcloud permission / owner Issues

Hi,

I am currently setting up nextcloud on my TrueNas Scale server using this guide:

Guide on Forums.TrueNas

I have an issue excessing certain files. I think the problem is based on the owner of the files.

In addition to acesssing files I create within nextcloud I also want to have access to files I have on an smb share.

But for some reason I can only access some (not all) of these files. I certainly can not delete or modify any of the files.

I think it has to do with the owner of the file. The files on the smb share are created using the SMB user, not nextcloud. If I upload the same file using nextcloud I can modify it in the NextCloud WebUI.

Is there any possibility to allow nextcloud to modify files from other owners?

Kind regards
Max

If the dataset has NFSv4 ACLs, then you can add an explicit entry for the UID that nextcloud runs as granting FULL_CONTROL, and apply the ACL recursively. FULL_CONTROL allows chown.

I checked that an the dataset Posix ACL. I switched that over to NFSv4 ACL and that now works perfectly fine.

Thank you for your help!

But I still have an Issue: I still cannot access subfolders created on the SMB share. Nextcloud states “this operation is not allowd”. If I upload files directly to the top directory of the smb share I can access and delete them. But I can not access subfolders.

As an additional Note: I have added the SMB shares as local files within nextcloud because the run on the same machine.