Select the product you need help with
Xcacls.vbs¸¦ »ç¿ëÇÏ¿© NTFS ±ÇÇÑÀ» ¼öÁ¤ÇÏ´Â ¹æ¹ý±â¼ú ÀÚ·á: 825751 - ÀÌ ¹®¼°¡ Àû¿ëµÇ´Â Á¦Ç° º¸±â. ÀÌ ÆäÀÌÁö¿¡¼¿ä¾àMicrosoft´Â Microsoft Visual Basic ½ºÅ©¸³Æ®(Xcacls.vbs)·Î »ç¿ëÇÒ ¼ö ÀÖ´Â Extended Change Access Control List tool(Xcacls.exe)ÀÇ ¾÷µ¥ÀÌÆ®µÈ ¹öÀüÀ» Ãâ½ÃÇß½À´Ï´Ù. ÀÌ ¹®¼¿¡¼´Â Xcacls.vbs ½ºÅ©¸³Æ®¸¦ »ç¿ëÇÏ¿© ÆÄÀÏ ¶Ç´Â Æú´õ¿¡ ´ëÇÑ NTFS ÆÄÀÏ ½Ã½ºÅÛ ±ÇÇÑÀ» ¼öÁ¤Çϰí Ç¥½ÃÇÏ´Â ¹æ¹ýÀ» ´Ü°èº°·Î ¼³¸íÇÕ´Ï´Ù.
¸í·ÉÁÙ¿¡¼ Xcacls.vbs¸¦ »ç¿ëÇÏ¿© Microsoft Windows Ž»ö±â¿¡¼ ¾×¼¼½ºÇÒ ¼ö ÀÖ´Â ¸ðµç ÆÄÀÏ ½Ã½ºÅÛ º¸¾È ¿É¼ÇÀ» ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. Xcacls.vbs¸¦ »ç¿ëÇÏ¸é ÆÄÀÏÀÇ ACL(¾×¼¼½º Á¦¾î ¸ñ·Ï)À» Ç¥½ÃÇÏ°í ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. Âü°í Xcacls.vbs´Â Microsoft Windows 2000, Microsoft Windows XP ¹× Microsoft Windows Server 2003°ú¸¸ ȣȯµÇ¸ç, Microsoft¿¡¼ Áö¿øÇÏÁö ¾Ê½À´Ï´Ù. Xcacls.vbs ¼³Á¤ ¹× »ç¿ëXcacls.vbs¸¦ ¼³Á¤ÇÏ°í »ç¿ëÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ÇϽʽÿÀ.
Xcacls.vbs ¸í·É ±¸¹®´ÙÀ½Àº xcacls.vbs /? ¸í·ÉÀÌ Ãâ·ÂÇÏ´Â Xcacls.vbs ¸í·É ±¸¹®¿¡ ´ëÇÑ ¼³¸íÀÔ´Ï´Ù.Usage: XCACLS filename [/E] [/G user:perm;spec] [...] [/R user [...]] [/F] [/S] [/T] [/P user:perm;spec [...]] [/D user:perm;spec] [...] [/O user] [/I ENABLE/COPY/REMOVE] [/N [/L filename] [/Q] [/DEBUG]
filename [Required] If used alone, it displays ACLs. (Filename can be a filename, directory name or wildcard characters and can include the whole path. If path is missing, it is assumed to be under the current directory.) Notes: - Put filename in quotes if it has spaces or special characters such as &, $, #, etc. - If filename is a directory, all files and subdirectories under it will NOT be changed unless the /F or S is present.
/F [Used with Directory or Wildcard] This will change all files under the inputted directory but will NOT traverse subdirectories unless /T is also present. If filename is a directory, and /F is not used, no files will be touched.
/S [Used with Directory or Wildcard] This will change all subfolders under the inputted directory but will NOT traverse subdirectories unless /T is also present. If filename is a directory, and /S is not used, no subdirectories will be touched.
/T [Used only with a Directory] Traverses each subdirectory and makes the same changes. This switch will traverse directories only if the filename is a directory or is using wildcard characters. /E Edit ACL instead of replacing it.
/G user:GUI Grant security permissions similar to Windows GUI standard (non-advanced) choices. /G user:Perm;Spec Grant specified user access rights. (/G adds to existing rights for user)
User: If User has spaces in it, enclose it in quotes. If User contains #machine#, it will replace #machine# with the actual machine name if it is a non-domain controller, and replace it with the actual domain name if it is a domain controller.
New to 3.0: User can be a string representing the actual SID, but MUST be lead by SID# Example: SID#S-1-5-21-2127521184-160... (SID string shown has been shortened) (If any user has SID# then globally all matches must match the SID (not name) so if your intention is to apply changes to all accounts that match Domain\User then do not specify SID# as one of the users.)
GUI: Is for standard rights and can be: Permissions... F Full control M Modify X read and eXecute L List folder contents R Read W Write Note: If a ; is present, this will be considered a Perm;Spec parameter pair.
Perm: Is for "Files Only" and can be: Permissions... F Full control M Modify X read and eXecute R Read W Write Advanced... D Take Ownership C Change Permissions B Read Permissions A Delete 9 Write Attributes 8 Read Attributes 7 Delete Subfolders and Files 6 Traverse Folder / Execute File 5 Write Extended Attributes 4 Read Extended Attributes 3 Create Folders / Append Data 2 Create Files / Write Data 1 List Folder / Read Data Spec is for "Folder and Subfolders only" and has the same choices as Perm.
/R user Revoke specified user's access rights. (Will remove any Allowed or Denied ACL's for user.)
/P user:GUI Replace security permissions similar to standard choices.
/P user:perm;spec Replace specified user's access rights. For access right specification see /G option. (/P behaves like /G if there are no rights set for user.)
/D user:GUI Deny security permissions similar to standard choices.
/D user:perm;spec Deny specified user access rights. For access right specification see /G option. (/D adds to existing rights for user.)
/O user Change the Ownership to this user or group.
/I switch Inheritance flag. If omitted, the default is to not touch Inherited ACL's. Switch can be: ENABLE - This will turn on the Inheritance flag if it is not on already. COPY - This will turn off the Inheritance flag and copy the Inherited ACL's into Effective ACL's. REMOVE - This will turn off the Inheritance flag and will not copy the Inherited ACL's. This is the opposite of ENABLE. If switch is not present, /I will be ignored and Inherited ACL's will remain untouched.
/L filename Filename for Logging. This can include a path name if the file is not under the current directory. File will be appended to, or created if it does not exit. Must be Text file if it exists or error will occur.
If filename is omitted, the default name of XCACLS will be used.
/Q Turn on Quiet mode. By default, it is off. If it is turned on, there will be no display to the screen.
/DEBUG Turn on Debug mode. By default, it is off. If it is turned on, there will be more information displayed and/or logged. Information will show Sub/Function Enter and Exit as well as other important information.
/SERVER servername Enter a remote server to run script against.
/USER username Enter Username to impersonate for Remote Connections (requires PASS switch). Will be ignored if it is for a Local Connection.
/PASS password Enter Password to go with USER switch (requires USER switch).
Wildcard characters can be used to specify more than one file in a command, such as: * Any string of zero or more characters ? Any single character
You can specify more than one user in a command. You can combine access rights.Xcacls.vbs¸¦ »ç¿ëÇÏ¿© ±ÇÇÑ º¸±âXcacls.vbs¸¦ »ç¿ëÇÏ¿© ÆÄÀÏ ¶Ç´Â Æú´õ¿¡ ´ëÇÑ ±ÇÇÑÀ» º¼ ¼öµµ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, C:\Test¶ó´Â Æú´õ¿¡ ´ëÇÑ ±ÇÇÑÀ» º¸·Á¸é ¸í·É ÇÁ·ÒÇÁÆ®¿¡¼ ´ÙÀ½ ¸í·ÉÀ» ÀÔ·ÂÇϰí Enter ۸¦ ´©¸¨´Ï´Ù. xcacls.vbs c:\test ´ÙÀ½ ¿¹Á¦´Â ÀÌ ¸í·ÉÀÇ ÀϹÝÀûÀÎ Ãâ·Â °á°úÀÔ´Ï´Ù.C:\>XCACLS.VBS c:\test Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Starting XCACLS.VBS (Version: 3.4) Script at 6/11/2003 10:55:21 AM Startup directory: "C:\test" Arguments Used: Filename = "c:\test" ************************************************************************** Directory: C:\test Permissions: Type Username Permissions Inheritance Allowed BUILTIN\Administrators Full Control This Folder, Subfolde Allowed NT AUTHORITY\SYSTEM Full Control This Folder, Subfolde Allowed Domain1\User1 Full Control This Folder Only Allowed \CREATOR OWNER Special (Unknown) Subfolders and Files Allowed BUILTIN\Users Read and Execute This Folder, Subfolde Allowed BUILTIN\Users Create Folders / Appe This Folder and Subfo Allowed BUILTIN\Users Create Files / Write This Folder and Subfo No Auditing set Owner: Domain1\User1 Âü°í ÀÌ ¿¹Á¦¿¡ ³ª¿Â xcacls.vbs c:\test ¸í·ÉÀÇ Ãâ·ÂÀº GUI(±×·¡ÇÈ »ç¿ëÀÚ ÀÎÅÍÆäÀ̽º)¿¡ Ç¥½ÃµÇ´Â ÅØ½ºÆ®¿Í ÀÏÄ¡ÇÕ´Ï´Ù. ÀϺΠ´Ü¾î´Â ¸í·É â¿¡¼ ÀϺθ¸ Ç¥½ÃµË´Ï´Ù. ÀÌ Ãâ·Â¿¡´Â »ç¿ëµÈ ½ºÅ©¸³Æ® ¹öÀü, ½ÃÀÛ µð·ºÅ͸® ¹× Àμöµµ Æ÷ÇԵ˴ϴÙ. ¿ÍÀϵåÄ«µå ¹®ÀÚ¸¦ »ç¿ëÇÏ¿© µð·ºÅ͸® ¾Æ·¡¿¡ ÀÖ´Â ÀÏÄ¡ÇÏ´Â ÆÄÀÏÀ» Ç¥½ÃÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, ´ÙÀ½À» ÀÔ·ÂÇϸé C:\Test Æú´õ¿¡¼ È®Àå¸íÀÌ ".log"ÀÎ ¸ðµç ÆÄÀÏÀÌ Ç¥½ÃµË´Ï´Ù. xcacls.vbs c:\test\*.log ¿¹Á¦´ÙÀ½ Xcacls.vbs ¸í·ÉÀº Xcacls.vbsÀÇ ¸î °¡Áö »ç¿ë ¿¹¸¦ º¸¿© ÁÝ´Ï´Ù. xcacls.vbs c:\test\ /g domain\testuser1:f /f /t /e ÀÌ ¸í·ÉÀº ±âÁ¸ ±ÇÇÑÀ» ÆíÁýÇÕ´Ï´Ù. ÀÌ ¸í·ÉÀº C:\Test¿¡ ÀÖ´Â ¸ðµç ÆÄÀÏ¿¡ ´ëÇÑ ¸ðµç ±ÇÇÑÀ» Domain\TestUser1¿¡ ºÎ¿©Çϰí C:\Test¿¡ ÀÖ´Â ÇÏÀ§ Æú´õ¸¦ °Ë»öÇÑ ´ÙÀ½ ¹ß°ßµÈ ¸ðµç ÆÄÀÏÀ» º¯°æÇÕ´Ï´Ù. ÀÌ ¸í·ÉÀº µð·ºÅ͸®¸¦ º¯°æÇÏÁö ¾Ê½À´Ï´Ù. xcacls.vbs c:\test\ /g domain\testuser1:f /s /l "c:\xcacls.log"ÀÌ ¸í·ÉÀº ±âÁ¸ ±ÇÇÑÀ» ´ëüÇÕ´Ï´Ù. ÀÌ ¸í·ÉÀº C:\Test¿¡ ÀÖ´Â ¸ðµç ÇÏÀ§ Æú´õ¿¡ ´ëÇÑ ¸ðµç ±ÇÇÑÀ» Domain\TestUser1¿¡ ºÎ¿©Çϰí C:\Xcacls.log¿¡ ±â·ÏÇÕ´Ï´Ù. ÀÌ ¸í·ÉÀº ÆÄÀÏÀ» º¯°æÇϰųª µð·ºÅ͸®¸¦ °Ë»öÇÏÁö ¾Ê½À´Ï´Ù. xcacls.vbs c:\test\readme.txt /o "machinea\group1"ÀÌ ¸í·ÉÀº Readme.txtÀÇ ¼ÒÀ¯ÀÚ¸¦ MachineA\Group1 ±×·ìÀ¸·Î º¯°æÇÕ´Ï´Ù. xcacls.vbs c:\test\badcode.exe /r "machinea\group1" /r "domain\testuser1"ÀÌ ¸í·ÉÀº MachineA\Group1 ¹× Domain\TestUser1¿¡ ºÎ¿©µÈ C:\Test\Badcode.exe¿¡ ´ëÇÑ ±ÇÇÑÀ» Ãë¼ÒÇÕ´Ï´Ù. xcacls.vbs c:\test\subdir1 /i enable /qÀÌ ¸í·ÉÀº C:\Test\Subdir1 Æú´õ¿¡ »ó¼Ó ±â´ÉÀ» ¼³Á¤Çϰí ȸé Ãâ·ÂÀÌ Ç¥½ÃµÇÁö ¾Êµµ·Ï ÇÕ´Ï´Ù. xcacls.vbs \\servera\sharez\testpage.htm /p "domain\group2":14ÀÌ ¸í·ÉÀº WMI(Windows Management Instrumentation)¸¦ »ç¿ëÇÏ¿© \\ServerA\ShareZ¿¡ ¿ø°ÝÀ¸·Î ¿¬°áÇϰí ÇØ´ç °øÀ¯ÀÇ ·ÎÄà °æ·Î¸¦ È®ÀÎÇÑ ´ÙÀ½ ÀÌ °æ·ÎÀÇ ¾Æ·¡¿¡¼ Testpage.htm¿¡ ´ëÇÑ ±ÇÇÑÀ» º¯°æÇÕ´Ï´Ù. ÀÌ ¸í·ÉÀº Domain\Group2ÀÇ ±âÁ¸ ±ÇÇÑÀº ±×´ë·Î À¯ÁöÇÏÁö¸¸ ±ÇÇÑ 1(µ¥ÀÌÅÍ Àбâ) ¹× 4(È®Àå Æ¯¼º Àбâ)¸¦ Ãß°¡ÇÕ´Ï´Ù. ÀÌ ¸í·ÉÀº /e ½ºÀ§Ä¡°¡ »ç¿ëµÇÁö ¾Ê¾Ò±â ¶§¹®¿¡ ÆÄÀÏ¿¡ ¼³Á¤µÈ ´Ù¸¥ ±ÇÇÑÀ» Á¦°ÅÇÕ´Ï´Ù. xcacls.vbs d:\default.htm /g "domain\group2":f /server servera /user servera\admin /pass password /eÀÌ ¸í·ÉÀº WMI¸¦ »ç¿ëÇÏ¿© ¿ø°ÝÀ¸·Î ServerA¿¡ ServerA\AdminÀ¸·Î ¿¬°áÇÑ ´ÙÀ½ Default.htm¿¡ ´ëÇÑ ¸ðµç ±ÇÇÑÀ» Domain\Group2¿¡ ºÎ¿©ÇÕ´Ï´Ù. ±×·¯¸é Domain\Group2ÀÇ ±âÁ¸ ±ÇÇÑÀº Á¦°ÅµÇÁö¸¸ ÆÄÀÏ¿¡ ´ëÇÑ ´Ù¸¥ ±ÇÇÑÀº À¯ÁöµË´Ï´Ù. ÂüÁ¶
Xcacls.exe¸¦ »ç¿ëÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº Microsoft ±â¼ú ÀÚ·áÀÇ ´ÙÀ½ ¹®¼¸¦ ÂüÁ¶ÇϽʽÿÀ.
318754
(http://support.microsoft.com/kb/318754/
)
HOWTO: Xcacls.exe¸¦ »ç¿ëÇÏ¿© NTFS ±ÇÇÑ ¼öÁ¤
Microsoft Á¦Ç° °ü·Ã ±â¼ú Àü¹®°¡µé°ú ¿Â¶óÀÎÀ¸·Î Á¤º¸¸¦ ±³È¯ÇϽ÷Á¸é Microsoft ´º½º ±×·ì
(http://support.microsoft.com/newsgroups/default.aspx)
¿¡ Âü¿©ÇϽñ⠹ٶø´Ï´Ù.¼Ó¼º±â¼ú ÀÚ·á: 825751 - ¸¶Áö¸· °ËÅä: 2008³â 1¿ù 9ÀÏ ¼ö¿äÀÏ - ¼öÁ¤: 2.4 º» ¹®¼ÀÇ Á¤º¸´Â ´ÙÀ½ÀÇ Á¦Ç°¿¡ Àû¿ëµË´Ï´Ù.
| ±â¼ú ÀÚ·á ¹ø¿ª
|


À§·Î °¡±â








