{"id":3974,"date":"2012-07-12T08:26:53","date_gmt":"2012-07-12T14:26:53","guid":{"rendered":"http:\/\/gregsowell.com\/?p=3974"},"modified":"2012-07-12T08:26:53","modified_gmt":"2012-07-12T14:26:53","slug":"command-line-permissions-windows-2003","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=3974","title":{"rendered":"Command-Line Permissions Windows 2003"},"content":{"rendered":"<p>I found the CACLS command:<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">CACLS filename [\/T] [\/E] [\/C] [\/G user:perm] [\/R user [...]]\r\n               [\/P user:perm [...]] [\/D user [...]]\r\n   filename      Displays ACLs.\r\n   \/T            Changes ACLs of specified files in\r\n                 the current directory and all subdirectories.\r\n   \/E            Edit ACL instead of replacing it.\r\n   \/C            Continue on access denied errors.\r\n   \/G user:perm  Grant specified user access rights.\r\n                 Perm can be: R  Read\r\n                              W  Write\r\n                              C  Change (write)\r\n                              F  Full control\r\n   \/R user       Revoke specified user&#039;s access rights (only valid with \/E).\r\n   \/P user:perm  Replace specified user&#039;s access rights.\r\n                 Perm can be: N  None\r\n                              R  Read\r\n                              W  Write\r\n                              C  Change (write)\r\n                              F  Full control\r\n   \/D user       Deny specified user access.\r\nWildcards can be used to specify more that one file in a command.\r\nYou can specify more than one user in a command.\r\n\r\nAbbreviations:\r\n   CI - Container Inherit.\r\n        The ACE will be inherited by directories.\r\n   OI - Object Inherit.\r\n        The ACE will be inherited by files.\r\n   IO - Inherit Only.\r\n        The ACE does not apply to the current file\/directory.<\/code><\/pre>\n<p>I&#8217;ve found that using \/E is necessary if you don&#8217;t want it to replace all current permissions.  \/E just &#8220;edits&#8221; the given permissions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found the CACLS command: CACLS filename [\/T] [\/E] [\/C] [\/G user:perm] [\/R user [&#8230;]] [\/P user:perm [&#8230;]] [\/D user [&#8230;]] filename Displays ACLs.\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,15],"tags":[],"class_list":["post-3974","post","type-post","status-publish","format-standard","hentry","category-server","category-windows"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/3974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3974"}],"version-history":[{"count":2,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/3974\/revisions"}],"predecessor-version":[{"id":3976,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/3974\/revisions\/3976"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}