# HG changeset patch # User Oleksandr Gavenko # Date 1316124786 -10800 # Node ID e3fefdeb1cbfea45aa3fc692fffe052009a272c5 # Parent 3f8b5c0ba822b9fd11717fd0be242c0b25218367 Converting SID to names and inside out. diff -r 3f8b5c0ba822 -r e3fefdeb1cbf windows.rst --- a/windows.rst Fri Sep 16 00:56:37 2011 +0300 +++ b/windows.rst Fri Sep 16 01:13:06 2011 +0300 @@ -431,9 +431,9 @@ cmd> icacls /setowner /t /c -Recursively grand full access:: +Recursively grand full access for everyone:: - cmd> icacls %dir% /t /grant:r desktop\user:(f) + cmd> icacls %dir% /t /grant:r S-1-1-0:(f) Well-known security identifiers (SID). ====================================== @@ -481,3 +481,11 @@ http://en.wikipedia.org/wiki/Security_Identifier Security Identifier +Converting SID to names and inside out. +======================================= + +Use 'PsGetSid' utility from Sysinternals:: + + cmd> PsGetSid S-1-3-0 + cmd> PsGetSid "\NULL SID" +