AndyU0S Posted November 28, 2007 Report Share Posted November 28, 2007 Hi, when I duplicate files from a Windows client onto my Apple Xserve running Retrospect 6.1.126 the files become locked. Even the Folder that was created on the server to back up (duplicate) into becomes locked. The locked files / folders cannot be unlocked using "get info" even though, as administrator and root, I still have read and write privileges. The resulting files and folders cannot be deleted. Retrospect cannot backup (duplicate) a second time, presumably because it cannot overwrite the files previously created. I would appreciate any information regarding how to delete these files without having to reformat the hard drive. I have asked EMC about this in the past and they have been unhelpful, perhaps it is a "feature" of Retrospect that they don't want to know about, or is that me being cynical? Link to comment Share on other sites More sharing options...
rhwalker Posted November 28, 2007 Report Share Posted November 28, 2007 You are being cynical - it's an inherent feature of Unix. I suggest that you talk to Ken Thompson and Dennis Ritchie if you don't like it. Duplicate means just that - copy the file with all of its metadata. Anything less is a bug. If you aren't able to unlock them in Finder's Get Info, then you don't have ownership. I suspect that the owner/group on the Windows machine aren't the same as on your Mac. To investigate/fix, do the following in Terminal after navigating to the file: To see owner/group and whether locked ("uchg" - unchangeable) for the file: ls -alo yourfilename To change ownership/group to yourname/yourgroup: sudo chown yourname:yourgroup yourfilename To unlock (regardless of whether you own the file): sudo chflags nouchg yourfilename To lock (regardless of whether you own the file): sudo chflags uchg yourfilename Russ Link to comment Share on other sites More sharing options...
Mayoff Posted November 28, 2007 Report Share Posted November 28, 2007 You could duplicate to a disk with "ignore ownership" turned on. That would probably reduce permissions issues. Copying Windows files to a Mac disk is likely going to result in unexpected permissions, since those are going to be set by the OS during this duplicate. The Mac version can not copy any file permissions from Windows, even if we did...the Mac doesn't know what a Windows file permission is. Link to comment Share on other sites More sharing options...
AndyU0S Posted December 3, 2007 Author Report Share Posted December 3, 2007 Thanks for the advice. When I did ls -alo name I got owner and group both as Admin (me) but they were also uchg. Bearing in mind that this is a folder that I created on the server I suppose the ownership is not surprising. The thing of concern for me is that the folder becomes locked after the script has run. chflags nouchg name unlocked the folders okay, I didn't need to sudo. Strange that it sometimes does that when I duplicate in Retrospect from a Windows client to the Mac server. I just ran the script again and this time it hasn't locked the folder. At least if it does get locked in the future I will know how to unlock it Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.