{"id":574814,"date":"2024-06-07T05:05:19","date_gmt":"2024-06-06T21:05:19","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/574814.html"},"modified":"2024-06-07T05:05:21","modified_gmt":"2024-06-06T21:05:21","slug":"%e6%80%8e%e4%b9%88%e6%81%a2%e5%a4%8d%e6%96%87%e6%a1%a3%e8%ae%be%e7%bd%ae%e6%9d%83%e9%99%90%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/574814.html","title":{"rendered":"\u600e\u4e48\u6062\u590d\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24162737\/6b8ea98d-b363-42e2-a705-65cf9081bb2b.webp\" alt=\"\u600e\u4e48\u6062\u590d\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406\" \/><\/p>\n<p><p>\u5728\u5f88\u591a\u7ec4\u7ec7\u6216\u4e2a\u4eba\u4f7f\u7528\u7684\u6587\u6863\u7ba1\u7406\u7cfb\u7edf\u4e2d\uff0c<strong>\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406<\/strong>\u662f\u4e00\u9879\u5173\u952e\u529f\u80fd\uff0c\u7528\u4e8e\u4fdd\u62a4\u654f\u611f\u4fe1\u606f\u3001\u7ef4\u62a4\u5de5\u4f5c\u6d41\u7a0b\u7684\u79e9\u5e8f\u548c\u786e\u4fdd\u6570\u636e\u5b89\u5168\u3002\u8981\u6062\u590d\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406\uff0c\u9996\u5148\u9700\u8981\u786e\u5b9a\u6743\u9650\u4e22\u5931\u7684\u539f\u56e0\u3001<strong>\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff08ACL\uff09\u7684\u5907\u4efd\u548c\u6062\u590d\u673a\u5236<\/strong>\u3001\u4ee5\u53ca\u6062\u590d\u6743\u9650\u7684\u5177\u4f53\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u5728\u8be6\u7ec6\u63cf\u8ff0\u4e4b\u524d\uff0c\u4e00\u4e2a\u5173\u952e\u70b9\u662f\u4e86\u89e3\u4f60\u4f7f\u7528\u7684\u6587\u6863\u7ba1\u7406\u7cfb\u7edf\u6216\u64cd\u4f5c\u7cfb\u7edf\u3002\u4e0d\u540c\u7684\u7cfb\u7edf\uff0c\u6bd4\u5982Microsoft Office\u3001Google Docs\u3001\u6216\u8005\u662fDropbox\uff0c\u90fd\u6709\u81ea\u5df1\u7684\u6743\u9650\u7ba1\u7406\u65b9\u5f0f\u3002\u6b64\u5916\uff0c\u5982\u679c\u662f\u670d\u52a1\u5668\u5c42\u9762\u7684\u6587\u6863\u6743\u9650\u7ba1\u7406\uff0c\u5982Windows Server\u6216Linux\u670d\u52a1\u5668\uff0c\u6062\u590d\u6743\u9650\u7684\u6b65\u9aa4\u4e5f\u4f1a\u6709\u6240\u4e0d\u540c\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4f1a\u4ee5\u901a\u7528\u7684\u6b65\u9aa4\u4ecb\u7ecd\u5982\u4f55\u6062\u590d\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u786e\u5b9a\u6743\u9650\u4e22\u5931\u7684\u539f\u56e0<\/h3>\n<\/p>\n<p><p>\u5728\u4efb\u4f55\u5c1d\u8bd5\u4fee\u590d\u95ee\u9898\u4e4b\u524d\uff0c\u9996\u5148\u8981\u4e86\u89e3\u95ee\u9898\u51fa\u73b0\u7684\u539f\u56e0\u3002\u6743\u9650\u53ef\u80fd\u4f1a\u56e0\u4e3a<strong>\u8bef\u64cd\u4f5c\u3001\u7cfb\u7edf\u66f4\u65b0\u3001\u8f6f\u4ef6\u6545\u969c\u6216\u6076\u610f\u8f6f\u4ef6<\/strong>\u7b49\u539f\u56e0\u4e22\u5931\u3002\u4e86\u89e3\u539f\u56e0\u5bf9\u4e8e\u91c7\u53d6\u6b63\u786e\u7684\u6062\u590d\u6b65\u9aa4\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><h4>\u7cfb\u7edf\u66f4\u65b0\u6216\u8f6f\u4ef6\u6545\u969c<\/h4>\n<\/p>\n<p><p>\u7cfb\u7edf\u66f4\u65b0\u6216\u8f6f\u4ef6\u6545\u969c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6743\u9650\u8bbe\u7f6e\u88ab\u91cd\u7f6e\u6216\u635f\u574f\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u68c0\u67e5\u7cfb\u7edf\u7684\u66f4\u65b0\u65e5\u5fd7\u548c\u8f6f\u4ef6\u7684\u9519\u8bef\u62a5\u544a\u662f\u4e00\u4e2a\u597d\u7684\u8d77\u70b9\u3002<\/p>\n<\/p>\n<p><h4>\u6076\u610f\u8f6f\u4ef6\u5f71\u54cd<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u662f\u56e0\u4e3a\u6076\u610f\u8f6f\u4ef6\u9020\u6210\u6743\u9650\u53d8\u66f4\uff0c\u9996\u5148\u9700\u8981\u8fd0\u884c\u5b89\u5168\u626b\u63cf\uff0c\u786e\u4fdd\u7cfb\u7edf\u4e2d\u6ca1\u6709\u75c5\u6bd2\u6216\u6076\u610f\u8f6f\u4ef6\uff0c\u7136\u540e\u518d\u8fdb\u884c\u6743\u9650\u6062\u590d\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4e86\u89e3\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff08ACL\uff09<\/h3>\n<\/p>\n<p><p>\u6587\u6863\u6743\u9650\u901a\u5e38\u901a\u8fc7\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff08ACL\uff09\u6765\u7ba1\u7406\uff0c\u5b83\u5b9a\u4e49\u4e86\u54ea\u4e9b\u7528\u6237\u6216\u7528\u6237\u7ec4\u53ef\u4ee5\u8bbf\u95ee\u7279\u5b9a\u7684\u6587\u4ef6\u6216\u6587\u4ef6\u5939\u3002<\/p>\n<\/p>\n<p><h4>ACL\u5907\u4efd\u548c\u6062\u590d<\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u9632\u6b62\u6743\u9650\u4e22\u5931\uff0c\u5b9a\u671f\u5907\u4efdACL\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u5982\u679c\u4f60\u6709ACL\u7684\u5907\u4efd\uff0c\u6062\u590d\u6743\u9650\u5c06\u4f1a\u6bd4\u8f83\u7b80\u5355\u3002\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u7cfb\u7edf\u5de5\u5177\u6216\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u6765\u5907\u4efd\u548c\u6062\u590dACL\u3002<\/p>\n<\/p>\n<p><h4>\u6743\u9650\u5c42\u7ea7<\/h4>\n<\/p>\n<p><p>\u4e86\u89e3\u6587\u6863\u7ba1\u7406\u7cfb\u7edf\u4e2d\u7684\u6743\u9650\u5c42\u7ea7\u4e5f\u5f88\u91cd\u8981\u3002\u901a\u5e38\uff0c\u6743\u9650\u4f1a\u4ece\u66f4\u9ad8\u5c42\u7ea7\uff08\u5982\u6587\u4ef6\u5939\uff09\u7ee7\u627f\u5230\u4e0b\u4e00\u5c42\u7ea7\uff08\u5982\u6587\u4ef6\uff09\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6062\u590d\u6743\u9650\u7684\u6b65\u9aa4<\/h3>\n<\/p>\n<p><p>\u6062\u590d\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406\u7684\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\u8bc6\u522b\u53d7\u5f71\u54cd\u7684\u6587\u6863\u3001\u6062\u590d\u6216\u91cd\u65b0\u8bbe\u7f6eACL\u3001\u4ee5\u53ca\u9a8c\u8bc1\u6743\u9650\u6062\u590d\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h4>\u8bc6\u522b\u53d7\u5f71\u54cd\u7684\u6587\u6863<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u786e\u5b9a\u54ea\u4e9b\u6587\u6863\u6216\u6587\u4ef6\u5939\u7684\u6743\u9650\u88ab\u66f4\u6539\u6216\u4e22\u5931\u3002\u8fd9\u53ef\u80fd\u9700\u8981\u901a\u8fc7\u6587\u6863\u7ba1\u7406\u7cfb\u7edf\u7684\u5ba1\u8ba1\u65e5\u5fd7\u6216\u6587\u4ef6\u7cfb\u7edf\u7684\u65e5\u5fd7\u6765\u5b8c\u6210\u3002<\/p>\n<\/p>\n<p><h4>\u6062\u590d\u6216\u91cd\u65b0\u8bbe\u7f6eACL<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u6709ACL\u5907\u4efd\uff0c\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u5de5\u5177\u6216\u547d\u4ee4\u884c\u6765\u6062\u590d\u3002\u5982\u679c\u6ca1\u6709\u5907\u4efd\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u91cd\u65b0\u8bbe\u7f6e\u53d7\u5f71\u54cd\u6587\u6863\u7684\u6743\u9650\u3002<\/p>\n<\/p>\n<p><h4>\u9a8c\u8bc1\u6743\u9650\u6062\u590d<\/h4>\n<\/p>\n<p><p>\u6062\u590d\u6743\u9650\u540e\uff0c\u9700\u8981\u9a8c\u8bc1\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\uff0c\u786e\u4fdd\u76ee\u6807\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u6587\u6863\uff0c\u540c\u65f6\u672a\u6388\u6743\u7684\u7528\u6237\u88ab\u6b63\u786e\u5730\u963b\u6b62\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u7279\u5b9a\u5de5\u5177\u6216\u547d\u4ee4<\/h3>\n<\/p>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>icacls<\/code>\u547d\u4ee4\u6765\u5907\u4efd\u548c\u6062\u590dACL\u3002\u800c\u5728Linux\u7cfb\u7edf\u4e2d\uff0c<code>getfacl<\/code>\u548c<code>setfacl<\/code>\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u6743\u9650\u3002<\/p>\n<\/p>\n<p><h4>Windows\u7cfb\u7edf<\/h4>\n<\/p>\n<p><pre><code class=\"language-cmd\">icacls &quot;C:\\path\\to\\folder&quot; \/save AclFile.bin \/t<\/p>\n<p>icacls &quot;C:\\path\\to\\restore\\location&quot; \/restore AclFile.bin<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>Linux\u7cfb\u7edf<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">getfacl -R \/path\/to\/folder &gt; permissions.acl<\/p>\n<p>setfacl --restore=permissions.acl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u9884\u9632\u63aa\u65bd<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u9632\u6b62\u672a\u6765\u53d1\u751f\u6743\u9650\u4e22\u5931\u7684\u60c5\u51b5\uff0c<strong>\u5b9a\u671f\u5907\u4efdACL\u3001\u4f7f\u7528\u590d\u6742\u7684\u6743\u9650\u7ba1\u7406\u7b56\u7565\u3001\u4fdd\u6301\u8f6f\u4ef6\u66f4\u65b0<\/strong>\u548c<strong>\u8fd0\u884c\u5b9a\u671f\u7684\u5b89\u5168\u626b\u63cf<\/strong>\u662f\u5173\u952e\u3002<\/p>\n<\/p>\n<p><h4>\u5b9a\u671f\u5907\u4efdACL<\/h4>\n<\/p>\n<p><p>\u786e\u4fdd\u6709\u4e00\u4e2a\u53ef\u9760\u7684\u5907\u4efd\u6d41\u7a0b\uff0c\u53ef\u4ee5\u5b9a\u671f\u81ea\u52a8\u5907\u4efd\u6587\u6863\u7684\u6743\u9650\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><h4>\u6743\u9650\u7ba1\u7406\u7b56\u7565<\/h4>\n<\/p>\n<p><p>\u5b9e\u65bd\u4e00\u4e2a\u590d\u6742\u7684\u6743\u9650\u7ba1\u7406\u7b56\u7565\uff0c\u5305\u62ec\u6700\u5c0f\u6743\u9650\u539f\u5219\uff0c\u53ea\u7ed9\u4e88\u7528\u6237\u5b8c\u6210\u5de5\u4f5c\u6240\u5fc5\u9700\u7684\u6743\u9650\u3002<\/p>\n<\/p>\n<p><h4>\u8f6f\u4ef6\u66f4\u65b0\u548c\u5b89\u5168\u626b\u63cf<\/h4>\n<\/p>\n<p><p>\u4fdd\u6301\u6240\u6709\u7cfb\u7edf\u548c\u5b89\u5168\u8f6f\u4ef6\u6700\u65b0\uff0c\u4ee5\u53ca\u5b9a\u671f\u8fd0\u884c\u5b89\u5168\u626b\u63cf\uff0c\u53ef\u4ee5\u9632\u6b62\u6076\u610f\u8f6f\u4ef6\u5bfc\u81f4\u7684\u6743\u9650\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u6062\u590d\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406\uff0c\u5e76\u91c7\u53d6\u63aa\u65bd\u9632\u6b62\u7c7b\u4f3c\u7684\u95ee\u9898\u518d\u6b21\u53d1\u751f\u3002\u8981\u8bb0\u4f4f\uff0c\u4e0d\u540c\u7684\u7cfb\u7edf\u548c\u6587\u6863\u7ba1\u7406\u5de5\u5177\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u6062\u590d\u65b9\u6cd5\uff0c\u6240\u4ee5\u4e86\u89e3\u4f60\u6240\u4f7f\u7528\u7684\u5177\u4f53\u7cfb\u7edf\u548c\u5de5\u5177\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u4e3a\u4ec0\u4e48\u6211\u65e0\u6cd5\u8bbf\u95ee\u6216\u7f16\u8f91\u6587\u6863\u7684\u6743\u9650\uff1f<\/strong><br \/>\n\u53ef\u80fd\u662f\u56e0\u4e3a\u6587\u6863\u7684\u6743\u9650\u8bbe\u7f6e\u88ab\u66f4\u6539\u4e86\u3002\u53ea\u6709\u5177\u6709\u9002\u5f53\u6743\u9650\u7684\u7528\u6237\u624d\u80fd\u8bbf\u95ee\u6216\u7f16\u8f91\u6587\u6863\u3002\u8bf7\u8054\u7cfb\u6587\u6863\u7684\u7ba1\u7406\u5458\u6216\u62e5\u6709\u8005\u4ee5\u83b7\u53d6\u6743\u9650\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u6062\u590d\u6587\u6863\u7684\u6743\u9650\u7ba1\u7406\uff1f<\/strong><br \/>\n\u8981\u6062\u590d\u6587\u6863\u7684\u6743\u9650\u7ba1\u7406\uff0c\u60a8\u9700\u8981\u5177\u6709\u6587\u6863\u7684\u7ba1\u7406\u5458\u6743\u9650\u3002\u767b\u5f55\u5230\u6587\u6863\u6240\u5c5e\u7684\u5e73\u53f0\u6216\u5de5\u5177\uff0c\u627e\u5230\u6587\u6863\u5e76\u8fdb\u5165\u5176\u8bbe\u7f6e\u6216\u5c5e\u6027\u9875\u9762\u3002\u5728\u6743\u9650\u7ba1\u7406\u90e8\u5206\uff0c\u60a8\u53ef\u4ee5\u91cd\u65b0\u5206\u914d\u7528\u6237\u7684\u8bbf\u95ee\u6743\u9650\u3001\u7f16\u8f91\u6743\u9650\u6216\u5176\u4ed6\u6743\u9650\u3002<\/p>\n<p><strong>3. \u6211\u5fd8\u8bb0\u4e86\u6587\u6863\u7684\u7ba1\u7406\u5458\u8d26\u6237\u548c\u5bc6\u7801\uff0c\u600e\u4e48\u529e\uff1f<\/strong><br \/>\n\u5982\u679c\u60a8\u5fd8\u8bb0\u4e86\u6587\u6863\u7684\u7ba1\u7406\u5458\u8d26\u6237\u548c\u5bc6\u7801\uff0c\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u201c\u627e\u56de\u5bc6\u7801\u201d\u529f\u80fd\u6216\u8054\u7cfb\u5e73\u53f0\u6216\u5de5\u5177\u7684\u6280\u672f\u652f\u6301\u56e2\u961f\u5bfb\u6c42\u5e2e\u52a9\u3002\u4ed6\u4eec\u901a\u5e38\u53ef\u4ee5\u5e2e\u52a9\u60a8\u6062\u590d\u7ba1\u7406\u5458\u8d26\u6237\u7684\u8bbf\u95ee\u6743\u9650\u3002\u5982\u679c\u60a8\u65e0\u6cd5\u627e\u56de\u7ba1\u7406\u5458\u8d26\u6237\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u4e0e\u5176\u4ed6\u5177\u6709\u7ba1\u7406\u5458\u6743\u9650\u7684\u7528\u6237\u5408\u4f5c\uff0c\u4ee5\u91cd\u65b0\u5206\u914d\u6743\u9650\u6216\u521b\u5efa\u65b0\u7684\u7ba1\u7406\u5458\u8d26\u6237\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u5f88\u591a\u7ec4\u7ec7\u6216\u4e2a\u4eba\u4f7f\u7528\u7684\u6587\u6863\u7ba1\u7406\u7cfb\u7edf\u4e2d\uff0c\u6587\u6863\u8bbe\u7f6e\u6743\u9650\u7ba1\u7406\u662f\u4e00\u9879\u5173\u952e\u529f\u80fd\uff0c\u7528\u4e8e\u4fdd\u62a4\u654f\u611f\u4fe1\u606f\u3001\u7ef4\u62a4\u5de5\u4f5c\u6d41\u7a0b\u7684\u79e9\u5e8f\u548c\u786e [&hellip;]","protected":false},"author":3,"featured_media":574815,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/574814"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=574814"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/574814\/revisions"}],"predecessor-version":[{"id":574816,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/574814\/revisions\/574816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/574815"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=574814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=574814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=574814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}