Solved

Copying Permissions

Posted on 2004-08-30
11
240 Views
Last Modified: 2010-03-18
How can I copy a subfolder from one parent folder to another parent folder, but retain the sub-folder's original permissions? Instead they inherit the new parent folder's permissions, even though I unchecked the "allow inheritable permissions" box.

This is my 100th question on EE, so the first person to get it right gets 500...
0
Comment
Question by:Jason210
  • 6
  • 5
11 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 500 total points
ID: 11929728
use robocopy :)

To copy files and maintain they’re NTFS permissions and more importantly their ACL (Access Control List) information. You can use Robocopy (Stands for Robust Copy)

This tool in available in the NT/2000/2003/XP resource kits and can also be downloaded here,
http://www.asia-links.com/biz/download/get.asp?productid=74&file=http://teknoweb.asia-links.com/download/robocopy.zip
Or direct from Microsoft (Full 2003 resource kit)
http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

ROBOCOPY.exe usage and syntax
http://www.ss64.com/nt/robocopy.html
ROBOCOPY.exe (Win XP & .Net Resource Kit ) adds more functionality
http://www.ss64.com/nt/robocopyXP.html
0609 » A better way to replicate.
http://www.jsiinc.com/SUBB/tip0600/rh0609.htm
5409 » How do I use Robocopy to copy ACLs without copying data?
http://www.jsiinc.com/SUBK/tip5400/rh5409.htm
0
 
LVL 11

Author Comment

by:Jason210
ID: 11930033
Thanx Pete.

I got Robocopy and tried it out, but I can't get it to copy the permissions. Read throught the notes, tried attributes switch /A  etc no luck.

Any advice?
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 11930089
OK did you "untick" the allow inheritable permissions box before you robocopied it?
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
LVL 11

Author Comment

by:Jason210
ID: 11930419
Yes, of course. I unticked the Inticked these on the folders I wanted to copy.

I see that there is a switch in the instructions in one the links called /SEC, which standards for security. Howvere, when I tried this switch, it wasn't recognised. Perhaps I have downloaded an earlier version? I used the first link in your post for the d/l.

/jason
0
 
LVL 11

Author Comment

by:Jason210
ID: 11930428
Sorry, that first line should read:

Yes, of course. I unticked these on the folders I wanted to copy.

0
 
LVL 57

Expert Comment

by:Pete Long
ID: 11930448
the latest copy is in the 2003 resource kit
0
 
LVL 11

Author Comment

by:Jason210
ID: 11930538
Ok, going for that, but I'm using Win 2K server....hope this won't cause problems.
0
 
LVL 11

Author Comment

by:Jason210
ID: 11930875
Hi - ok fixed it. I installed the server resource kit on an XP machine, then plucked out the robocopy file from there, put it on the 2K server root, and ran it from the command line. Worked first time! Great! Thanks Pete. Glad you got the points.
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 11930908
Tip Top - that would have been the first time I'd seen robocopy fail :)

Glad your sorted
Pete
0
 
LVL 11

Author Comment

by:Jason210
ID: 11930987
Hmm - this is quite a good tool for doing backups with.
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 11931063
Indeed I use it to copy my remote servers to my central servers, so I dont have to worry about users changing backup tapes :)
they "mirror" accross every evening
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
UNC paths question 18 85
DirectAccess - Open ports 2 64
Windows 7 stuck on the Windows 7 starting logo after pushing the image to a new PC. 17 95
domain controllers numbers 4 87
FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question