Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 22:46:09 -0700 (PDT)
From:      Matthew Hook <matthewh@rds.co.nz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/39827: Copying files using Windows Explorer under Windows 2000 SP2 asks to replace file
Message-ID:  <200206250546.g5P5k9Q5071859@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 24 22:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206250546.g5P5k9Q5071859>