windows.rst
changeset 993 e3fefdeb1cbf
parent 992 3f8b5c0ba822
child 994 ead439eec6e1
equal deleted inserted replaced
992:3f8b5c0ba822 993:e3fefdeb1cbf
   429 
   429 
   430 Recursively change the owner of all matching files to the specified user::
   430 Recursively change the owner of all matching files to the specified user::
   431 
   431 
   432   cmd> icacls /setowner <Username> /t /c
   432   cmd> icacls /setowner <Username> /t /c
   433 
   433 
   434 Recursively grand full access::
   434 Recursively grand full access for everyone::
   435 
   435 
   436   cmd> icacls %dir% /t /grant:r desktop\user:(f)
   436   cmd> icacls %dir% /t /grant:r S-1-1-0:(f)
   437 
   437 
   438 Well-known security identifiers (SID).
   438 Well-known security identifiers (SID).
   439 ======================================
   439 ======================================
   440 
   440 
   441   S-1-0-0
   441   S-1-0-0
   479                 Хорошо известные идентификаторы безопасности в операционных
   479                 Хорошо известные идентификаторы безопасности в операционных
   480                 системах Windows
   480                 системах Windows
   481   http://en.wikipedia.org/wiki/Security_Identifier
   481   http://en.wikipedia.org/wiki/Security_Identifier
   482                 Security Identifier
   482                 Security Identifier
   483 
   483 
       
   484 Converting SID to names and inside out.
       
   485 =======================================
       
   486 
       
   487 Use 'PsGetSid' utility from Sysinternals::
       
   488 
       
   489   cmd> PsGetSid S-1-3-0
       
   490   cmd> PsGetSid "\NULL SID"
       
   491