File server: Move and permission settings for shared folders Backup 2012-04-28

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.