{"id":2764,"date":"2020-02-20T17:59:00","date_gmt":"2020-02-20T14:59:00","guid":{"rendered":"http:\/\/surgery.moscow\/smos\/?p=2764"},"modified":"2020-02-20T17:59:05","modified_gmt":"2020-02-20T14:59:05","slug":"%d0%9f%d1%80%d0%b0%d0%b2%d0%b0-%d0%b4%d0%be%d1%81%d1%82%d1%83%d0%bf%d0%b0-%d0%ba-%d1%84%d0%b0%d0%b9%d0%bb%d0%b0%d0%bc","status":"publish","type":"post","link":"https:\/\/surgery.moscow\/smos\/2020\/02\/20\/%d0%9f%d1%80%d0%b0%d0%b2%d0%b0-%d0%b4%d0%be%d1%81%d1%82%d1%83%d0%bf%d0%b0-%d0%ba-%d1%84%d0%b0%d0%b9%d0%bb%d0%b0%d0%bc\/","title":{"rendered":"\u041f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u0430\u043c"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0444\u0430\u0439\u043b\u0430\u043c:<br><code><strong>find . -type f | xargs chmod 640<\/strong><\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u043f\u0430\u043f\u043a\u0430\u043c:<br><code><strong>find . -type d | xargs chmod 640<\/strong><\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>\u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431<\/strong>:<br><strong>\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u043f\u043a\u0438 to 755 (<code>drwxr-xr-x<\/code>):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/path_to -type d -exec chmod 755 {} \\;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0422\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u044b 644 (<code>-rw-r--r--<\/code>):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/path_to -type f -exec chmod 644 {} \\;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-permission-settings\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u0430\u043c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (umask 022)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">644 -rw-r--r--  \/home\/user\/wp-config.php\n644 -rw-r--r--  \/home\/user\/cgi-bin\/.htaccess\n644 -rw-r--r--  \/home\/user\/cgi-bin\/php.ini\n755 -rwxr-xr-x  \/home\/user\/cgi-bin\/php.cgi\n755 -rwxr-xr-x  \/home\/user\/cgi-bin\/php5.cgi\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c\u044e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">600 -rw-------  \/home\/user\/wp-config.php\n6<strong>0<\/strong>4 -rw----r--  \/home\/user\/cgi-bin\/.htaccess\n6<strong>00<\/strong> -rw-------  \/home\/user\/cgi-bin\/php.ini\n7<strong>11<\/strong> -rwx--x--x  \/home\/user\/cgi-bin\/php.cgi\n<strong>100<\/strong> ---x------  \/home\/user\/cgi-bin\/php5.cgi\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"htaccess-permissions\">.htaccess \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>644 &gt; 604<\/strong>&nbsp;\u2013 The bit allowing the group owner of \nthe .htaccess file read permission was removed. 644 is normally required\n and recommended for .htaccess files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0444\u0430\u0439\u043b\u0430\u043c:find . -type f | xargs chmod 640 \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,22],"tags":[],"class_list":["post-2764","post","type-post","status-publish","format-standard","hentry","category-internet","category-technology"],"_links":{"self":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/2764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/comments?post=2764"}],"version-history":[{"count":1,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/2764\/revisions"}],"predecessor-version":[{"id":2765,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/2764\/revisions\/2765"}],"wp:attachment":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/media?parent=2764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/categories?post=2764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/tags?post=2764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}