{"id":6890,"date":"2020-04-19T21:49:09","date_gmt":"2020-04-19T13:49:09","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6890"},"modified":"2020-04-29T08:00:38","modified_gmt":"2020-04-29T00:00:38","slug":"chacl","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/chacl","title":{"rendered":"chacl\u547d\u4ee4 – \u66f4\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684ACL"},"content":{"rendered":"\n
chacl\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u7528\u6765\u66f4\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u8bbf\u95ee\u63a7\u5236\u5217\u8868\u3002chacl\u547d\u4ee4\u548cchmod\u6709\u5f02\u66f2\u540c\u5de5\u4e4b\u5999\u3002\u4f46\u662fchacl\u547d\u4ee4\u6bd4chmod\u66f4\u4e3a\u5f3a\u5927\uff0c\u66f4\u4e3a\u7cbe\u7ec6\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>chacl [\u53c2\u6570] [\u6587\u4ef6\u6216\u76ee\u5f55]<\/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 \u67e5\u8be2\u6587\u4ef6linuxcool_file1\u7684\u6743\u9650\u914d\u7f6e\uff1a<\/p>\n\n\n\n \u5c06\u6587\u4ef6linuxcool_file1\u7684\u6743\u9650\u8bbe\u7f6e\u4e3a\uff1a\u62e5\u6709\u8005\u53ef\u8bfb\u53ef\u5199\u53ef\u8fd0\u884c\uff0c\u540c\u7ec4\u8005\u53ef\u8bfb\u53ef\u8fd0\u884c\uff0c\u5176\u4ed6\u4eba\u4ec5\u53ef\u8fd0\u884c\uff1a<\/p>\n\n\n\n \u6e05\u9664\/opt\/ta\u6587\u4ef6\u7684ACL\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n chacl\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u7528\u6765\u66f4\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u8bbf\u95ee\u63a7\u5236\u5217\u8868\u3002chacl\u547d\u4ee4\u548cchmod\u6709\u5f02\u66f2\u540c\u5de5\u4e4b\u5999\u3002\u4f46\u662fchac […]<\/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\/6890"}],"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=6890"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6890\/revisions"}],"predecessor-version":[{"id":7273,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6890\/revisions\/7273"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-b<\/td> \u8868\u793a\u6539\u53d8\u4e24\u4e2aACL\uff0c\u7b2c\u4e00\u4e2a\u662f\u6587\u4ef6\u8bbf\u95eeACL\uff0c\u7b2c\u4e8c\u4e2a\u662f\u76ee\u5f55\u7684\u9ed8\u8ba4ACL<\/td><\/tr> -d<\/td> \u53ea\u8bbe\u7f6e\u76ee\u5f55\u7684ACL<\/td><\/tr> -R<\/td> \u53ea\u6e05\u9664\u6587\u4ef6\u7684ACL<\/td><\/tr> -D<\/td> \u53ea\u6e05\u9664\u76ee\u5f55\u7684\u9ed8\u8ba4ACL<\/td><\/tr> -l<\/td> \u5217\u51fa\u8bbf\u95eeACL\u548c\u53ef\u80fd\u4e0e\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u5173\u8054\u7684\u9ed8\u8ba4ACL <\/td><\/tr> -B<\/td> \u6e05\u9664\u6240\u6709\u7684ACL<\/td><\/tr> -r<\/td> \u9012\u5f52\u8bbe\u7f6e\u8bbf\u95eeACL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# chacl -l linuxcool_file1<\/pre>\n\n\n\n
[root@linuxcool ~]# chacl u:rwx,g:r-x,o:--x linuxcool_file1<\/pre>\n\n\n\n
[root@linuxcool ~]# chacl -B \/opt\/ta<\/pre>\n","protected":false},"excerpt":{"rendered":"