Karyn Joseph
2002-Mar-06 13:21 UTC
[Samba] Multiple samba servers, 1 smb.conf.include file
Hi Everyone -- Currently we are running two samba servers, server1 and server2 for example, which are each using the same smb.conf.editme as an include file to the server's smb.conf file for it's shares. In other words if you go to \\server1\my-share or \\server2\my-share, it would be the identical share. One quite large problem that we are running into is that although each server will apply file locking, if two people connect to the same file from both servers, they will both get write permissions to the file. For example, if I open \\server1\my-share\test.doc, and someone else runs \\server2\my-share\test.doc, we would both be able to make edits and save, meaning of course, that someone is losing their edits. I am wondering if there is anyone else running multiple samba servers sharing out the same files. And if so, do you know of any mechanism to ensure the file locking is working across both share environments. Any comments are extremely welcome. Thank you for your time, -- ________________________________________________ Karyn Joseph EIT - Agoura, CA UNIX Administrator 818/874-6116 ________________________________________________
Volker Lendecke
2002-Mar-08 08:35 UTC
[Samba] Re: Multiple samba servers, 1 smb.conf.include file
On Wed, Mar 06, 2002 at 01:12:26PM -0800, Karyn Joseph wrote:> I am wondering if there is anyone else running multiple samba servers > sharing out the same files. And if so, do you know of any mechanism to > ensure the file locking is working across both share environments.That won't work, as Samba does not really use the underlying posix locking calls to do its locking. Sharing the same directory from 2 different smbds has to fail. But you could use 'netbios aliases' and achieve much of the same effect. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 240 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20020308/3cd981d4/attachment.bin