{"id":58,"date":"2018-08-07T15:54:14","date_gmt":"2018-08-07T14:54:14","guid":{"rendered":"https:\/\/www.thenaylors.co.uk\/wordpress\/?p=58"},"modified":"2018-08-07T18:02:37","modified_gmt":"2018-08-07T17:02:37","slug":"recursive-changes-for-chmod-and-chown","status":"publish","type":"post","link":"https:\/\/www.thenaylors.co.uk\/wordpress\/recursive-changes-for-chmod-and-chown\/","title":{"rendered":"Recursive changes for CHMOD and CHOWN"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">So more trouble with the OMV box and associated link to the Synology Diskstation!\u00a0 Another story.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However I have moved the Family History site based on Webtrees to the OMV having mistakenly deleted every file in the \/volume1\/web directory.\u00a0 Luckly it changes very seldomly and I had an sql backup which was OK.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However the install does not seem to give the right directory or file permissions.\u00a0 I have done a CHOWN to give www-data as both user and group but now want to recursively have directories as 755 an files as 644.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">find \/media\/www\/webtrees -type d -exec chmod 755 {} \\;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">and<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">find \/media\/www\/webtrees -type f -exec chmod 644 {} \\;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">does the trick.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So more trouble with the OMV box and associated link to the Synology Diskstation!\u00a0 Another story. However I have moved the Family History site based on Webtrees to the OMV having mistakenly deleted every file in the \/volume1\/web directory.\u00a0 Luckly it changes very seldomly and I had an sql backup which was OK. However the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.thenaylors.co.uk\/wordpress\/recursive-changes-for-chmod-and-chown\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Recursive changes for CHMOD and CHOWN&#8221;<\/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":[2],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-linux-nas"],"_links":{"self":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":1,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":59,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/58\/revisions\/59"}],"wp:attachment":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}