I’m new on this forum, but I’m using nextcloud from many years now
Today, I’m updating my servers and would like to move DATA folder on my NAS
nextcloud is running on a debian 10 server
I alredy mount NAS folder on nextcloud server, I can move (or copy) DATA folder, but cannot use it because when I copy it, owner chage from www-data to root
I cannot change owner to www-data
If I copy DATA folder everywhere on nextcloud server, I can do it, but cannot change owner on a mounted folder
I can use mounted folder , copy file, read file, write in a file from linux server, but cannot change right and owner, so, webserver (nextcloud) cannot.
I think the problem is the fact that is not really a SMB share or a network folder. It is a “mount -t cifs”. Perhaps you can better use SMB not as primary but as secondary data.
It is a “really SMB mount”. But i think you mounted it for system user and not for nextcloud user. Perhaps you can change the mount - command if you like or meed SMB.