{"id":1376,"date":"2018-12-19T10:44:39","date_gmt":"2018-12-19T15:44:39","guid":{"rendered":"https:\/\/lilithebowman.com\/blog\/?p=1376"},"modified":"2020-07-03T13:12:18","modified_gmt":"2020-07-03T17:12:18","slug":"windows-10-equivalent-to-chmod","status":"publish","type":"post","link":"https:\/\/www.lilithebowman.com\/blog\/2018\/12\/windows-10-equivalent-to-chmod\/","title":{"rendered":"Windows 10 Equivalent to chmod"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>icacls * \/reset \/t \/c \/q<\/code><\/pre>\n\n\n<p>I was looking for an equivalent to chmod and this seems to be it. The old DOS command attrib does not exist anymore. Neither does chattr (I think that one was QNX from the late 80s\/early 90s).<\/p>\n<p>This was the only way I could find to claim ownership on some files I had written in linux but needed access to in Windows.<\/p>\n<p>Hope this helps someone else!<\/p>\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><th>\/t<\/th><td>Performs the operation on all specified files in the current directory and its subdirectories. <\/td><\/tr><tr><th>\/c<\/th><td>Continues the operation despite any file errors. Error messages will still be displayed. <\/td><\/tr><tr><th>\/q<\/th><td>Suppresses success messages. <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>For more information, be sure to check  out the <a rel=\"noreferrer noopener\" aria-label=\"icacls documentation on Technet (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/previous-versions\/windows\/it-pro\/windows-server-2012-R2-and-2012\/cc753525(v=ws.11)\" target=\"_blank\">icacls documentation on Technet<\/a>.<\/p>\n\n\n\n<p>Note: To take effect you <em>may<\/em> need to run this as Administrator in order to change permissions on some files<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"390\" src=\"https:\/\/www.lilithebowman.com\/blog\/wp-content\/uploads\/2020\/07\/image.png\" alt=\"\" class=\"wp-image-2269\" srcset=\"https:\/\/www.lilithebowman.com\/blog\/wp-content\/uploads\/2020\/07\/image.png 430w, https:\/\/www.lilithebowman.com\/blog\/wp-content\/uploads\/2020\/07\/image-300x272.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><figcaption>Simply press the Win key and type cmd. Then select Run as administrator from the right side of the panel.<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was looking for an equivalent to chmod and this seems to be it. The old DOS command attrib does not exist anymore. Neither does chattr (I think that one was QNX from the late 80s\/early 90s). This was the only way I could find to claim ownership on some files I had written in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1376","post","type-post","status-publish","format-standard","hentry","category-daily-musings"],"_links":{"self":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts\/1376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/comments?post=1376"}],"version-history":[{"count":9,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts\/1376\/revisions"}],"predecessor-version":[{"id":2270,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts\/1376\/revisions\/2270"}],"wp:attachment":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/media?parent=1376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/categories?post=1376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/tags?post=1376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}