mobile sharing, attention to permissions
Because of some needs, it is sometimes necessary to move the shared folder to a different directory. Although the copy operation is simple, it is not common for replication to replicate the user access information contained in the shared folder and the specific shared file. Using the "XCOPY" command is a good solution to this problem.
Take the CCE shared folder on the D-disk as an example, and copy the shared file and the user access information it contains to the CCEB shared folder on the D drive. After running the xcopy CCE cceb/o/S command at the d:\> prompt in the command Prompt window, you can copy the CCE shared folder and the included user access information to the CCEB shared folder. Where the "/o" parameter means "copy the file ownership and ACL information", "/S" means "copy directory and subdirectories".
Be prepared, backup ACL
If the shared folder contains ACL information (user access) is accidentally lost, the memory is difficult to recover, but also may cause omission, to the shared folder to leave a security risk. The user can then use the cacls command to do a backup of the ACL information for these shared folders.
Take the shared folder CCE of the D drive as an example, the shared folder contains a large amount of ACL information, and the following uses the CACLS command to back up all the ACL information in this shared folder. In the Command prompt window, switch to the d:\> prompt and run the cacls d:\ cce/t > D:\aclsCCE.txt "command, the ACL information contained in the shared folder CCE is backed up to the" aclsCCE.txt "file in the D drive. When the ACL information is accidentally lost, it is possible to reset the access rights of the CCE shared folder according to the ACL information in the backup file "AclsCCE.txt", which avoids the omission of some ACL information and guarantees the security of the shared folder.
File server: Move and permission settings for shared folders Backup 2012-04-28