On Thu, 2009-03-19 at 08:56 -0700, Eric Shubert wrote: > Craig White wrote: > > 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. > > Thanks for all your insight, Craig. > > I'm going to look (at least a bit) into fixing rsync so that it can > handle read-only files on a samba target. There's no reason it can't > work, and I have an idea how it can be fixed. > > Question about robocopy though. When it's used to copy from native NTFS > to a samba share, do you know if all of the traditional attributes (not > ACLs) are brought across as well? ---- I don't but if you make a couple of example files and use robocopy.exe with a verbose flag, it should give you a fair amount of feedback on relative success. Craig --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss