{"id":924,"date":"2014-10-14T15:04:13","date_gmt":"2014-10-14T07:04:13","guid":{"rendered":"http:\/\/www.hawkwithwind.net\/blog\/?p=924"},"modified":"2014-10-14T15:05:35","modified_gmt":"2014-10-14T07:05:35","slug":"linux-%e6%96%87%e4%bb%b6%e7%9b%ae%e5%bd%95%e6%9d%83%e9%99%90%e6%89%b9%e9%87%8f%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.hawkwithwind.net\/blog\/2014\/10\/14\/linux-%e6%96%87%e4%bb%b6%e7%9b%ae%e5%bd%95%e6%9d%83%e9%99%90%e6%89%b9%e9%87%8f%e5%a4%84%e7%90%86\/","title":{"rendered":"linux \u6587\u4ef6\u76ee\u5f55\u6743\u9650\u6279\u91cf\u5904\u7406"},"content":{"rendered":"<p>\u5728linux\u4e0a\u6709\u65f6\u9047\u5230\u8fd9\u6837\u7684\u9700\u6c42\uff0c\u5e0c\u671b\u5c06\u4e00\u4e2a\u76ee\u5f55\u4e0b\u6240\u6709\u5b50\u76ee\u5f55\u7684\u6743\u9650\u6279\u91cf\u8bbe\u7f6e\u4e3a\u65b0\u7684\u6743\u9650\u3002<br \/>\n\u8fd9\u5176\u5b9e\u5f88\u5bb9\u6613\uff0c\u53ea\u9700<code>chmod -R XXX path<\/code>\u5373\u53ef\u3002<br \/>\n\u95ee\u9898\u662f\uff0c\u5982\u679c\u6211\u4eec\u53ea\u60f3\u8ba9\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u5230\u8fd9\u4e2a\u6587\u4ef6\u76ee\u5f55\uff0c\u540c\u65f6\u9700\u8981\u4fdd\u6301\u539f\u6709\u7684\u8bfb\u5199\u6743\u9650\uff0c\u8be5\u600e\u4e48\u529e\u5462\uff1f<br \/>\n\u4f7f\u7528chmod\u7684\u6743\u9650\u5b57\u6bcd\u8868\u793a\u6cd5\uff0c\u53ef\u4ee5\u8868\u793a\u8be5\u6587\u4ef6\u5f53\u524d\u7684\u6743\u9650<\/p>\n<pre>\r\nThe permissions that the User who owns the file currently has for it\tu\r\nThe permissions that other users in the file's Group have for it\tg\r\nPermissions that Other users not in the file's group have for it\to\r\n<\/pre>\n<p>\u901a\u8fc7\u4ee5\u4e0b\u7b26\u53f7\u53ef\u4ee5\u8868\u793a\u5c06\u8981\u8bbe\u7f6e\u7684\u6587\u4ef6\u6743\u9650<\/p>\n<pre>\r\nUser\t                           letter\r\nThe user who owns it\t                u\r\nOther users in the file's Group\t        g\r\nOther users not in the file's group\to\r\nAll users\t                        a\r\n<\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u5c31\u53ef\u4ee5\u77e5\u9053\u6211\u4eec\u60f3\u8981\u7684\u547d\u4ee4<\/p>\n<pre><code>\r\nchmod -R a+u path\r\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u8ba9\u6240\u6709\u7528\u6237\u90fd\u6309\u7167\u6587\u4ef6\u5f53\u524d\u7528\u6237\u6743\u9650\u8bbf\u95ee\u3002<\/p>\n<p>\u53c2\u8003\uff1a<br \/>\n[1] <a href=\"http:\/\/ss64.com\/bash\/chmod.html\" title=\"chmod man page\">chmod man page<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728linux\u4e0a\u6709\u65f6\u9047\u5230\u8fd9\u6837\u7684\u9700\u6c42\uff0c\u5e0c\u671b\u5c06\u4e00\u4e2a\u76ee\u5f55\u4e0b\u6240\u6709\u5b50\u76ee\u5f55\u7684\u6743\u9650\u6279\u91cf\u8bbe\u7f6e\u4e3a\u65b0\u7684\u6743\u9650\u3002 \u8fd9\u5176\u5b9e\u5f88\u5bb9\u6613\uff0c\u53ea\u9700chmod -R XXX path\u5373\u53ef\u3002 \u95ee\u9898\u662f\uff0c\u5982\u679c\u6211\u4eec\u53ea\u60f3\u8ba9\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u5230\u8fd9\u4e2a\u6587\u4ef6\u76ee\u5f55\uff0c\u540c\u65f6\u9700\u8981\u4fdd\u6301\u539f\u6709\u7684\u8bfb\u5199\u6743\u9650\uff0c\u8be5\u600e\u4e48\u529e\u5462\uff1f \u4f7f\u7528chmod\u7684\u6743\u9650\u5b57\u6bcd\u8868\u793a\u6cd5\uff0c\u53ef\u4ee5\u8868\u793a\u8be5\u6587\u4ef6\u5f53\u524d\u7684\u6743\u9650 The permissions that the User who owns the file currently has for it u The permissions that other users in the file&#8217;s Group have for it g Permissions that Other users not in the file&#8217;s group have for it o \u901a\u8fc7\u4ee5\u4e0b\u7b26\u53f7\u53ef\u4ee5\u8868\u793a\u5c06\u8981\u8bbe\u7f6e\u7684\u6587\u4ef6\u6743\u9650 User letter The user who owns it &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[49],"class_list":["post-924","post","type-post","status-publish","format-standard","hentry","category-note","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/comments?post=924"}],"version-history":[{"count":2,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/924\/revisions"}],"predecessor-version":[{"id":926,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/924\/revisions\/926"}],"wp:attachment":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/media?parent=924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/categories?post=924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/tags?post=924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}