{"id":363,"date":"2015-03-13T14:14:07","date_gmt":"2015-03-13T10:14:07","guid":{"rendered":"http:\/\/blog.mgvmi-hipl.ru\/?p=363"},"modified":"2015-03-13T14:14:07","modified_gmt":"2015-03-13T10:14:07","slug":"%d0%9f%d1%80%d0%be%d1%81%d0%bc%d0%be%d1%82%d1%80-%d1%81%d0%bb%d1%83%d0%b6%d0%b1-%d0%bd%d0%b0-%d1%83%d0%b4%d0%b0%d0%bb%d1%91%d0%bd%d0%bd%d0%be%d0%bc-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80%d0%b5-%d0%bf","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=363","title":{"rendered":"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u043b\u0443\u0436\u0431 \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0441\u043b\u0443\u0436\u0431\u044b"},"content":{"rendered":"<p>\u042d\u0442\u043e \u0432\u0441\u0451 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u0438\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432 \u0441\u043b\u0443\u0436\u0431.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u043e\u0441\u044c \u043d\u0430 WIN 2008 R2<br \/>\n\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<br \/>\n<b>sc sdshow<\/b>\u00a0\u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0430<br \/>\n<b>sc sdset<\/b>\u00a0\u2014 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0430<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 \u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c:<br \/>\n<code>C:\\Users\\administrator&gt;sc sdshow service_name<\/p>\n<p>D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCR<br \/>\nRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)<br \/>\n<\/code><br \/>\n\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0435\u0441\u0442\u044c 2 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430:<br \/>\nS: \u2014 System Access Control List (SACL) \u2014 \u044d\u0442\u043e \u043d\u0430\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442.<br \/>\nD: \u2014 Discretionary ACL (DACL) \u2014 \u0437\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0438 \u0432\u0441\u0435\u0433\u043e.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0430\u043b\u0435\u0435.<br \/>\n\u041f\u0435\u0440\u0432\u0430\u044f \u0431\u0443\u043a\u0432\u0430 \u043f\u043e\u0441\u043b\u0435 \u0441\u043a\u043e\u0431\u043e\u043a \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c (A, Allow) \u0438\u043b\u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c (D, Deny).<\/p>\n<p>\u041c\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c:<br \/>\n(A;;;;;)<\/p>\n<p>\u0418 \u043f\u043e\u0442\u043e\u043c \u0432\u0438\u0434\u0438\u043c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0431\u0443\u043a\u0432:<br \/>\n<code>CC - SERVICE_QUERY_CONFIG<br \/>\nLC - SERVICE_QUERY_STATUS<br \/>\nSW - SERVICE_ENUMERATE_DEPENDENTS<br \/>\nLO - SERVICE_INTERROGATE<br \/>\nCR - SERVICE_USER_DEFINED_CONTROL<br \/>\nRC - READ_CONTROL<br \/>\nRP - SERVICE_START<br \/>\nWP - SERVICE_STOP<br \/>\nDT - SERVICE_PAUSE_CONTINUE<\/code><\/p>\n<p>\u041f\u043e \u0441\u0443\u0442\u0438, \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0442\u0440\u0438 \u043e\u043f\u0446\u0438\u0438 \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0433 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u044b \u043f\u0440\u0438 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0432\u0445\u043e\u0434\u0435:<br \/>\n(A;;RPWPDT;;;)<\/p>\n<p>\u0430 \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u043f\u043e \u0441\u0435\u0442\u0438 \u0442\u043e \u043f\u0440\u0430\u0432\u0430:<\/p>\n<p>(A;;RPWPDTCRRC;;;)<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 2 \u0431\u0443\u043a\u0432\u044b \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u043a\u043e\u043c\u0443 \u043c\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0438\u043b\u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c:<br \/>\n<code>AU Authenticated Users<br \/>\nAO Account operators<br \/>\nRU Alias to allow previous Windows 2000<br \/>\nAN Anonymous logon<br \/>\nAU Authenticated users<br \/>\nBA Built-in administrators<br \/>\nBG Built-in guests<br \/>\nBO Backup operators<br \/>\nBU Built-in users<br \/>\nCA Certificate server administrators<br \/>\nCG Creator group<br \/>\nCO Creator owner<br \/>\nDA Domain administrators<br \/>\nDC Domain computers<br \/>\nDD Domain controllers<br \/>\nDG Domain guests<br \/>\nDU Domain users<br \/>\nEA Enterprise administrators<br \/>\nED Enterprise domain controllers<br \/>\nWD Everyone<br \/>\nPA Group Policy administrators<br \/>\nIU Interactively logged-on user<br \/>\nLA Local administrator<br \/>\nLG Local guest<br \/>\nLS Local service account<br \/>\nSY Local system<br \/>\nNU Network logon user<br \/>\nNO Network configuration operators<br \/>\nNS Network service account<br \/>\nPO Printer operators<br \/>\nPS Personal self<br \/>\nPU Power users<br \/>\nRS RAS servers group<br \/>\nRD Terminal server users<br \/>\nRE Replicator<br \/>\nRC Restricted code<br \/>\nSA Schema administrators<br \/>\nSO Server operators<br \/>\nSU Service logon user<\/code><\/p>\n<p>+ \u043a \u044d\u0442\u043e\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u0443 \u043f\u043e SID&#8217;\u0443.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c SID \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 VB:<\/p>\n<p>strComputer = &#171;.&#187;<br \/>\nstrGroup = &#171;Userlogin&#187;<br \/>\nstrDomain = &#171;test.com&#187;<br \/>\nSet objWMIService = GetObject(&#171;winmgmts:\\\\&#187; &amp; strComputer &amp; &#171;\\root\\cimv2&#187;)<br \/>\nSet objAccount = objWMIService.Get(&#171;Win32_Group.Name='&#187; &amp; strGroup &amp;&#187;&#8216;,Domain='&#187;&amp; strDomain &amp;&#187;&#8216;&#187;)<br \/>\nWScript.Echo objAccount.SID<\/p>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043b\u044e\u0447:<br \/>\n(A;;RPWPDTCRRC;;;S-1-5-21-134693881-2227611526-3787242677-1169)<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0446\u0435\u043b\u0438\u043a\u043e\u043c:<br \/>\n<code>sc sdset D:(A;;RPWPDTCRRC;;;S-1-5-21-134693881-2227611526-3787242677-1169)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCR<br \/>\nRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)<\/code><\/p>\n<p>\u041d\u0430\u0448 \u043a\u043b\u044e\u0447 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043b\u044e\u0431\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u043d\u043e \u0432\u0430\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c S.<br \/>\n\u0412\u0430\u0436\u043d\u043e \u043d\u0435 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f, \u0438\u043d\u0430\u0447\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \ud83d\ude42<\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u00a0scmanager \u0442.\u043a. \u0438\u043d\u0430\u0447\u0435 \u043c\u044b \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u043b\u0443\u0436\u0431 \u0441 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430.<\/p>\n<p>sc sdshow\u00a0scmanager<\/p>\n<p>\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c ACL. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0451 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c.<\/p>\n<p>sc sdset scmanager D:(A;;CCLCRPRC;;;S-1-5-21-134693881-2227611526-3787242677-1169)(A;;CC;;;AU)(A;;CCLCRPRC;;;IU)(A;;CCLCRPRC;;;SU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)<\/p>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430:<br \/>\nsc \\\\server stop \u00abservice_name\u00bb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042d\u0442\u043e \u0432\u0441\u0451 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u0438\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432 \u0441\u043b\u0443\u0436\u0431. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u043e\u0441\u044c \u043d\u0430 WIN 2008 R2 \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: sc sdshow\u00a0\u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0430 sc sdset\u00a0\u2014 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0430 \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=363\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-363","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/363"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=363"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}