Copying Permissions

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...
LVL 11
Jason210Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Pete LongConnect With a Mentor Technical ConsultantCommented:
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
 
Jason210Author Commented:
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
 
Pete LongTechnical ConsultantCommented:
OK did you "untick" the allow inheritable permissions box before you robocopied it?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Jason210Author Commented:
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
 
Jason210Author Commented:
Sorry, that first line should read:

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

0
 
Pete LongTechnical ConsultantCommented:
the latest copy is in the 2003 resource kit
0
 
Jason210Author Commented:
Ok, going for that, but I'm using Win 2K server....hope this won't cause problems.
0
 
Jason210Author Commented:
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
 
Pete LongTechnical ConsultantCommented:
Tip Top - that would have been the first time I'd seen robocopy fail :)

Glad your sorted
Pete
0
 
Jason210Author Commented:
Hmm - this is quite a good tool for doing backups with.
0
 
Pete LongTechnical ConsultantCommented:
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
All Courses

From novice to tech pro — start learning today.