Reply
Tue 21 Feb, 2006 01:30 pm
Just how exactly do you do that?
In Unix, I can do either:
# cp -p source destination
# find . | cpio -padmux destination
I cannot figure out a way to do this in Windows. I tried xcopy with the /O option, but even though I am a domain admin, it won't let me create the files on the new drive with ownership other than my own.
Anyone? This is driving me nuts.
This is one of the first hits I found for UNIX Access Control Lists:
http://www.computerhope.com/unix/usetfacl.htm
Dunno how helpful it is, I'm a beginner in UNIX and prolly not a lotta help.
Ah, I hit submit and then found this:
http://www.dartmouth.edu/~rc/help/faq/permissions.html
Might be more helpful.
No, I know how to do it in Unix. It's Windows that I'm having problems with.
Great, but I'm still at a loss for how to preserve those ownships and ACL's when copying from server to server.
My guess would be there is a security setting to prevent people from doing just that. Could be an administrator wanted to prevent accidentally doing it so set it up that way.
xcopy says it is supposed to do it. Did you try the /x option too?
I found this ...
Quote:Effective Permissions Tool in Windows 2003:
Determining effective permissions can get confusing, especially on enterprise networks. In Windows 2003, Microsoft included a new feature that helps sort this mess out. If you go to the Advanced properties of the Security tab for NTFS resources, there is a tab titled "Effective Permissions" which allows you to calculate the permissions that apply to users or groups. This tool does not take share permissions into account.
http://www.mcmcse.com/microsoft/guides/ntfs_and_share_permissions.shtml
I tried xcopy but it fails when you use the /O option and the /X option doesn't work as I would expect.
I tried:
xcopy directory D:\target /X
and what it did was copy the contents of Directory into target, instead of copying the directory and then the contents. Not cool.
It might be time to install rsync for windows on your servers.