???? ID: 318754 - ????? ???????: 04 ?????? 2010 - ??????: 2.0 How to use Xcacls.exe to modify NTFS permissions
?????This article applies to Windows 2000.Support for Windows 2000 ends on July 13, 2010.TheWindows 2000 ???-??-?????? ?????? ?????? (http://support.microsoft.com/win2000) Windows 2000 ?? ???? ????????? ?????? ?? ????? ????? ?? ??? ??? ??????? ????? ??? ???? ??????? ?? ??? ?????Microsoft ?????? Lifecycle ???? (http://support.microsoft.com/lifecycle/) .?????This article applies to Windows 2000.Support for Windows 2000 ends on July 13, 2010.TheWindows 2000 ???-??-?????? ?????? ?????? (http://support.microsoft.com/win2000) Windows 2000 ?? ???? ????????? ?????? ?? ????? ????? ?? ??? ??? ??????? ????? ??? ???? ??????? ?? ??? ?????Microsoft ?????? Lifecycle ???? (http://support.microsoft.com/lifecycle/) .?? ????? ?????????? ??? ?? ??? ???? ????? ???? ?? ?? ??????? ?? ????????? ?? ??? NTFS ????????? ????? ?? ??? ?? ??????? ???? ?? ??? ??????? ???????? Access ???????? ???? ????? (Xcacls.exe) ?? ????? ???? ????? ??? ????? ?????? ??????? ?????? ?? ????? ????? ?? Windows Explorer ??? ???? ?????? ?? ??? ???? ?? ??? ?? Xcacls.exe ?? ????? ?? ???? ???? Xcacls.exe ?? ????????? ???? ?? ????? ???????? ???? (ACLs) ??????? ?? ??????? ???? ??? Xcacls.exe Windows 2000 Professional ?? Windows 2000 ????? ?? ????????? ??????? ??? ????? ??? ?? ?????? ??? ?? ????? ?? ????? ??, ?????? ?? ????????? ?????? ?? ???????? ?????? ?? ????? ????????? ?? ??? ??? ?? ???? ???? ?? ?? ????? ?? ???????????? ???? ?? ??? ?????????? ?? ?????? ????, Xcacls.exe ?? ???????? ??????? ?? ?????????? ?????? ??????? ?? ???? ???? ?? one-step ??????? ??? Xcacls.exe ?????? ?? Windows 2000 ?????? ??? ??? ????? ??? Xcacls.exe ?????? ?? Windows Server 2003 ?????? ????? ??? ?? ????? ??? ????? ????? Microsoft ??????? ?????? ?? ??????? ?? ??? ?????? ??:: ?? ??? ?? ??????? ???? ![]() Xcacls.exe ????????xcacls????? ???[/T] [/E] [/C] [/G??????????: perm; spec] [/R ??????????] [/P??????????: perm; spec[...]] [/D??????????[...]] [/Y] ????????? ???????? ?? ??????? ?? ??? ?? ACL ?? ????? ???????? ????????? (ACE) ?????????? ???? ?? ??? ?? ????? ???? ??? ??? ???? ??????????? ?????? ?? ????? ???? ?? ???? ???/T??????? ??????? ?? ?????? ?? recursively ???? ?? ??? chosen ???? ?? ??? ??, ???? ??????????? ??? ?? ??? ???? ??????? ?? ????????? ?? ??? ?????? ?? ????? ??? /E??? ????? ?? ???? ACL ??????? ???? ??? ?????? ?? ???, ???? ?????????? ?? ????? ??????? ???? Test.dat ????? ?? ??? ??? ?? ?????XCACLS test.dat /G ??????????: F????? ??? ACEs ?? ???? ???? ?? ??? ???? /Ccauses Xcacls.exe to continue if an "access denied" error message occurs. ???/Cis not specified, Xcacls.exe stops on this error. /Guser:perm;specgrants a user access to the matching file or folder.
/Puser:perm;specreplaces access rights for user. The rules for specifying perm and spec are the same as for the /G option. See the "Xcacls.exe examples" section. /D??????????denies user access to the file or directory. /Ydisables confirmation when replacing user access rights. By default, CACLS asks for confirmation. Because of this feature, when CACLS is used in a batch routine, the routine stops responding until the right answer is entered. The/Yoption was introduced to avoid this confirmation, so that Xcacls.exe can be used in batch mode. Use Xcacls.exe to view permissionsYou can also use Xcacls.exe to view permissions for a file or folder. ?????? ?? ???, ???? ????xcacls C:\winnt????? ?????????, ?? ???? ??? ENTER ?????? The following is a typical result:
c:\WINNT BUILTIN\Users:R
BUILTIN\Users:(OI)(CI)(IO)(special access:)
GENERIC_READ
GENERIC_EXECUTE
BUILTIN\Power Users:C
BUILTIN\Power Users:(OI)(CI)(IO)C
BUILTIN\Administrators:F
BUILTIN\Administrators:(OI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
BUILTIN\Administrators:F
CREATOR OWNER:(OI)(CI)(IO)F
Xcacls.exe examples?????? 1??????:XCACLS *.* /G administrator:RW /Yat the command prompt, and then press ENTER to replace the ACL of all files and folders in the current folder without scanning subfolders and without confirmation.?????? 2The ACEs that are added to the folder in this example also inherit ACE for new files that are created in this folder. The command gives TestUser read, write, run, and delete rights on all new files created in this folder, but only read and write permissions on the folder itself. ??????:XCACLS *.* /G TestUser:RWED;RW /E????? ?????????, ?? ???? ??? ENTER ???????????? 3The following example grants read and write permissions on a folder without creating an inherit entry for new files. Therefore, in this example, new files that are created in this folder receive no ACE for TestUser. For existing files, an ACE with read permissions is created. ??????:XCACLS *.* /G TestUser:R;RW /E????? ?????????, ?? ???? ??? ENTER ??????NTFS permissions guidelinesThe following are guidelines for assigning NTFS permissions:
???? ??????????? ???? ???? ??:
???? ?????? ??????????????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??. ?????????? ?? ??????? ????????? ??????? ??:318754
(http://support.microsoft.com/kb/318754/en-us/
)
| ???? ?????? ???? ?????? ??????
?????????? ??????
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email


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