Few weeks ago me and another person sent some mails about the impossibility to rename multimedia files in samba shares. I told that was not a problem of samba as windows locked the files for the preview. Jeremt did not manage to reproduce this effect. Now I found how come over this problem (and also how to produce it :-) ): In the Win 2000, I did not any test for XP, folder option-->General, there are some options. If You flag "Enable Web content in Folders" You will se the preview of multimedia files on the left of your windows, and you will not be albe any more to rename or delete these types of files. I personally think that the behaviour of samba It is correct, and I am thinking that windows do not lock any file when he open it. It may seem theorical... Bye Davide
On Thu, Mar 21, 2002 at 07:46:03AM +0100, Davide Parise wrote:> Few weeks ago me and another person sent some mails about the impossibility > to rename multimedia files in samba shares. > > I told that was not a problem of samba as windows locked the files for the > preview. Jeremt did not manage to reproduce this effect. > > Now I found how come over this problem (and also how to produce it :-) ): In > the Win 2000, I did not any test for XP, folder option-->General, there are > some options. If You flag "Enable Web content in Folders" You will se the > preview of multimedia files on the left of your windows, and you will not be > albe any more to rename or delete these types of files. > > I personally think that the behaviour of samba It is correct, and I am > thinking that windows do not lock any file when he open it. > > It may seem theorical...No it's not and I think I've finally fixed it correctly in the latest SAMBA_2_2 CVS and HEAD. If people would like to check out either branch and test it I'd appreciate it. Thanks, Jeremy.
Hi Downloaded from cvs 22 Mar 2002 6pm (ish) still receive the share violation when trying to rename an mgeg file. Make bombed out with --with-smbmount removed that and all went well. Your recycle vfs works well. [shr] comment = World Writable path = /shr read only = No guest ok = Yes create mask = 0777 vfs object = /usr/local/samba/lib/recycle.so vfs options = recycle=.recycle David Mulcahy Date: Thu, 21 Mar 2002 09:47:11 -0800 To: Davide Parise <d.parise@agora.it> Cc: Samba <samba@lists.samba.org> Subject: Re: [SRe: [Samba] Cannot rename problem solvedamba] Cannot rename problem solved From: jra@samba.org (Jeremy Allison) On Thu, Mar 21, 2002 at 07:46:03AM +0100, Davide Parise wrote:> Few weeks ago me and another person sent some mails about the impossibility > to rename multimedia files in samba shares. > > I told that was not a problem of samba as windows locked the files for the > preview. Jeremt did not manage to reproduce this effect. > > Now I found how come over this problem (and also how to produce it :-) ): In > the Win 2000, I did not any test for XP, folder option-->General, there are > some options. If You flag "Enable Web content in Folders" You will se the > preview of multimedia files on the left of your windows, and you will not be > albe any more to rename or delete these types of files. > > I personally think that the behaviour of samba It is correct, and I am > thinking that windows do not lock any file when he open it. > > It may seem theorical...No it's not and I think I've finally fixed it correctly in the latest SAMBA_2_2 CVS and HEAD. If people would like to check out either branch and test it I'd appreciate it. Thanks, Jeremy.
I had a similar problem with the recycle directory - try setting the permissions to 777 on the recycle directory. -----Original Message----- From: jra@samba.org [mailto:jra@samba.org] Sent: 23 March 2002 19:42 To: David Mulcahy Cc: Jeremy Allison; samba@lists.samba.org Subject: Re: [Samba] Cannot rename problem solved On Sat, Mar 23, 2002 at 02:28:36PM +0000, David Mulcahy wrote:> Hi Jeremy > > That now works great, rename and delete when in preview with web content > enabled, Brilliant. > > However (and feel free to tell me to p*** off at any time) if you then use> the recycle vfs as well in the same dir things go wrong. You can still > rename but when you try to delete, the file will not delete (it disappears> but refresh displays it again) and if you then try to delete another filein> that dir you get an error message that the specified network name is not > available.Hmmm. Can you send me a debug level 10 log of this. I'll try and reproduce it. I'm hoping to make the recycle VFS module a supported part of 2.2.4. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Sat, Mar 23, 2002 at 08:10:43PM -0000, Noel Kelly wrote:> I had a similar problem with the recycle directory - try setting the > permissions to 777 on the recycle directory.Thanks - do you think the default permissions on .recycle should be 770 to allow group members to delete ? Jeremy.
I guess that would work if you want the users to have access to it. We keep the recycle bins for admin use only and don't share them back out to users. I suppose the problems start to arise if someone with special rights to a subfolder (ACLs only I suppose) deletes some sensitive files and these files get moved into the main share's recycle bin where they can be read by all and sundry ? I suppsoe it is install dependent - but allowing the situation to arise whereby users cannot delete a file would be a real bummer. Also, if it is an app like Word/Excel/Staroffice using the file then you would not actually be able to modify the files either because of the way it replaces the original with the new version. Noel -----Original Message----- From: jra@samba.org [mailto:jra@samba.org] Sent: 23 March 2002 20:26 To: Noel Kelly Cc: 'jra@samba.org'; David Mulcahy; samba@lists.samba.org Subject: Re: [Samba] Cannot rename problem solved On Sat, Mar 23, 2002 at 08:10:43PM -0000, Noel Kelly wrote:> I had a similar problem with the recycle directory - try setting the > permissions to 777 on the recycle directory.Thanks - do you think the default permissions on .recycle should be 770 to allow group members to delete ? Jeremy.