From nobody@www.freebsd.org  Mon Jun 24 22:46:11 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 1E05837B404
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2002 22:46:11 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5P5k9hG071860
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2002 22:46:09 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5P5k9Q5071859;
	Mon, 24 Jun 2002 22:46:09 -0700 (PDT)
Message-Id: <200206250546.g5P5k9Q5071859@www.freebsd.org>
Date: Mon, 24 Jun 2002 22:46:09 -0700 (PDT)
From: Matthew Hook <matthewh@rds.co.nz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Copying files using Windows Explorer under Windows 2000 SP2 asks to replace file
X-Send-Pr-Version: www-1.0

>Number:         39827
>Category:       ports
>Synopsis:       Copying files using Windows Explorer under Windows 2000 SP2 asks to replace file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 24 22:50:01 PDT 2002
>Closed-Date:    Sun Aug 04 11:13:36 PDT 2002
>Last-Modified:  Sun Aug 04 11:13:36 PDT 2002
>Originator:     Matthew Hook
>Release:        4.6
>Organization:
R&D Technology Solutionz
>Environment:
FreeBSD lanserv.rds.co.nz 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11 06:14:1
2 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
>Description:
      If you install the samba port and create a simple share on the freebsd machine all appears ok from the windows side until I try to copy a file.  When the file is copied using Windows explorer the dialog

+-------------------------------------------------------+
  This folder already contains a file named 'label.zip'.

  Would you like to replace the existing file
  0 bytes
  modified: Today, 25 June 2002, 5:39:07 PM

  with this one?
  1.50 KB
  modified: Tuesday, 18 June 2002, 3:51:27 PM

                                               YES  NO
+-------------------------------------------------------+

My smb.conf File follows:

#=================== Global Settings ===========================
[global]
   debug level = 3
   workgroup = NARNIA
   server string = Samba Server
   netbios name = POGO
   hosts allow = 192.168.1. 127.

   log file = /var/log/samba/log.%m
   max log size = 50
   security = user
   encrypt passwords = yes
   local master = yes
   domain master = yes
   os level = 33


#===================== Share Definitions =======================
[data]
  comment = Data share
  path = /data
  writeable = yes
  write list = @staff
  inherit permissions = yes

The data directory has the following permissions set.

bash-2.05a$ ls -ld /data
drwxrwxrwx  9 root  staff  512 Jun 25 17:41 /data
bash-2.05a$

On further investigation it appears as though Samba creates the file
before Windows 2000 has checked if it exists.  This might be a problem
in Win2K.  It seems to create a 0 length file before popping up the
message box.  This does not occur in WinNT 4.0(SP6a).

Is this a bug in Samba or the Port?
>How-To-Repeat:
      See above in the description
>Fix:
      Unknown
>Release-Note:
>Audit-Trail:

From: matthew.hook@rds.co.nz
To: freebsd-gnats-submit@FreeBSD.org, matthewh@rds.co.nz
Cc:  
Subject: Re: ports/39827: Copying files using Windows Explorer under Windows 2000
 SP2 asks to replace file
Date: Fri, 19 Jul 2002 17:59:58 +1200

 After much looking into this I have discovered that it is not a problem
 with the port as such
 but is a problem with Samba on FreeBSD as I dowloaded the source
 independant of
 the port and tried it.  I've tried all sorts of configurations and even
 tried turning off soft-updates
 and still the problem keeps recurring.
 
 This problem is serious enough that if a fix isn't found soon I'll have to
 drop freebsd and go back
 to using Linux.   This is a darn shame since I find using freebsd so much
 less painless to use.
 
 Matt
 
 
 
 

From: matthew.hook@rds.co.nz
To: freebsd-gnats-submit@FreeBSD.org, matthewh@rds.co.nz
Cc:  
Subject: Re: ports/39827: Copying files using Windows Explorer under Windows 2000
 SP2 asks to replace file
Date: Mon, 22 Jul 2002 16:36:15 +1200

 After installing Gentoo Linux and then Samba I have discovered that the
 problem is
 with Samba and nothing to do with any part of FreeBSD.
 
 - Matt
 
 

From: matthew.hook@rds.co.nz
To: freebsd-gnats-submit@FreeBSD.org, matthewh@rds.co.nz
Cc:  
Subject: Re: ports/39827: Copying files using Windows Explorer under Windows 2000
 SP2 asks to replace file
Date: Mon, 22 Jul 2002 16:53:52 +1200

 I've now figured it out.
 
 The Problem appears to be caused by Command Antivirus on Windows 2000.
 I am running Command Antivirus at work (problem occurs on all servers
 running samba).
 But not on my home production system where I'm not running Command
 Antivirus.
 
 See here:
 http://lists.samba.org/pipermail/samba-technical/2001-September/031288.html
 
 To get around the problem either uninstall command anti-virus (unconfirmed)
 or put:
 
 oplocks = no
 
 in smb.conf
 
 That fixes the problem.
 
 - Matt
 
 
State-Changed-From-To: open->closed 
State-Changed-By: lioux 
State-Changed-When: Sun Aug 4 11:13:00 PDT 2002 
State-Changed-Why:  
Submitter reports problem fixed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39827 
>Unformatted:
