From owner-freebsd-questions Tue May 11 2:23:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from freedom.cybertouch.org (freedom.cybertouch.org [216.183.4.2]) by hub.freebsd.org (Postfix) with ESMTP id C40F414DE5 for ; Tue, 11 May 1999 02:23:46 -0700 (PDT) (envelope-from lnb@cybertouch.org) Received: from wired (wired.cybertouch.org [216.183.4.3]) by freedom.cybertouch.org (8.9.3/8.9.3) with SMTP id FAA82412; Tue, 11 May 1999 05:23:43 -0400 (EDT) Message-Id: <199905110923.FAA82412@freedom.cybertouch.org> From: "Lanny Baron" To: cwasser@v-wave.com, freebsd-questions@FreeBSD.ORG Date: Tue, 11 May 1999 05:24:03 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Samba issues... Reply-To: lnb@cybertouch.org In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.01d) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > To whom it may concern, we are currently trying to provide a free > alternative using Samba to our clients who are currently using Windows98 > workstations and a NT 4.0 server. We have samba up and running and it > works extremely well, however we have run into one issue which we > ourselves do not seem to be able to resolve. Our setup is as follows: > > Samba works fine, clients can connect and authorize to Samba and use both > file and printing services. Clients without a valid login cannot connect > to Samba (and this is fine too). The problem is (as you can see listed > below in /samba/public) if I use a workstation to create a document and > regardless whether I save it or not, another client can access the file > and make changes and even delete the file while the original workstation > has the file open. Basically, there is no filelocking happening. We > absolutely must have filelocking just incase our clients software isn't > smart enough to determine whether the file/record in question is opened > and locked or not. We've tested with some DOS based Point of Sale software > and it DOES recognize the file as being locked but we assume it was > handled internally by that software. The workstations however do not see > the file as being locked and merrily delete/modify the open file. HI, Where are your shares? Is Samba doing logons? Why are you having a hosts allow? Here is a config for one of my Samba servers running with a billy NT box. I use NT as the PDC, yet the Samba server does logons. Notice the OS level. If you still have problems, feel free to contact me. Regards Lanny Baron http://ca.samba.org/samba/samba.html # Global parameters workgroup = CYBERTOUCH server string = Freedom's FreeBSD/Samba File Server 1 security = DOMAIN encrypt passwords = Yes password server = WIRED username map = /usr/local/etc/username.map log level = 2 log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY logon script = netlogin.pds logon path = \\%N\%U\Profiles domain logons = Yes local master = No dns proxy = No wins proxy = Yes wins support = Yes guest account = pcguest logon script = netlogin.pds logon path = \\%N\%U\Profiles domain logons = Yes local master = No dns proxy = No wins proxy = Yes wins support = Yes guest account = pcguest [homes] comment = Home Directories read only = No browseable = No [netlogon] comment = Network Logon Service path = /usr/local/etc/netlogon guest ok = Yes [Profiles] path = /%N/%U/Profiles guest ok = Yes browseable = No [printers] comment = All Printers path = /var/spool/samba print ok = Yes browseable = No [tmp] comment = Temporary file space path = /tmp read only = No guest ok = Yes [office-setup] comment = Directory for MS Office Setup on Work Stations path = /data/shared/msoffice valid users = @staff [msoffice] comment = Directory to MS Office path = /data/shared/msoffice/office valid users = @staff, @wheel, mrsmith joey write list = @staff, @wheel, lnb, mrsmith create mask = 0775 directory mask = 0775 > Thanks, > Chris Wasser. > CMD Micro Services Inc. > > > > [global] > workgroup = WORKGROUP > server string = Bedrock Server > hosts allow = 192.168.1. 127. > load printers = yes > printcap name = /etc/printcap > printing = bsd > guest account = nobody > log file = /var/log/log.%m > max log size = 50 > security = user > encrypt passwords = yes > socket options = IPTOS_LOWDELAY TCP_NODELAY > os level = 33 > preferred master = yes > domain logins = yes > deadtime = 1 > logon path = \\%L\Profiles\%U > dns proxy = no > > # Added to try to do filelocking > read predicition = yes > lock directory = /var/spool/lock > locking = yes > oplocks = False > share modes = yes > strict locking = yes > blocking locks = False > ole locking compatibility = yes > > [homes] > comment = Home Directories > path = /samba/home/%U > browseable = no > writeable = yes > > [Profiles] > path = /usr/local/samba/profiles > browseable = no > guest ok = yes > > [printers] > comment = All Printers > path = /var/spool/samba > browseable = no > guest ok = no > writable = no > printable = yes > > [public] > comment = Public Share > path = /samba/public > public = yes > only guest = yes > writable = yes > printable = no > > [cdrom] > comment = Network CDROM > path = /samba/cdrom > root preexec = /sbin/mount_cd9660 /dev/acd0a /samba/cdrom > public = yes > only guest = yes > writable = no > printable = no > locking = yes > root postexec = /sbin/umount /samba/cdrom > > > Directory output of /samba: > total 69 > 1 drwxr-xr-x 5 root wheel 512 May 4 17:20 ./ > 1 drwxr-xr-x 19 root wheel 512 May 6 16:06 ../ > 1 drwxr-xr-x 2 root wheel 512 May 4 17:20 cdrom/ > 1 drwxr-xr-x 4 root wheel 512 May 6 16:06 home/ > 1 drwxr-xr-x 2 nobody nogroup 512 May 8 12:28 public/ > > Directory output of /samba/cdrom: > total 2 > 1 drwxr-xr-x 2 root wheel 512 May 4 17:20 ./ > 1 drwxr-xr-x 5 root wheel 512 May 4 17:20 ../ > > Directory output of /samba/home: > total 4 > 1 drwxr-xr-x 4 root wheel 512 May 6 16:06 ./ > 1 drwxr-xr-x 5 root wheel 512 May 4 17:20 ../ > 1 drwxr-xr-x 2 bedrock users 512 May 6 16:06 bedrock/ > 1 drwxr-xr-x 2 tdf users 512 May 7 15:50 tdf/ > > Directory out of /samba/public: > total 3 > 1 drwxr-xr-x 2 nobody nogroup 512 May 8 12:28 ./ > 1 drwxr-xr-x 5 root wheel 512 May 4 17:20 ../ > 1 -rwxr--r-- 1 nobody nogroup 15 May 8 12:28 test.txt* > > -- > This is a copy of the letter I sent to the Samba guys but I figure I'd try > posting it here too... Any help would be greatly appriciated. > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message