Copy Folders and Files While Keeping Ownership and Permissions

Posted October 8, 2005 by MickeyMouse in Windows installation

Most copy commands give the new files and directories the same security information as the parent directory. The following tutorial explains how to preserve the ownership and ACL information.

You are in an NTFS (New Technology File System) environment, moving around folders and files. Then you notice that the Access Control List (ACL) information for those folders is not what you expected.

Typical copy commands do not preserve the ownership and ACL infomation.

To preserve this information, you must copy with the XCOPY command.

XCOPY /O will preserve this information correctly.

The Conversation

Follow the reactions below and share your own thoughts.