Repair AccessRight in Users Subfolders

Nextcloud version: 17.0.6
Operating system and version: Ubuntu 18.04.4
Apache or nginx version: 1.14.0
PHP version 7.1

I migrated my cloud to another server. On the old server I had nextcloud installed on openmediavault and had a very ugly configiration to share my userfiles by SMB… Folders I created directly on the smb share are now accessable by my user, but I can not add new files or delete files. How can I fix this?

Thanks, Sebastian

On the old server I can see, that the folders owner is my SMB-User… How can I fix this on the new server? Files have been migrated with rsync.

chown -R www-data data/ did not solve the problem.
Still: image

Oh! It does but needed a occ files:rescan!