{"id":1333,"date":"2019-07-17T17:49:38","date_gmt":"2019-07-17T14:49:38","guid":{"rendered":"https:\/\/artem.services\/?p=1312"},"modified":"2019-07-26T14:50:19","modified_gmt":"2019-07-26T11:50:19","slug":"linux-restoring-standard-file-and-directory-rights","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1333&lang=en","title":{"rendered":"Linux &#8212; Restoring standard file and directory permission"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-568 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/01\/BASH-Logo.png\" alt=\"\" width=\"376\" height=\"159\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/01\/BASH-Logo.png 376w, https:\/\/artem.services\/wp-content\/uploads\/2019\/01\/BASH-Logo-300x127.png 300w\" sizes=\"(max-width: 376px) 100vw, 376px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">Find all the directories that are on the path &quot;<strong>\/home\/artem<\/strong>&quot; and set them with the standard rights to the directory &quot;<strong>755<\/strong>&quot;, also find all the files and set the rights &quot;<strong>644<\/strong>&quot;<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfind \/home\/artem -type d -exec chmod 755 {} \\;\r\nfind \/home\/artem -type f -exec chmod 644 {} \\;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<blockquote><p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Not all directories use the rights &quot;<strong>755<\/strong>&quot;, for example for the directory &quot;<strong>.ssh<\/strong>&quot; the rights &quot;<strong>600<\/strong>&quot; are necessary<\/span><\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Find all the directories that are on the path &quot;\/home\/artem&quot; and set them with the standard rights to the directory &quot;755&quot;, also find all the files and set the rights &quot;644&quot; &nbsp; Not all directories use the rights &quot;755&quot;, for example for the directory &quot;.ssh&quot; the rights &quot;600&quot; are necessary<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[415],"tags":[427,1053,1055],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1333"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1333"}],"version-history":[{"count":3,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1333\/revisions"}],"predecessor-version":[{"id":1336,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1333\/revisions\/1336"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}