Thanks for the tip with log level increasing.
samba tries to touch the file along the path /srv/samba/.trash/./del2.txt instead of /srv/samba/.trash/del2.txt
However I can
cat this file with both paths (cat /srv/samba/.trash/./del2.txt prints content)
Here is log fragment:
Code: Select all
[2024/04/21 01:49:57.967135, 5, pid=18603, effective(1003, 1003), real(1003, 0), class=vfs] ../../source3/smbd/vfs.c:1000(vfs_ChDir)
vfs_ChDir: vfs_ChDir got /srv/samba/Docs
[2024/04/21 01:49:57.967139, 10, pid=18603, effective(1003, 1003), real(1003, 0)] ../../source3/smbd/open.c:966(fd_openat)
fd_openat: name /srv/samba/.trash/./del2.txt, flags = 04000 mode = 00, fd = -1. NT_STATUS_OBJECT_NAME_NOT_FOUND
[2024/04/21 01:49:57.967144, 10, pid=18603, effective(1003, 1003), real(1003, 0)] ../../source3/smbd/files.c:534(openat_pathref_fullname)
openat_pathref_fullname: Opening pathref for [/srv/samba/.trash/./del2.txt] failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2024/04/21 01:49:57.967149, 5, pid=18603, effective(1003, 1003), real(1003, 0)] ../../source3/smbd/files.c:1800(file_free)
file_free: freed files structure 0 (3 used)
[2024/04/21 01:49:57.967153, 3, pid=18603, effective(1003, 1003), real(1003, 0)] ../../source3/smbd/files.c:1199(synthetic_pathref)
synthetic_pathref: opening [/srv/samba/.trash/./del2.txt] failed
[2024/04/21 01:49:57.967156, 10, pid=18603, effective(1003, 1003), real(1003, 0), class=recycle] ../../source3/modules/vfs_recycle.c:434(recycle_do_touch)
recycle_do_touch: synthetic_pathref for '/srv/samba/.trash/./del2.txt' failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2024/04/21 01:49:57.967162, 5, pid=18603, effective(1003, 1003), real(1003, 0)] ../../source3/smbd/files.c:1800(file_free)
file_free: freed files structure 0 (2 used)