I have installed Nextcloud on a VM in Proxmox following mainly this guide:
I can login into nextcloud as a normal user account which I’ve created without issues. The problem I’m facing now is with the data permissions. In particular, I’m trying to mount a ZFS dataset on Proxmox on the data folder of the normal user (/var/www/html/nextcloud/data/myuser/files). This is the fstab of the VM:
//PVE/pepool_shares_nextcloud_data /var/www/html/nextcloud/data/myuser/files cifs rw,auto,nobrl,user=myuser,credentials=/home/myuser/.smbcredentials,iocharset=utf8,uid=1000,gid=1000 0 0
In the guide the owner of the nextcloud folder including subfolders is apache:
# chown -R apache:apache nextcloud
I’ve changed the owner of files like this:
# chown -R myuser:myuser /var/www/html/nextcloud/data/myuser/files
And here’s the problem:
If I create a file on Proxmox I can see the created file on the VM but only with sudo. The same in the opposite direction without sudo. In the nextcloud GUI appear no files. Also I cannot create a file or folder using the GUI.
So, how should I configure the VM and Proxmox to have my data synced and file operations with the GUI work?
I have activated the “External storages” app and mounted my share as “SMB”. It works fine but I can’t find neither “SMB” or the files I’ve uploaded to it when I ssh to the VM. Can someone enlighten me?