ERROR 5 (0x00000005) Copying NTFS Security to Destination Directory
Got this error today using ROBOCOPY to copy files to a SAMBA share.
ERROR 5 (0x00000005) Copying NTFS Security to Destination Directory e:\xxxx\
Access is denied.
I figured out a workaround…
Backup mode cannot circumvent explicit NTFS deny ACL’s if the copier isn’t the objects’ owner.
(Error message: ERROR 5 (0x00000005) Copying NTFS Security to Destination Directory. Access denied.)
You can overcome this error by just copying the data in the files with these Options setting:
/COPY:DT instead of the /COPYALL option.
Why this works…
/COPYALL is equivalent to /COPY:DATSOU, D=Data, A=Attributes, T=Timestamps, S=Security=NTFS ACLs, O=Owner info, U=aUditing info
We only need Data and Timestamps.
Comments