[Samba] File locking ?

Steve Thom samba at steventhom.com
Thu Aug 1 22:31:02 GMT 2002

I have a client running an Access-based application on a samba server. At
first, the first guy that opened the database got in fine, but nobody else
could get in. The problem was the lock file. It had full access to the
original user, read-only to the other users.

I changed the create mask for that share to 0777, making the lock file
writeable to the other users after being created by the first. Works like a

Not sure if this answers your question, but it'll no doubt answer someone


----- Original Message -----
From: "Joel Hammer" <Joel at HammersHome.com>
To: "Mike Stewart" <mike at powys-training.co.uk>; <samba at lists.samba.org>
Sent: Monday, July 29, 2002 3:57 PM
Subject: Re: [Samba] File locking ?

> I don't know much about this but:
> What is the application? Locally, on my hard drive, some apps put a lock
> on a file, some don't. If you read man smb.con, locking is on by default,
> but the app has to request the lock.
> smbstatus should show the locked files.
> Joel
> On Mon, Jul 29, 2002 at 02:06:55PM +0100, Mike Stewart wrote:
> > Where/what do I set to "lock" a file while a user has it open.  I'm very
new to Linux & Samba and struggling to get it all running smoothly...  I've
now got as far as setting up a group to access a specific directory and
contents but notice that several users can have the same file open for
editing at the same time. TIA. Mike.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list