samba rename bug - solution?

Craig White craigwhite at azapple.com
Sat Mar 7 23:19:16 MST 2009


On Sat, 2009-03-07 at 22:18 -0700, Eric Shubert wrote:

> > I gather that the problem is simply the tool you are using to manipulate
> > the file since explorer is capable of renaming the readonly file albeit,
> > with warning.  I suspect that the rsync/cygwin combo is incapable of
> > making a useful response to smb alert message. Perhaps some flag setting
> > in rsync on cygwin allows a '--force' but that just seems to be a very
> > ugly hack.
> 
> No, the 'tool' being used is the CLI "ren" command. Part of standard 
> dos. It's easily reproducible. See 
> https://bugzilla.samba.org/show_bug.cgi?id=6173
----
good idea
----
> > Myself, I would still use robocopy.exe for all Windows file operations
> > if sophisticated ACL settings are involved.
> 
> That might end up being a better choice. I wouldn't call the read-only 
> bit a sophisticated ACL setting though. ;)
----
I gather that rsync doesn't have full comprehension of Windows file
semantics and quite possibly, the dos ren doesn't either.

One of the things you have to appreciate about samba is that it has to
reproduce the behavior of various Microsoft file servers including some
broken behavior as well.

I have at various times fooled with cygwin and also Microsoft's NFS
software but when it comes to copying files for Microsoft clients, I
tend to use native tools - likewise, with Macintosh.

This is a link for downloading free from Microsoft (Win2K3 Server or
WinXP)...
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

I can assure you that robocopy.exe can 'MOVE' a readonly file to/from a
samba server but it is not a rename utility.

Craig



More information about the PLUG-discuss mailing list