Quickbooks + samba
David Collier-Brown
David.Collier-Brown at canada.sun.com
Fri Sep 15 12:21:50 GMT 2000
Glenn MacGregor wrote:
> I have put up a share for the accounting people where tey store the
> quickbooks files. When one person accesses the file everything is
> fine. smbstatus looks like this:
>
> Locked files:
> Pid DenyMode R/W Oplock Name
> --------------------------------------------------
> 2216 DENY_NONE RDWR EXCLUSIVE+BATCH
> /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBI Tue Sep 12
> 13:03:07 2000
> 2216 DENY_NONE RDWR EXCLUSIVE+BATCH
> /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12
> 13:03:06 2000
> notice the Quickbooks stuff has the exclusive+batch oplock. Now when
> someone else tries to access the file (which is allowed, it worked when
> I had the files on an NT workstation) they get an error saying it is not
> a quickbooks file, and the smbstatus follows:
>
> Locked files:
> Pid DenyMode R/W Oplock Name
> --------------------------------------------------
> 2216 DENY_NONE RDWR EXCLUSIVE+BATCH
> /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBI Tue Sep 12
> 13:03:07 2000
> 2229 DENY_ALL RDWR EXCLUSIVE+BATCH
> /usr1/oracom/accounting/Quickbooks 2000/Active/INET/_License.tmp Tue
> Sep 12 13:07:33 2000
> 2229 DENY_NONE RDONLY NONE
> /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12
> 13:07:33 2000
> 2216 DENY_NONE RDWR NONE
> /usr1/oracom/accounting/Quickbooks 2000/Active/New QB.QBW Tue Sep 12
> 13:03:06 2000
The switch to non-oplocked (visible in QB.QBW) is intentional,
as we're responding to an access by breaking any oplocks.
The "not a quickbooks file" indicates
a) they picked a bad error message, or
b) the file has been overwritten.
As a first step, put oplocks=no in the share where
the quickbooks files live: if the problem goes away,
it's a quickbooks feature (;-)). If not, we may have
a samba issue.
Is this Samba 2.0.7, and are any of the clients Win2000?
--dave
--
David Collier-Brown, | Always do right. This will gratify some people
185 Ellerslie Ave., | and astonish the rest. -- Mark Twain
Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com
More information about the samba
mailing list