{"id":50,"date":"2012-04-19T07:16:28","date_gmt":"2012-04-19T12:16:28","guid":{"rendered":"http:\/\/zakirov.net\/blog\/?p=50"},"modified":"2013-05-24T09:40:03","modified_gmt":"2013-05-24T05:40:03","slug":"mass-chmod","status":"publish","type":"post","link":"https:\/\/zakirov.net\/blog\/2012\/04\/19\/mass-chmod\/","title":{"rendered":"\u041c\u0430\u0441\u0441\u043e\u0432\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0430\u043f\u043a\u0438"},"content":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u043e \u0442\u0435\u043c\u0435 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 unix-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043c\u043e\u0435\u0439 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439: &#171;<a href='\/blog\/2012\/04\/13\/linux-permission-for-beginners\/'>\u041f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 Linux\/Unix \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445<\/a>&#171;.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0432\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438 \u043f\u043e FTP \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u043b\u0438 \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0441 \u043a\u0443\u0447\u0435\u0439 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043e\u043a. \u0415\u0441\u043b\u0438 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 &#171;\u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0433\u043e&#187; \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0432 \u044d\u0442\u0438 \u043f\u0430\u043f\u043a\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0432\u0430\u0448\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e unix-\u043a\u043e\u043c\u0430\u043d\u0434 find \u0438 chmod, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043b\u044f \u043f\u0430\u043f\u043e\u043a \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 777, \u0430 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432 &#8212; 666. \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0430\u043f\u043e\u043a (\u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 cd \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 find \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u043e\u0439 \u0438 \u0432\u0441\u0435\u043c\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438):<\/p>\n<pre><code class=\"bash\">find .\/ -type d -exec chmod 777 {} \\;<\/code><\/pre>\n<p>\u0438 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre><code class=\"bash\">find .\/ -type f -exec chmod 666 {} \\;<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u0432 \u044d\u0442\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445. \u041f\u043e\u0441\u043b\u0435 -type \u0434\u043b\u044f \u043f\u0430\u043f\u043e\u043a \u0441\u0442\u043e\u0438\u0442 d (&#171;directory&#187;), \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u0449\u0435\u043c \u0432\u0441\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u0430 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432 &#8212; f (&#171;file&#187;). \u0417\u0430\u0442\u0435\u043c \u0438\u0434\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -exec, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0438 \u0441\u0442\u0430\u0432\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 (\u0432\u043c\u0435\u0441\u0442\u043e \u0438\u043c\u0435\u043d\u0438 &#8212; {}).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u043e \u0442\u0435\u043c\u0435 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 unix-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043c\u043e\u0435\u0439 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439: &#171;\u041f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 Linux\/Unix \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445&#171;. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0432\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438 \u043f\u043e FTP \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u043b\u0438 \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0441 \u043a\u0443\u0447\u0435\u0439 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043e\u043a. \u0415\u0441\u043b\u0438 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 &#171;\u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0433\u043e&#187; \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,11],"tags":[],"_links":{"self":[{"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/posts\/50"}],"collection":[{"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":8,"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":52,"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions\/52"}],"wp:attachment":[{"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zakirov.net\/blog\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}