1
   

Maintaining Ownership/ACL's When Copying in Windows

 
 
cjhsa
 
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.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 847 • Replies: 9
No top replies

 
cjhsa
 
  1  
Reply Wed 22 Feb, 2006 07:35 am
Anyone? This is driving me nuts.
0 Replies
 
jespah
 
  1  
Reply Wed 22 Feb, 2006 08:39 am
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.
0 Replies
 
jespah
 
  1  
Reply Wed 22 Feb, 2006 08:39 am
Ah, I hit submit and then found this: http://www.dartmouth.edu/~rc/help/faq/permissions.html

Might be more helpful.
0 Replies
 
cjhsa
 
  1  
Reply Wed 22 Feb, 2006 08:42 am
No, I know how to do it in Unix. It's Windows that I'm having problems with.
0 Replies
 
jespah
 
  1  
Reply Wed 22 Feb, 2006 08:50 am
Okay, hmm, misread the q

http://support.microsoft.com/default.aspx?scid=kb;en-us;318825
http://www.ss64.com/nt/cacls.html
http://www.codeproject.com/win32/accessctrl4.asp

I got those by typing "access control list" ownership windows into Google.
0 Replies
 
cjhsa
 
  1  
Reply Wed 22 Feb, 2006 08:53 am
Great, but I'm still at a loss for how to preserve those ownships and ACL's when copying from server to server.
0 Replies
 
parados
 
  1  
Reply Wed 22 Feb, 2006 09:08 am
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
0 Replies
 
cjhsa
 
  1  
Reply Wed 22 Feb, 2006 09:12 am
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.
0 Replies
 
parados
 
  1  
Reply Wed 22 Feb, 2006 11:38 am
It might be time to install rsync for windows on your servers.
0 Replies
 
 

Related Topics

Clone of Micosoft Office - Question by Advocate
Do You Turn Off Your Computer at Night? - Discussion by Phoenix32890
The "Death" of the Computer Mouse - Discussion by Phoenix32890
Windows 10... - Discussion by Region Philbis
Surface Pro 3: What do you think? - Question by neologist
Windows 8 tips thread - Discussion by Wilso
GOOGLE CHROME - Question by Setanta
.Net and Firefox... - Discussion by gungasnake
Hacking a computer and remote access - Discussion by trying2learn
 
  1. Forums
  2. » Maintaining Ownership/ACL's When Copying in Windows
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 05/03/2024 at 03:15:56