The security Permissions aren’t the same when I use Robocopy /copyall or robocopy /Sec.
I see this when using Robocopy.exe version XP027 and trying to copy inherited permissions. In the XP026 and earlier versions inherited permissions from the source would be copied to the destination. This is no longer the case in XP027.
Why Does this Happen?
This is the result of a design change to prevent another bug. It looks like there are no plans to change this at this time.
How to Workaround:
You can use the /MIR switch to get a similar behavior and in my tests it did work with the inherited permissions but realize that this will delete anything on the destination that isn’t on the source. There is also some odd behavior with this switch. I’ve seen a few references to this blog here that spells it out
How to Repro:
Make 2 directories
Md a
Md b
On c:\a add a textfile
On c:\b uncheck “Include inheritance permissions from this object’s parent” and remove the inherited permissions and grant yourself full control
Use robocopy.exe XP027
Robocopy.exe c:\a c:\b /copyall
View the permissions on c:\b they will remain unchanged
Delete the textfile from c:\b
Use robocopy.exe XP026
View the security settings on c:\a and c:\b and they will match
Comments
Anonymous
January 01, 2003
I’m glad someone found it useful :)Anonymous
August 19, 2010
Thanks a lot for the information. I had this error and I don't know why, until now. RegardsAnonymous
October 12, 2012
This does not address an actual migration. Merely a copy from one folder to another on the same drive? In my case from one 2003 server to a 2008r2 server.Anonymous
September 16, 2014
Please use the version XP010 version to copy permission from windows 2003 to NAS appliance like Netapp.
XP027 will not copy the permission. This is what we encounter in our migration project.