What's wrong if "Deletion log file could not be created: No authorization"?

On my Lubuntu 16.04 I connected to my NAS and was not able to delete files. The error message was something like:

Deletion log file could not be created: No authorization.

My connection to the share is established through:

sudo mount -t cifs -o user=USERSERVER,uid=LOCALUSER,gid=LOCALGROUP,username=USERSERVER,password=PW //192.168.0.102/RAID6 /media/OMV

Solution 1:

Because I did not find a lot on the internet about it I wanted to share my solution and keep the german original error message, which is "Löschprotokolldatei konnte nicht angelegt werden".

Somehow, the (hidden) folder SHARENAME/.Trash-1000 was owned by a different user than the one I used when connecting to the share. As soon as I fixed this on the NAS (over ssh) with sudo chown -R USER:GROUP FOLDER I was able to delete again from inside my filemanager that was connected to the share.