Charles Lee
2002-Feb-05 06:26 UTC
[Samba] Re: Samba 2.2.3 - Unable to replace old file on share
This is how I reproduce the problem... 1) Create a text file on the samba share. Lets call it monkey.txt. 2) Copy monkey.txt from the samba share to somewhere on the client (keeping the same filename). I just copied it to the desktop. 3) Edit the version of monkey.txt that is now on the client and add some text to it. 4) Try to copy the version of monkey.txt that is on the client from the client to the same location as the monkey.txt on the samba share (ie to overwrite the one on the share). What should happen is that that dialog about replacing a file showing the size of the old file and the size of the new file should appear. What I get is an error saying something like "Access denied. The file may be in use.". Neither of the files are in use and the file on the share can be deleted or moved without any error. I probably should have mentioned that I am running Samba as a PDC. I hope this helps. Let me know if you can reproduce this and I'll try to get a copy of my smb.conf to you later if that would help more. Went back to 2.2.2 last night and definatley don't have this problem now. Thanks very much, Charlie>Date: Mon, 4 Feb 2002 14:33:02 -0800 >To: Charles Lee <Charles.Lee@exeter.ac.uk> >Cc: samba@lists.samba.org >Subject: Re: [Samba] Samba 2.2.3 - Unable to replace old file on share withnew file>From: jra@samba.org (Jeremy Allison) > >On Mon, Feb 04, 2002 at 02:42:18PM +0000, Charles Lee wrote: >> Though I am unable to supply any logs at present (I'm at work... talkedflat>> mate thought testing this at home) I can confirm the problems described >> earlier by Martin Thomas and Gene Cohler. >> >> When trying to replace an old file on a share with a new file of the samename>> an access denied message is displayed. The old file can be deleted from the >> share. >> >> Client: Windows 2000 SP2 >> Server: Samba 2.2.3 compiled from CVS last night >> Server Platform: Intel Hardware, Mandrake 7.2 with custom kernel 2.2.17 >> smb.conf (haven't got it here): ACL support is disabled, using defaultcreate>> permissions on the share that was tested > >Can't reproduce this on my W2K client. Please explain >*exactly* how you reproduce this. > >Thanks, > > Jeremy. > > >--__--__--
Yes, I have the problem too. Overwriting *any* file on a share using windows explorer results in an error message that the *source* file may be in use. However, the same copy but then from command line (dos) works perfectly. I compiled latest samba which runs on redhat 7.2 and a windows 2000 client. bvr. On Tue, 5 Feb 2002 13:15:44 +0000, Charles Lee wrote:>This is how I reproduce the problem... > >1) Create a text file on the samba share. Lets call it monkey.txt. > >2) Copy monkey.txt from the samba share to somewhere on the client (keeping >the same filename). I just copied it to the desktop. > >3) Edit the version of monkey.txt that is now on the client and add some text >to it. > >4) Try to copy the version of monkey.txt that is on the client from the client >to the same location as the monkey.txt on the samba share (ie to overwrite the >one on the share). > >What should happen is that that dialog about replacing a file showing the size >of the old file and the size of the new file should appear. What I get is an >error saying something like "Access denied. The file may be in use.". Neither >of the files are in use and the file on the share can be deleted or moved >without any error. > >I probably should have mentioned that I am running Samba as a PDC. > >I hope this helps. Let me know if you can reproduce this and I'll try to get a >copy of my smb.conf to you later if that would help more. > >Went back to 2.2.2 last night and definatley don't have this problem now.
Andrew Bartlett
2002-Feb-06 00:48 UTC
[Samba] Re: Samba 2.2.3 - Unable to replace old file on share
bvr wrote:> > Yes, I have the problem too. > > Overwriting *any* file on a share using windows explorer > results in an error message that the *source* file may be > in use. > However, the same copy but then from command line (dos) > works perfectly. > > I compiled latest samba which runs on redhat 7.2 and a windows 2000 client.Yep, a 2.2.3a release is on its way - and the brown paper bags have been ordered :-). Or just grap 2.2 CVS. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net samba.org build.samba.org hawkerc.net