{"id":2330,"date":"2015-12-18T12:29:12","date_gmt":"2015-12-18T20:29:12","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=2330"},"modified":"2018-01-12T08:51:40","modified_gmt":"2018-01-12T16:51:40","slug":"changing-permissions-on-files","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=2330","title":{"rendered":"Changing permissions on files"},"content":{"rendered":"<p>I recently inherited a system and wanted to be edit all of the website files. I changed the group to admin and added myself to the group. Then I wanted to change all of the directories so I could have access to them, and change all of the file permissions so the group had read-write access and others (including Apache) had only read access. The command to do that is:<\/p>\n<p>sudo chmod -R u+rwX,go+rwX,o-w .<\/p>\n<p>-R recursively change<br \/>\nu+rwX users to read and write, and if it is a directory, also execute<br \/>\ngo+rwX same as users for group and others<br \/>\no-w then remove the write permission for others<br \/>\n. start here<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently inherited a system and wanted to be edit all of the website files. I changed the group to admin and added myself to the group. Then I wanted to change all of the directories so I could have access to them, and change all of the file permissions so the group had read-write &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=2330\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Changing permissions on files<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2330","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2330"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2330\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}