I'm accessing a samba share on a Windows Server 2019 from a PC with an updated Debian 10 buster OS with the command:
sudo mount -t cifs -o vers=3.11,username=myname,uid=1000,gid=1000 //the.server/some/share/ /home/myname/some/dir
On the top level I'm able to create and rename files without problems:
>> cd ~/some/dir >> touch del.me >> mv del.me del1.me
However, if I try to rename a file in a subdirectory, it doesn't work anymore:
>> cd ~/some/dir >> mkdir subdir >> cd subdir >> touch del.me >> ls -la total 8 drwxr-xr-x 2 myname myname 0 Apr 27 11:56 . drwxr-xr-x 2 myname myname 8192 Apr 27 11:56 .. -rwxr-xr-x 1 myname myname 0 Apr 27 11:56 del.me >> mv del.me del1.me mv: cannot move 'del.me' to 'del1.me': No such file or directory
Deleting the file created in the subdirectory with
rm del.me works without problems.
What could be the reason? I've tried looking online for the problem but cannot find a solution. In other shares on the same server (
//the.server/another/share/) mounted in the same way and with the same permissions, moving files works without problems. I've also tried accessing the share from a different PC (running a Debian testing OS), and the problem persists. My samba version is 4.9.5-Debian.