Share via


파일 및 폴더의 ACL 정보 및 네트워크 공유 권한을 백업/복원

 

?? ?? ??? ?? ??? ??? ??? ??? ? ??? ??? ????

???? ??/???? ?? ACL ? ???? ?? ??? ?? ??? ? ??? ????.

??/???? ?? ACL ?? ?? NTFS ?? ??? ??? ?? Xcacls, Xcacls.vbs ?? Cacls ? ?? ?? ??? ? ????, Windows Vista ??? Icacls ?? ?? ???? ??/?? ??? ?? ? ????.

?? ? ?? Windows 2003 SP2 ? Windows Server 2008, Windows 7 ? ???????.

? ?? ???? ?? ? ?? ??? ?? ? ???? ??? ?? ?????.

 

<NTFS ?? ??? ?? ??? ??/???? ??>

?? ??, d: ???? ?? database ?? ??? ??? ????, ??? ???? ?? ???.

   Icacls.exe d:\database /save acl.txt /t /c

clip_image002

??! ??? ??? ??? ?? ???? Icacls.exe ? ?????.

Sids may be in either numerical or friendly name form. If a numerical

form is given, affix a * to the start of the SID.

/T indicates that this operation is performed on all matching

files/directories below the directories specified in the name.

/C indicates that this operation will continue on all file errors.

Error messages will still be displayed.

/L indicates that this operation is performed on a symbolic link

itself versus its target.

/Q indicates that icacls should supress success messages.

 

???, ?? ? ???? ??? ??? ?????.

   Icacls.exe d:\ /restore acl.txt

???? ?? ??? ?? ? ?? ????. ?? ??? ?? ?? ????? ?? ??? D:\database ? ???? ?? d:\ ? ???????. ??? ??? ??? ?? ??????? ?????.

 

<acl.txt ?? ??>

database

D:(A;ID;FA;;;BA)(A;OICIIOID;GA;;;BA)(A;ID;FA;;;SY)(A;OICIIOID;GA;;;SY)(A;ID;0x1301bf;;;AU)(A;OICIIOID;SDGXGWGR;;;AU)(A;ID;0x1200a9;;;BU)(A;OICIIOID;GXGR;;;BU)

database\New Text Document.txt

D:(A;ID;FA;;;BA)(A;ID;FA;;;SY)(A;ID;0x1301bf;;;AU)(A;ID;0x1200a9;;;BU)

database\perfctrl.dll

D:(A;ID;FA;;;BA)(A;ID;FA;;;SY)(A;ID;0x1301bf;;;AU)(A;ID;0x1200a9;;;BU)

database\xperf.exe

D:(A;ID;FA;;;BA)(A;ID;FA;;;SY)(A;ID;0x1301bf;;;AU)(A;ID;0x1200a9;;;BU)

database\XperfHighCPU.cmd

D:(A;ID;FA;;;BA)(A;ID;FA;;;SY)(A;ID;0x1301bf;;;AU)(A;ID;0x1200a9;;;BU)

 

< ???? ?? ??? ??/???? ?? >

???? ?? ??? ?? ?? ?? ?? ???? ??? ?? ????? ?? “????” ? ??? ?? Networkshare.reg ? ?????.

   HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

?? ???? ?? ??? ?? ?? ???? ?? ???? ?? Networkshare.reg? ???? ???? ??? ???? ???.

Saving and restoring existing Windows shares

https://support.microsoft.com/kb/125996/en-us

?? ?? ?? :

How to use Xcacls.vbs to modify NTFS permissions

https://support.microsoft.com/kb/825751/en-us

Cacls

https://technet.microsoft.com/en-us/library/bb490872.aspx