{"id":4109,"date":"2019-07-27T22:19:50","date_gmt":"2019-07-27T14:19:50","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4109"},"modified":"2022-05-09T23:19:42","modified_gmt":"2022-05-09T15:19:42","slug":"chown","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/chown","title":{"rendered":"chown\u547d\u4ee4 – \u6539\u53d8\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u7528\u6237\u548c\u7528\u6237\u7ec4"},"content":{"rendered":"\n
chown\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dChange owner\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u6539\u53d8\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u7528\u6237\u548c\u7528\u6237\u7ec4\u4fe1\u606f\u3002\u7ba1\u7406\u5458\u53ef\u4ee5\u6539\u53d8\u4e00\u5207\u6587\u4ef6\u7684\u6240\u5c5e\u4fe1\u606f\uff0c\u800c\u666e\u901a\u7528\u6237\u53ea\u80fd\u6539\u53d8\u81ea\u5df1\u6587\u4ef6\u7684\u6240\u5c5e\u4fe1\u606f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>chown [\u53c2\u6570] \u6240\u5c5e\u4e3b:\u6240\u5c5e\u7ec4 \u6587\u4ef6<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u6539\u53d8\u6307\u5b9a\u6587\u4ef6\u7684\u6240\u5c5e\u4e3b\u4e0e\u6240\u5c5e\u7ec4\uff1a<\/p>\n\n\n\n \u6539\u53d8\u6307\u5b9a\u6587\u4ef6\u7684\u6240\u5c5e\u4e3b\u4e0e\u6240\u5c5e\u7ec4\uff0c\u5e76\u663e\u793a\u8fc7\u7a0b\uff1a<\/p>\n\n\n\n \u6539\u53d8\u6307\u5b9a\u76ee\u5f55\u53ca\u5176\u5185\u6240\u6709\u5b50\u6587\u4ef6\u7684\u6240\u5c5e\u4e3b\u4e0e\u6240\u5c5e\u7ec4\uff1a<\/p>\n\n\n\n chown\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dChange owner\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u6539\u53d8\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u7528\u6237\u548c\u7528\u6237\u7ec4\u4fe1\u606f\u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4109"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4109"}],"version-history":[{"count":17,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4109\/revisions"}],"predecessor-version":[{"id":9410,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4109\/revisions\/9410"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-R<\/td> \u5bf9\u76ee\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u4e0e\u76ee\u5f55\u8fdb\u884c\u76f8\u540c\u7684\u53d8\u66f4<\/td><\/tr> -c<\/td> \u663e\u793a\u6240\u5c5e\u4fe1\u606f\u53d8\u66f4\u4fe1\u606f<\/td><\/tr> -f<\/td> \u82e5\u8be5\u6587\u4ef6\u62e5\u6709\u8005\u65e0\u6cd5\u88ab\u66f4\u6539\u4e5f\u4e0d\u8981\u663e\u793a\u9519\u8bef <\/td><\/tr> -h<\/td> \u53ea\u5bf9\u4e8e\u94fe\u63a5\u6587\u4ef6\u8fdb\u884c\u53d8\u66f4\uff0c\u800c\u975e\u771f\u6b63\u6307\u5411\u7684\u6587\u4ef6 <\/td><\/tr> -v<\/td> \u663e\u793a\u62e5\u6709\u8005\u53d8\u66f4\u7684\u8be6\u7ec6\u8d44\u6599 <\/td><\/tr> --help<\/td> \u663e\u793a\u8f85\u52a9\u8bf4\u660e <\/td><\/tr> --version <\/td> \u663e\u793a\u7248\u672c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# chown root:root \/etc\/fstab<\/strong>\r<\/pre>\n\n\n\n
[root@linuxcool ~]# chown -c linuxprobe:linuxprobe \/etc\/fstab<\/strong>\nchanged ownership of '\/etc\/fstab' from root:root to linuxprobe:linuxprobe<\/pre>\n\n\n\n
[root@linuxcool ~]# chown -R root:root \/etc<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"