Samba server problem with locking
In fstab I mount a NAS using cifs and share this mounting point in smb.conf. From the server reading and writing from or to the mount is ok. But a client can only read from the samba share - writing to the share results in an error and log.smbd says:
"smbd version 4.15.7 started. Copyright Andrew Tridgell and the Samba Team 1992-2021 [2022/07/11 17:28:13.925412, 0] ../../source3/smbd/close.c:311(close_remove_share_mode) close_remove_share_mode: Could not get share mode lock for file xxx "
From my understanding samba has a problem with locking the cifs-mounted device. I have no problems with other shares. I encounter no problems with the same configuration under Debian.
FYI: I'm running Alpine in VirtualBox and have 2 NICs (one connected with the mounted NAS and another for the Samba share). Please let me know if you need additional information.
I'm not sure if this is a bug or if I have to modify the mounting or the the smb.conf or if this behavior is intended (i.e. security reasons).