similar to: samba allows rename to a locked file (from linux cifs mount)

Displaying 20 results from an estimated 8000 matches similar to: "samba allows rename to a locked file (from linux cifs mount)"

2024 Mar 16
1
samba allows rename to a locked file (from linux cifs mount)
On 3/16/24 06:59, Michael Tokarev via samba wrote: > How to prevent rm and mv from touching a locked file? cf man smb.conf "kernel share modes" and git diff d40f57321a12~9..d40f57321a12 Cheers! -slow -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital
2024 Mar 16
1
samba allows rename to a locked file (from linux cifs mount)
16.03.2024 16:06, Ralph Boehme wrote: > On 3/16/24 06:59, Michael Tokarev via samba wrote: >> How to prevent rm and mv from touching a locked file? > > cf man smb.conf "kernel share modes" and > > git diff d40f57321a12~9..d40f57321a12 Hello Ralph! I'm not sure we understand each other here. Yes I'm aware of "kernel share modes" and turning off
2024 Mar 16
1
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
2024 Mar 16
1
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
2024 Mar 16
1
samba allows rename to a locked file (from linux cifs mount)
On 3/16/24 18:18, Michael Tokarev wrote: > 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. >>
2024 Mar 16
1
samba allows rename to a locked file (from linux cifs mount)
16.03.2024 21:26, Ralph Boehme wrote: > On 3/16/24 18:18, Michael Tokarev wrote: >> 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. > > oh, you mean just rename a plain file that is currently opened by some client? That is possible as long as all
2024 Jun 20
3
leaving a domain?
Hi! I joined a newly installed samba (4.20.1) server to a domain, - just testing things. Now I want to remove this test server from a domain, but I can't: root at svdcm2:/# samba-tool domain leave -U tls\\mjt-adm WARNING: Using passwords on command line is insecure. Installing the setproctitle python module will hide these from shortly after program start. Password for [TLS\mjt-adm]:
2024 Jun 20
1
leaving a domain?
20.06.2024 17:01, Ralph Boehme wrote: > On 6/20/24 2:03 PM, Michael Tokarev via samba wrote: >> How to remove this machine from a domain? > net ads leave ... Yeah, I tried that one right after `samba-tool domain leave` - it complains there's no way to leave a domain if joined as a DC. I *guess* this is the error `samba-tool domain leave` faces too, just without proper error
2023 May 04
2
client-side symlinks ?
04.05.2023 15:32, Ralph Boehme ?????: > On 5/4/23 13:57, Michael Tokarev via samba wrote: >> Is it possible for windows to actually see and use symlinks on samba server? >> Windows NTFS does have notion of junctions and symbolic links, so when one >> open file A (which is a symbolic link), windows actually opens file B. >> Can such mechanism be used when A is on samba
2023 May 04
2
client-side symlinks ?
Hi! Is it possible for windows to actually see and use symlinks on samba server? Windows NTFS does have notion of junctions and symbolic links, so when one open file A (which is a symbolic link), windows actually opens file B. Can such mechanism be used when A is on samba share? This is probably a protocol question more than samba question. Thanks, /mjt
2024 Jun 07
2
4.20: case (in)sensitive is broken
Hi! This is a heads-up for now, more debugging to follow. I had to downgrade samba from 4.20.1 to 4.19.6 because 4.20 broke case insensitive file access entirely. Only exact case filename works, no matter which value is set in "case sensitive" parameter. In 4.19, things works again. /mjt -- GPG Key transition (from rsa2048 to rsa4096) since 2024-04-24. New key:
2024 Apr 24
1
Bad SMB2 (sign_algo_id=1) signature for message
23.04.2024 04:32, Jones Syue ??? via samba wrote: > https://lists.samba.org/archive/cifs-protocol/2024-April/004282.html > Just for reference Microsoft will update doc [MS-SMB2] later :) This does not answer how windows chooses signing key if the connection is anonymous, though -- it is what started this whole thread :) Thanks, /mjt
2023 Dec 04
1
Samba internal DNS client, large replies and TC bit
Hi! We had a painful debugging session today, with a samba AS member server not being able to auth users anymore. The issue seems to be due to defect in samba internal DNS resolution as done in winbind. TL;DR: samba internal DNS client should not rely on UDP-only DNS, but should retry using TCP if TC bit is set in answer. There's a real-life issue with this simplistic DNS implementation.
2023 Jan 20
2
oplocks, kernel oplocks, kernel share modes, .. - how it all works?
Hi! I'm trying to understand how various ways to grant a file lease to (windows) clients works. Especially in context when files are being modified locally on the linux filesystem. For example, there's this wording in man smb.conf: kernel share modes ... Kernel share modes provide a minimal level of interoperability with local UNIX processes and NFS operations by
2023 Jan 24
2
oplocks, kernel oplocks, kernel share modes, .. - how it all works?
On Tue, Jan 24, 2023 at 08:29:17PM +0300, Michael Tokarev via samba wrote: >24.01.2023 20:22, Ralph Boehme via samba wrote: >>What Samba version is this? This: >> >>>LEASE() >> >>... looks broken: the handle oplock/lease state claims to be a >>lease, which means the client didn't request an oplock but a lease >>which should not have happened in
2023 Apr 28
1
Default Samba version in Debian Bookworm
Hi folks, I have tried to get some information about what Samba version will be the default one when Debian Bookworm gets released, but without luck. Will it be 4.17, or 4.18? Or even 4.19.x? Will there be Samba backports for Bookworm? I saw a post from Michael Tokarev in this list a while ago, that there probably wont be a Samba 4.18 for Debian Bullseye. I also saw another post about
2024 Jun 07
1
4.20: case (in)sensitive is broken
On 6/7/24 9:34 AM, Michael Tokarev via samba wrote: > I had to downgrade samba from 4.20.1 to 4.19.6 because 4.20 > broke case insensitive file access entirely.? Only exact case > filename works, no matter which value is set in "case sensitive" > parameter. hm, can't reproduce: $ bin/smbclient -U "slow%x" //localhost/test smb: \> ls foo foo N
2024 Jun 20
1
leaving a domain?
On 6/20/24 2:03 PM, Michael Tokarev via samba wrote: > How to remove this machine from a domain? net ads leave ... -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:
2003 Oct 21
5
run R under linux
Dear all, Our department uses the linux system and we are not allowed to submit job directly. We must make a batch to submit through "qmon". so, I make a foo.sh file, which only contains one line: nohup R --vanilla < foo.txt > foo.results foo is all my codes. It is a simulation of 200 times. I set the seed at the beginning. It is to estimate the success probability, which is
2003 Sep 20
3
conditional function definition?
Hi Folks, What is the best way to avoid a function being read in anew (and masking an exiting function) when a definition of it has already been established in R? Reason: Fernando Tusell and I are working up Schafer's 'CAT' for R (basically done now, just needs some cosmetic tidying up). This uses a function 'slice.index', present in S but not in the versions of R we were