Ralph Boehme
2024-Mar-16 17:11 UTC
[Samba] samba allows rename to a locked file (from linux cifs mount)
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. -slow -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20240316/3ee32a2c/OpenPGP_signature.sig>
Michael Tokarev
2024-Mar-16 17:18 UTC
[Samba] samba allows rename to a locked file (from linux cifs mount)
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
Maybe Matching Threads
- samba allows rename to a locked file (from linux cifs mount)
- samba allows rename to a locked file (from linux cifs mount)
- samba allows rename to a locked file (from linux cifs mount)
- samba allows rename to a locked file (from linux cifs mount)
- samba allows rename to a locked file (from linux cifs mount)