[Samba] samba allows rename to a locked file (from linux cifs mount)

Michael Tokarev mjt at tls.msk.ru
Sat Mar 16 17:18:45 UTC 2024


16.03.2024 20:11, Ralph Boehme wrote:
> On 3/16/24 14:18, Michael Tokarev wrote:
>> So I'm trying to go exactly the opposite route: I'm mounting a samba
>> share on linux (with cifs, see $subject). 
> 
> ah, missed that. Had read it as if you were acting on the Samba server directly.
> 
> This smells like "strict rename" isn't enabled – it isn't by default.

Nope, it's not it.  strict rename only applies to dirs.
I'm writing about plain files, not only rename but also delete.

Enabling strict renames does not change anything.  Yes it prevents from
renaming a directory if a file is open inside.  But not renaming a plain
file which is locked.

/mjt



More information about the samba mailing list