similar to: Windows share modes and Linux file locking, flock & fcntl

Displaying 20 results from an estimated 2000 matches similar to: "Windows share modes and Linux file locking, flock & fcntl"

2020 Jul 01
0
Issues with FLOCK on NFS Share
> Howdy! > > Am 6/30/20 um 2:37 PM schrieb Georg.Biberger--- via samba: >> We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when accessing files on these archive NFS shares. >> We
2020 Jul 01
2
Issues with FLOCK on NFS Share
Smb.conf: [global] security = ADS workgroup = MUC realm = europe.bmw.corp netbios name = EDAINT netbios aliases = edaint.muc log file = /lfs/EDA/DATA/SOFTWARE/samba/var/log/samba/%m.log log level = 10 # Default ID mapping configuration for local BUILTIN accounts # and groups on a domain member. The default (*) domain: # - must
2003 Apr 05
1
flock a file in a NT server
Hi, I'm writing an application with C under Linux and I'm trying to use the flock system function to lock a file of an NT4 Server over Samba. The problem is that the lock works well within the same machine but if it is a process on another machine (the same program) the one that tries to access the locked file, the process is not blocked until the lock is released but given full access
2019 Jan 21
0
[klibc:master] fcntl: Fix struct flock for 32-bit architectures
Commit-ID: 11bd4ea5f3d960c4d208180deae91d88aa940149 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=11bd4ea5f3d960c4d208180deae91d88aa940149 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Mon, 21 Jan 2019 03:39:34 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Mon, 21 Jan 2019 03:45:04 +0000 [klibc] fcntl: Fix struct flock
2009 Dec 16
0
strange flock issues with glusterfs 3.0.0
Hi, FYI: we had glusterfs up and running with 2.0.8 and it worked fine. we decided to upgrade to 3.0.0 and found out, that with linux 2.6.31.7 and glusterfs 3.0.0 and the kernel fuse module, the flock() does not seem to work, i.e. apache2 php session files distributed via glusterfs 3.0.0 make apache2 hang on LOCK_EX we reverted back to 2.0.8 and installed glusterfs-fuse 2.7.4 and everything is
2020 Jun 30
3
Issues with FLOCK on NFS Share
On 30/06/2020 14:55, Ralph Boehme via samba wrote: > Howdy! > > Am 6/30/20 um 2:37 PM schrieb Georg.Biberger--- via samba: >> We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when
1996 Nov 14
0
setgid binaries
Hi, I''ve been thinking about group membership and the corresponding (weak) restrictions to system resources. Consider the following: % cat > gsh.c main() { system("/bin/sh"); } % cc -o gsh gsh.c % id uid=100(joe) gid=500(users) groups=14(floppy),15(sound) % chgrp sound gsh % chmod g+s gsh % mail abuser Subject: You owe me $5...
2007 Mar 13
10
Need some explanation on Samba/NFS locks handle
Hi there, We are thinking about sharing same files: - OS2/Win clients with Samba - Linux clients with NFS. So, the same files would be shared by 2 different protocols. Looking at the open.c samba code, there seems to be no check / no error (sharing violation) returned to the smb client when the file is already locked by an NFS client. - So, even if a file is opened and locked by an NFS client,
2006 Jan 11
0
how to force Samba respects file locking?
Greetings, I'm trying to lock files using a Debian GNU Linux (unstable) and Perl, but looks like the smbpasswd command from Samba is not respecting the lock. Perl has "advisory" file locking using C flock() or lockf() or fcntl(), depending which one is first available on the system. While this is not a Perl mailing list, I need to know which scheme Samba uses for file locking to
2009 Apr 21
1
blocking file locks
Hello all, As a Samba programming newbie, I've run onto a question that doesn't have an obvious answer in FAQ or googled literature. I need to lock large numbers of files on the server, and have Samba open requests block until they are released. I found references to "blocking locks" in references such as "Using Samba" (O'Reilly, 1999, 2003)
2012 Feb 17
1
Race Condition In PHP Session Handler
php-5.3.3-3.el6_2.6.x86_64 2.6.32-220.4.2.el6.x86_64 After some testing we moved our production PHP intranet site from an old server to a new CentOS 6.2 instance running the mentioned versions. At first it worked well and then user's started to experience a hung site. Upon some digging it appears that the PHP module is getting stuck in a race condition regarding the sessions file - [root at
2003 Jul 24
1
does rsync lock exclusively files to copy?
I'm running rsync 2.5.6 on windows (via cygwin) and I've had other processes try to open the same files as rsync, but could not get through sometimes. Does rsync place a shared lock or an exclusive lock on the files it will copy from? I checked into the sources but did not find any use of flock() which could specify either LOCK_SH or LOCK_EX, so I'm not sure what the open() does when
2007 Jan 22
0
checking a locked file
I've been trying to determine if a file is locked by samba from unix. Is there some magic incantation to find this? E.g. if someone is copying a file in from a windows system via samba. I'm using the default locking parameters on 3.0.10 with a 2.6 kernel. I've tried checking posix byte ranges, posix locking, and kernel op locks. Here is my test program: #include <sys/types.h>
2011 Sep 06
0
[PATCH] include: [sys/file.h] define flock(2) there
SUSv3 is silent on that definition, but seen several userspace software that expects flock to be defined in that file and complain that it is missing in klibc. Current declaration is in unistd.h. Signed-off-by: maximilian attems <max at stro.at> --- usr/include/sys/file.h | 9 +++++++++ usr/include/unistd.h | 1 - 2 files changed, 9 insertions(+), 1 deletions(-) create mode 100644
1998 Feb 04
0
An old ld-linux.so hole
Section I. Overview Hello, About a half year ago there was some rumour on bugtraq concerning a buffer overflow in Linux dynamic linkers, ld.so and ld-linux.so. You can take a look at the beginning of the thread at http://www.geek-girl.com/bugtraq/1997_3/0089.html to refresh old memories; I''ll capitalize anyway. Briefly, there exists a buffer overrun in ld-linux.so versions 1.7.14,
2003 Apr 20
0
How I got Samba 2.2.8a to run on OpenBSD 3.2 i386
First of all, GREAT WORK! I now have my very own Windoze domain thanks to Samba :) Now, getting Samba to work fully on OpenBSD was harder than I'd think it would be. To get smbd to compile somewhat cleanly, I had to hack ./source/include/config.h thusly: remove USE_SETREUID, add USE_SETEUID. Then, I hacked sec_ctx.c like the attached diff shows, to get rid of some assert_gid panic when
2007 Sep 13
0
flock() vs. fnctl()
Hi list, as I know from the README in the source files OCFS2 does not support cluster aware flock. Our web developers have to use the php flock() function. There is a second method how php can handle locking - via the fnctl() function. Will this be supportet? I assume that OCFS2 supports the c-function open() mit O_CREATE as well as O_EXCL. Am I right? Regards, Stephan
2007 Mar 15
2
flock problems with index files and passwd-file
While experimenting a bit, I found that for some reason, locking indexes with flock is problematic, but only if user is taken from passwd-file. The host system is openbsd 3.9, dovecot's configuration is added at the bottom. Authentication is from two places - first from mentioned passwd-file, then from passwd file using bsdauth (in this case, there're no problems with flock). So, if
2005 Jul 10
1
VM Outcall: Rube Goldberg Edition
Resent to the list since I didn't think you would mind. Kevin wrote: > Eric, > > I have been using your vm outcall script for some time and it has worked > well. Thanks for your efforts. > > I am trying to re-install and I can't seem to get a call file generated. > I have set up postfix and in the log it appears that it pipes the > message to the vmoutcall
2008 Dec 10
0
No subject
will be used by Nut's powercom driver. I've failed to google anything about this UPS working with Linux. > > What does 'lsusb -d 0d9f:0002' say for this device? Bus 001 Device 002: ID 0d9f:0002 Powercom Co., Ltd The current progress is like this: With help from linux-hotplug guys (http://thread.gmane.org/gmane.linux.hotplug.devel/13551) I've managed to /dev/ttyUSB0 to