{"id":109253,"date":"2024-01-09T07:00:00","date_gmt":"2024-01-09T15:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=109253"},"modified":"2024-01-09T07:00:27","modified_gmt":"2024-01-09T15:00:27","slug":"20240109-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20240109-00\/?p=109253","title":{"rendered":"After I accidentally denied access to everyone, how do I get access back?"},"content":{"rendered":"<p>A customer went to a folder and used the Security control panel to change its permissions to deny all access to everyone. After applying the changes, they realized that they had denied access to everyone, <i>including themselves<\/i>. How can they undo their changes and get things back to the way they were?<\/p>\n<p>Congratulations, you locked your keys in the car.<\/p>\n<p>In order to get things back to the way they were, you first need to know how they were before. In general, the system does not keep a history of changes with the ability to undo them. If you delete a file, then it&#8217;s gone. If you overwrite a file, the old contents are lost. And if you change the security on a folder, the old security settings have been replaced.<\/p>\n<p>If you&#8217;re lucky, you might be able to find a backup that tells you what the security settings used to be for the folder and all of the items in the folder tree, and then you can go to the painstaking effort of reapplying those settings on the original items. I believe the technical term to describe this is &#8220;not fun&#8221;.<\/p>\n<p>If the folder had default permissions before you accidentally messed them up, you can return to the default permissions by going to the Advanced security property sheet and (1)\u00a0enabling inheritance, and (2)\u00a0deleting all non-inherited permissions.<\/p>\n<p>One small consolation is that even though you denied yourself access to the folder, if you are the owner of the folder, you still retain <code>WRITE_DACL<\/code> access, so you at least have permission to replace the access control list with a copy from the backup. (And if you aren&#8217;t the owner of the folder, you&#8217;ll have to go find the owner of the folder and apologize for messing up their folder.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Congratulations, you locked your keys in the car.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-109253","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Congratulations, you locked your keys in the car.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/109253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=109253"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/109253\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=109253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=109253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=109253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}