{"id":83509,"date":"2026-07-26T00:33:29","date_gmt":"2026-07-25T16:33:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/83509.html"},"modified":"2026-07-26T00:33:29","modified_gmt":"2026-07-25T16:33:29","slug":"%e3%80%90linux%e3%80%91-%e6%9d%83%e9%99%90%e7%ae%a1%e7%90%86%ef%bc%88%e7%9f%a5%e8%af%86%e6%a2%b3%e7%90%86-%e9%9d%a2%e8%af%95%e9%a2%98%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/83509.html","title":{"rendered":"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1080\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725163324-6a64e554e3a7b.png\" width=\"1920\" \/><\/p>\n<hr \/>\n<h2><span style=\"color:#a2e043\"><span style=\"background-color:#7b7f82\">\u00a0 Linux \u6743\u9650\u7ba1\u7406\u5b8c\u6574\u8be6\u89e3\u00a0\u00a0<\/span><\/span><\/h2>\n<h3><span style=\"color:#1a439c\">\u4e00\u3001Linux \u6743\u9650\u7684\u6982\u5ff5<\/span><\/h3>\n<h4><span style=\"color:#511b78\">1.1 \u6743\u9650\u8bde\u751f\u80cc\u666f<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Linux \u662f\u591a\u7528\u6237\u5206\u65f6\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u5141\u8bb8\u591a\u4e2a\u7528\u6237\u540c\u65f6\u767b\u5f55\u3001\u64cd\u4f5c\u7cfb\u7edf\u8d44\u6e90\u3002\u4e3a\u4e86\u9632\u6b62\u7528\u6237\u968f\u610f\u4fee\u6539\u3001\u5220\u9664\u4ed6\u4eba\u6587\u4ef6&#xff0c;\u9694\u79bb\u8d44\u6e90\u3001\u4fdd\u969c\u7cfb\u7edf\u5b89\u5168&#xff0c;\u5185\u6838\u5f15\u5165\u6743\u9650\u8bbf\u95ee\u63a7\u5236\u673a\u5236\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Windows \u91c7\u7528 ACL \u8bbf\u95ee\u63a7\u5236\u5217\u8868&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Linux \u57fa\u7840\u6a21\u578b\u91c7\u7528\u7ecf\u5178UGO&#xff08;User\/Group\/Other&#xff09;\u6743\u9650\u6a21\u578b\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">1.2 UGO \u4e09\u7c7b\u8eab\u4efd<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f7f\u7528 ls -l \u67e5\u770b\u6587\u4ef6\u65f6&#xff0c;\u6bcf\u4e00\u4e2a\u6587\u4ef6 \/ \u76ee\u5f55\u90fd\u4f1a\u7ed1\u5b9a\u4e09\u7c7b\u8bbf\u95ee\u8005\u8eab\u4efd&#xff1a;<\/span><\/p>\n<p>-rw-r&#8211;r&#8211;  1 ubuntu ubuntu  120 Jul 22 10:00 test.txt<\/p>\n<li><span style=\"color:#0d0016\">u (user&#xff0c;\u5c5e\u4e3b \/ \u6240\u6709\u8005)&#xff1a;\u6587\u4ef6\u521b\u5efa\u8005\u3001\u62e5\u6709\u8005&#xff0c;\u6743\u9650\u4f18\u5148\u7ea7\u6700\u9ad8&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">g (group&#xff0c;\u5c5e\u7ec4)&#xff1a;\u5f52\u5c5e\u7528\u6237\u7ec4\u5185\u7684\u6240\u6709\u6210\u5458&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">o (other&#xff0c;\u5176\u4ed6\u7528\u6237)&#xff1a;\u65e2\u4e0d\u662f\u5c5e\u4e3b\u3001\u4e5f\u4e0d\u5728\u5c5e\u7ec4\u5185\u7684\u6240\u6709\u4eba&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">a(all)&#xff1a;\u7b80\u5199&#xff0c;\u4ee3\u8868 u&#043;g&#043;o \u5168\u90e8\u4e09\u7c7b\u4eba\u3002<\/span><\/li>\n<h4><span style=\"color:#511b78\">1.3 \u4e09\u79cd\u57fa\u7840\u6743\u9650 r w x<\/span><\/h4>\n<table>\n<tr><span style=\"color:#0d0016\">\u6743\u9650\u5b57\u7b26<\/span><span style=\"color:#0d0016\">\u542b\u4e49<\/span><span style=\"color:#0d0016\">\u516b\u8fdb\u5236\u503c<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">r(read)<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u8bfb\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#0d0016\">4<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">w(write)<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5199\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#0d0016\">2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">x(execute)<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6267\u884c\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#0d0016\">1<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#b95514\">\u26a0\ufe0f \u91cd\u4e2d\u4e4b\u91cd&#xff1a;<\/span><span style=\"color:#0d0016\">rwx \u5bf9\u3010\u6587\u4ef6\u3011\u548c\u3010\u76ee\u5f55\u3011\u542b\u4e49\u5b8c\u5168\u4e0d\u540c&#xff01;\u5f88\u591a\u521d\u5b66\u8005\u8e29\u5751\u5c31\u5728\u8fd9\u91cc&#xff0c;\u540e\u6587\u5355\u72ec\u8bb2\u89e3\u76ee\u5f55\u6743\u9650\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">1.4\u00a0\u2f42\u4ef6\u7c7b\u578b\u548c\u8bbf\u95ee\u6743\u9650&#xff08;\u4e8b\u7269\u5c5e\u6027&#xff09; <\/span><\/h4>\n<li><span style=\"color:#0d0016\">d&#xff1a;\u2f42\u4ef6\u5939 <\/span><\/li>\n<li><span style=\"color:#0d0016\">-&#xff1a;\u666e\u901a\u2f42\u4ef6 <\/span><\/li>\n<li><span style=\"color:#0d0016\">l&#xff1a;\u8f6f\u94fe\u63a5&#xff08;\u7c7b\u4f3cWindows\u7684\u5feb\u6377\u2f45\u5f0f&#xff09; <\/span><\/li>\n<li><span style=\"color:#0d0016\">b&#xff1a;\u5757\u8bbe\u5907\u2f42\u4ef6&#xff08;\u4f8b\u5982\u786c\u76d8\u3001\u5149\u9a71\u7b49&#xff09; <\/span><\/li>\n<li><span style=\"color:#0d0016\">p&#xff1a;\u7ba1\u9053\u2f42\u4ef6 <\/span><\/li>\n<li><span style=\"color:#0d0016\">c&#xff1a;\u5b57\u7b26\u8bbe\u5907\u2f42\u4ef6<\/span><\/li>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e8c\u3001\u6587\u4ef6\u6743\u9650\u503c\u7684\u4e24\u79cd\u8868\u793a\u65b9\u6cd5<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u6267\u884c ls -l \u770b\u5230 -rwxr-xr&#8211;&#xff0c;\u6743\u9650\u5206\u4e3a\u5b57\u7b26\u8868\u793a\u6cd5\u3001\u6570\u5b57&#xff08;\u516b\u8fdb\u5236&#xff09;\u8868\u793a\u6cd5\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">2.1 \u5b57\u7b26\u7b26\u53f7\u8868\u793a\u6cd5<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u6743\u9650\u4e32\u4e00\u5171 9 \u4f4d&#xff0c;\u5206\u4e3a\u4e09\u6bb5&#xff0c;\u6bcf 3 \u4f4d\u5bf9\u5e94\u4e00\u7c7b\u8eab\u4efd u g o&#xff1a;<\/span><span style=\"color:#fe2c24\"> &#8211; rwx r-x r&#8211;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">\u7b2c 1 \u6bb5&#xff08;1~3 \u4f4d&#xff09;&#xff1a;\u5c5e\u4e3b u \u6743\u9650 rwx<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7b2c 2 \u6bb5&#xff08;4~6 \u4f4d&#xff09;&#xff1a;\u5c5e\u7ec4 g \u6743\u9650 r-x<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7b2c 3 \u6bb5&#xff08;7~9 \u4f4d&#xff09;&#xff1a;\u5176\u4ed6\u4eba o \u6743\u9650 r&#8211; &#8211; \u4ee3\u8868\u6ca1\u6709\u8be5\u6743\u9650<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">2.2 \u516b\u8fdb\u5236\u6570\u5b57\u8868\u793a\u6cd5&#xff08;\u6700\u5e38\u7528&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u89c4\u5219&#xff1a;r&#061;4&#xff0c;w&#061;2&#xff0c;x&#061;1&#xff0c;\u540c\u4e00\u6bb5\u5185\u6743\u9650\u6570\u503c\u76f8\u52a0\u3002 \u793a\u4f8b\u62c6\u89e3&#xff1a;rwxr-xr&#8211;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">u&#xff1a;rwx &#061; 4&#043;2&#043;1 &#061; 7<\/span><\/li>\n<li><span style=\"color:#0d0016\">g&#xff1a;r-x &#061; 4&#043;0&#043;1 &#061; 5<\/span><\/li>\n<li><span style=\"color:#0d0016\">o&#xff1a;r&#8211; &#061; 4&#043;0&#043;0 &#061; 4 \u6700\u7ec8\u6743\u9650\u6570\u5b57&#xff1a;754<\/span><\/li>\n<\/ul>\n<p><span style=\"color:#0d0016\">\u5e38\u89c1\u6807\u51c6\u6743\u9650&#xff08;\u751f\u4ea7\u901a\u7528\u89c4\u8303&#xff09;<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u6743\u9650\u6570\u5b57<\/span><span style=\"color:#0d0016\">\u5b57\u7b26\u6743\u9650<\/span><span style=\"color:#0d0016\">\u4f7f\u7528\u573a\u666f<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">644<\/span><\/td>\n<td><span style=\"color:#0d0016\">rw-r&#8211;r&#8211;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u666e\u901a\u6587\u672c\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6&#xff08;\u9ed8\u8ba4\u6587\u4ef6\u6743\u9650&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">755<\/span><\/td>\n<td><span style=\"color:#0d0016\">rwxr-xr-x<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u53ef\u6267\u884c\u7a0b\u5e8f\u3001\u666e\u901a\u76ee\u5f55&#xff08;\u9ed8\u8ba4\u76ee\u5f55\u6743\u9650&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">600<\/span><\/td>\n<td><span style=\"color:#0d0016\">rw&#8212;&#8212;-<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5bc6\u94a5\u3001\u9690\u79c1\u914d\u7f6e\u6587\u4ef6&#xff08;\u4ec5\u5c5e\u4e3b\u8bfb\u5199&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">700<\/span><\/td>\n<td><span style=\"color:#0d0016\">rwx&#8212;&#8212;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u79c1\u4eba\u76ee\u5f55&#xff0c;\u7981\u6b62\u4efb\u4f55\u4eba\u8bbf\u95ee<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">777<\/span><\/td>\n<td><span style=\"color:#0d0016\">rwxrwxrwx<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4e0d\u63a8\u8350&#xff01;\u6240\u6709\u4eba\u5b8c\u5168\u63a7\u5236&#xff0c;\u6781\u5ea6\u4e0d\u5b89\u5168<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u8865\u5145&#xff1a;\u6570\u5b57\u6743\u9650\u672c\u8d28\u662f\u4e8c\u8fdb\u5236\u63a9\u7801 rwx &#061; 111 (2) &#061;7&#xff1b;rw-&#061;110&#061;6&#xff1b;r&#8211;&#061;100&#061;4<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e09\u3001\u6587\u4ef6\u8bbf\u95ee\u6743\u9650\u7684\u76f8\u5173\u8bbe\u7f6e\u65b9\u6cd5<\/span><\/h3>\n<p><span style=\"color:#511b78\">\u6838\u5fc3\u4e24\u6761\u547d\u4ee4&#xff1a;<\/span><span style=\"color:#0d0016\">chmod&#xff08;\u4fee\u6539\u6743\u9650&#xff09;\u3001chown&#xff08;\u4fee\u6539\u5c5e\u4e3b\u3001\u5c5e\u7ec4&#xff09;<\/span><\/p>\n<\/p>\n<h4><span style=\"color:#511b78\">3.1 chmod&#xff1a;\u4fee\u6539\u6587\u4ef6 \/ \u76ee\u5f55\u6743\u9650\u4e24\u79cd\u8bed\u6cd5&#xff1a;\u7b26\u53f7\u6a21\u5f0f\u3001\u6570\u5b57\u6a21\u5f0f<\/span><\/h4>\n<h5><span style=\"color:#0d0016\">\u2460 \u7b26\u53f7\u6a21\u5f0f&#xff08;\u76f4\u89c2&#xff0c;\u589e\u91cf\u4fee\u6539&#xff09;<\/span><\/h5>\n<p>chmod [\u8eab\u4efd][\u64cd\u4f5c][\u6743\u9650] \u6587\u4ef6<br \/>\n\u8eab\u4efd&#xff1a;u\/g\/o\/a<br \/>\n\u64cd\u4f5c&#xff1a;&#043; \u6dfb\u52a0\u6743\u9650  &#8211; \u79fb\u9664\u6743\u9650  &#061; \u76f4\u63a5\u8bbe\u7f6e\u6743\u9650<br \/>\n\u6743\u9650&#xff1a;r\/w\/x<\/p>\n<p>chmod u&#043;x test.sh      # \u7ed9\u5c5e\u4e3b\u589e\u52a0\u6267\u884c\u6743\u9650<br \/>\nchmod g-w test.txt     # \u5220\u9664\u5c5e\u7ec4\u5199\u6743\u9650<br \/>\nchmod o&#061;r test.txt     # \u5f3a\u5236\u8bbe\u7f6e\u5176\u4ed6\u4eba\u53ea\u6709\u8bfb\u6743\u9650<br \/>\nchmod a&#043;w test.txt     # \u6240\u6709\u4eba\u6dfb\u52a0\u5199\u6743\u9650<\/p>\n<h5><span style=\"color:#0d0016\">\u2461 \u6570\u5b57\u6a21\u5f0f&#xff08;\u7b80\u6d01&#xff0c;\u76f4\u63a5\u8986\u76d6\u6240\u6709\u6743\u9650&#xff09;<\/span><\/h5>\n<p>chmod 644 test.txt<br \/>\nchmod 755 test_dir<\/p>\n<h5><span style=\"color:#0d0016\">\u9012\u5f52\u4fee\u6539\u76ee\u5f55\u6743\u9650 -R<\/span><\/h5>\n<p><span style=\"color:#0d0016\">\u26a0\ufe0f\u614e\u7528 -R&#xff0c;\u4f1a\u9012\u5f52\u4fee\u6539\u76ee\u5f55\u5185\u90e8\u6240\u6709\u6587\u4ef6\u3001\u5b50\u76ee\u5f55\u6743\u9650&#xff01;<\/span><\/p>\n<p>chmod -R 755 \/home\/work<\/p>\n<h4><span style=\"color:#511b78\">3.2 chown&#xff1a;\u4fee\u6539\u6587\u4ef6\u3010\u5c5e\u4e3b\u3001\u5c5e\u7ec4\u3011<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u666e\u901a\u7528\u6237\u53ea\u80fd\u4fee\u6539\u81ea\u5df1\u6587\u4ef6\u7684\u5c5e\u7ec4&#xff1b;\u4fee\u6539\u5c5e\u4e3b\u5fc5\u987b root \u6743\u9650 \u8bed\u6cd5&#xff1a;<\/span><\/p>\n<p># \u4fee\u6539\u6240\u6709\u8005<br \/>\nchown \u7528\u6237\u540d \u6587\u4ef6\u540d<br \/>\n# \u4fee\u6539\u6240\u6709\u8005&#043;\u6240\u5c5e\u7ec4<br \/>\nchown \u7528\u6237:\u7ec4 \u6587\u4ef6\u540d<br \/>\n# \u4ec5\u4fee\u6539\u5c5e\u7ec4<br \/>\nchown :\u7ec4\u540d \u6587\u4ef6\u540d<\/p>\n<p>chown ubuntu test.txt<br \/>\nchown ubuntu:ubuntu test.txt<br \/>\n# \u9012\u5f52\u4fee\u6539\u76ee\u5f55\u5f52\u5c5e<br \/>\nchown -R ubuntu:ubuntu \/home\/work<\/p>\n<h4><span style=\"color:#511b78\">3.3 chgrp&#xff1a;\u4ec5\u4fee\u6539\u5c5e\u7ec4&#xff08;\u8bed\u4e49\u6e05\u6670&#xff0c;\u9002\u5408\u53ea\u6539\u7ec4\u7684\u573a\u666f&#xff09;<\/span><\/h4>\n<p>chgrp [\u9009\u9879] \u7ec4\u540d \u6587\u4ef6\u540d\/\u76ee\u5f55<\/p>\n<h4><span style=\"color:#511b78\">3.4 umask&#xff1a;\u65b0\u5efa\u6587\u4ef6 \/ \u76ee\u5f55\u65f6&#xff0c;\u7528\u6765 \u201c\u5c4f\u853d\u6263\u9664\u201d \u9ed8\u8ba4\u6743\u9650\u7684\u63a9\u7801<\/span><\/h4>\n<p>umask \u79f0\u4e3a\u6743\u9650\u63a9\u7801&#xff0c;\u4f5c\u7528\u662f\u63a7\u5236\u7cfb\u7edf\u4e2d\u65b0\u521b\u5efa\u6587\u4ef6\u4e0e\u76ee\u5f55\u7684\u9ed8\u8ba4\u8bbf\u95ee\u6743\u9650\u3002<br \/>\n\u7cfb\u7edf\u62e5\u6709\u9ed8\u8ba4\u6700\u5927\u57fa\u51c6\u6743\u9650&#xff0c;umask \u6307\u5b9a\u9700\u8981\u5c4f\u853d\u53bb\u9664\u7684\u6743\u9650&#xff1b;<br \/>\n\u65b0\u5efa\u5bf9\u8c61\u6700\u7ec8\u6743\u9650\u7b49\u4e8e\u57fa\u51c6\u6743\u9650\u63a9\u7801\u6e05\u9664 umask \u5bf9\u5e94\u7684\u6743\u9650\u4f4d\u3002<br \/>\numask \u8bbe\u7f6e\u4ec5\u5bf9\u4e4b\u540e\u65b0\u5efa\u6587\u4ef6\u751f\u6548&#xff0c;\u4e0d\u4f1a\u6539\u53d8\u5df2\u6709\u6587\u4ef6\u6743\u9650<\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u56db\u3001file \u6307\u4ee4<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0file \u547d\u4ee4\u4e0d\u662f\u4fee\u6539\u6743\u9650\u547d\u4ee4&#xff0c;\u4f5c\u7528&#xff1a;\u63a2\u6d4b\u6587\u4ef6\u771f\u5b9e\u7c7b\u578b&#xff0c;\u533a\u5206\u6587\u672c\u3001\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u3001\u76ee\u5f55\u3001\u811a\u672c\u3001\u538b\u7f29\u5305\u7b49\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ls \u53ea\u80fd\u770b\u6587\u4ef6\u540d\u540e\u7f00&#xff0c;Linux\u4e0d\u4f9d\u8d56\u540e\u7f00\u8bc6\u522b\u6587\u4ef6\u7c7b\u578b&#xff0c;\u540e\u7f00\u53ea\u662f\u65b9\u4fbf\u4eba\u7c7b\u9605\u8bfb\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">\u57fa\u7840\u7528\u6cd5<\/span><\/h4>\n<p>file test.txt<br \/>\nfile \/bin\/ls<br \/>\nfile test.sh<\/p>\n<p>test.txt: ASCII text<br \/>\n\/bin\/ls: ELF 64-bit LSB shared object, x86-64<br \/>\ntest.sh: Bourne-Again shell script, ASCII text executable<\/p>\n<h4><span style=\"color:#511b78\">\u5e38\u7528\u53c2\u6570<\/span><\/h4>\n<ul>\n<li><span style=\"color:#0d0016\">-b&#xff1a;\u7cbe\u7b80\u8f93\u51fa&#xff0c;\u4e0d\u6253\u5370\u6587\u4ef6\u540d<\/span><\/li>\n<li><span style=\"color:#0d0016\">-i&#xff1a;\u8f93\u51fa MIME \u7c7b\u578b<\/span><\/li>\n<\/ul>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e94\u3001sudo \u57fa\u7840\u6982\u5ff5<\/span><\/h3>\n<h4><span style=\"color:#511b78\">5.1 \u4ec0\u4e48\u662f sudo<\/span><\/h4>\n<p><span style=\"color:#0d0016\">sudo &#061; superuser do <\/span><\/p>\n<\/p>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u666e\u901a\u7528\u6237\u4e34\u65f6\u4ee5\u5176\u4ed6\u7528\u6237\u8eab\u4efd&#xff08;\u9ed8\u8ba4 root&#xff09;\u6267\u884c\u547d\u4ee4\u3002<\/span><\/p>\n<\/p>\n<p><span style=\"color:#0d0016\">\u6838\u5fc3\u4f18\u52bf&#xff1a;<\/span><\/p>\n<li><span style=\"color:#0d0016\">\u4e0d\u7528\u5171\u4eab root \u5bc6\u7801&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u53ef\u4ee5\u7cbe\u51c6\u63a7\u5236&#xff1a;\u5141\u8bb8\u54ea\u4e9b\u7528\u6237\u3001\u6267\u884c\u54ea\u4e9b\u547d\u4ee4&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6240\u6709 sudo \u64cd\u4f5c\u4f1a\u8bb0\u5f55\u65e5\u5fd7&#xff08;\/var\/log\/secure \u6216 \/var\/log\/auth.log&#xff09;&#xff0c;\u53ef\u5ba1\u8ba1&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6709\u5bc6\u7801\u8d85\u65f6\u673a\u5236&#xff0c;\u77ed\u65f6\u95f4\u5185\u91cd\u590d sudo \u65e0\u9700\u91cd\u590d\u8f93\u5bc6\u7801\u3002<\/span><\/li>\n<h4><span style=\"color:#511b78\">5.2 \u533a\u5206 su \u548c sudo<\/span><\/h4>\n<table>\n<tr><span style=\"color:#0d0016\">\u547d\u4ee4<\/span><span style=\"color:#0d0016\">\u7279\u70b9<\/span><span style=\"color:#0d0016\">\u98ce\u9669<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">su &#8211; root<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5207\u6362\u5b8c\u6574 root \u73af\u5883&#xff0c;\u9700\u8981 root \u5bc6\u7801&#xff0c;\u62ff\u5230\u5b8c\u6574 root \u6743\u9650<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6781\u9ad8&#xff0c;\u62ff\u5230\u5bc6\u7801\u5c31\u80fd\u64cd\u4f5c\u6240\u6709\u5185\u5bb9<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">sudo command<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4e34\u65f6\u63d0\u6743&#xff0c;\u4f7f\u7528\u81ea\u5df1\u7528\u6237\u7684\u5bc6\u7801&#xff0c;\u6743\u9650\u53d7\u914d\u7f6e\u6587\u4ef6\u9650\u5236<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u53ef\u63a7&#xff0c;\u53ef\u4ee5\u53ea\u5f00<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u516d\u3001\u76ee\u5f55\u7684\u6743\u9650\u3010\u91cd\u96be\u70b9\u3011<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u2757 \u5343\u4e07\u4e0d\u8981\u628a\u6587\u4ef6\u6743\u9650\u89c4\u5219\u5957\u7528\u5230\u76ee\u5f55&#xff01;rwx \u542b\u4e49\u5b8c\u5168\u4e0d\u4e00\u6837<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5047\u8bbe\u76ee\u5f55\u540d\u4e3a mydir<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u6743\u9650<\/span><span style=\"color:#0d0016\">\u5bf9\u76ee\u5f55\u7684\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">r&#xff08;\u8bfb&#xff09;<\/span><\/td>\n<td>\n<p><span style=\"color:#0d0016\">\u53ef\u4ee5\u4f7f\u7528ls mydir\u5217\u51fa\u76ee\u5f55\u5185\u6587\u4ef6\u540d&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u4f46\u662f\u65e0\u6cd5\u8fdb\u5165\u76ee\u5f55\u3001\u65e0\u6cd5\u67e5\u770b\u6587\u4ef6\u5c5e\u6027&#xff08;\u7f3a\u5c11 x \u6743\u9650&#xff09;<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">w&#xff08;\u5199&#xff09;<\/span><\/td>\n<td>\n<p><span style=\"color:#0d0016\">\u53ef\u4ee5\u5728\u76ee\u5f55\u5185&#xff1a;\u65b0\u5efa\u6587\u4ef6\u3001\u5220\u9664\u6587\u4ef6\u3001\u91cd\u547d\u540d\u6587\u4ef6\u3001\u79fb\u52a8\u6587\u4ef6<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u26a0\ufe0f\u5173\u952e\u70b9&#xff1a;\u80fd\u5426\u5220\u9664\u6587\u4ef6&#xff0c;\u4e0d\u7531\u6587\u4ef6\u81ea\u8eab\u6743\u9650\u51b3\u5b9a&#xff0c;\u7531\u3010\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u3011\u7684 w \u6743\u9650\u63a7\u5236&#xff01;<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">x&#xff08;\u6267\u884c \/ \u8fdb\u5165&#xff09;<\/span><\/td>\n<td>\n<p><span style=\"color:#0d0016\">\u5141\u8bb8cd mydir\u5207\u6362\u8fdb\u5165\u76ee\u5f55&#xff1b;\u5141\u8bb8\u8bbf\u95ee\u76ee\u5f55\u5185\u90e8\u6587\u4ef6\u7684 inode \u5143\u6570\u636e&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u76ee\u5f55\u60f3\u8981\u6b63\u5e38\u4f7f\u7528&#xff0c;\u51e0\u4e4e\u5fc5\u987b\u5177\u5907 x \u6743\u9650<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span style=\"color:#511b78\">\u7ecf\u5178\u8e29\u5751\u6848\u4f8b<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u573a\u666f&#xff1a;\u4e00\u4e2a\u6587\u4ef6\u6743\u9650 444&#xff08;\u6240\u6709\u4eba\u53ea\u8bfb&#xff09;&#xff0c;\u4f46\u662f\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u6743\u9650 777 <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7ed3\u8bba&#xff1a;\u4efb\u4f55\u7528\u6237\u4f9d\u7136\u53ef\u4ee5\u5220\u9664\u8fd9\u4e2a\u53ea\u8bfb\u6587\u4ef6\u3002 <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u539f\u56e0&#xff1a;\u5220\u9664\u64cd\u4f5c\u4fee\u6539\u7684\u662f\u76ee\u5f55\u6761\u76ee&#xff0c;\u53d7\u76ee\u5f55 w \u6743\u9650\u63a7\u5236&#xff0c;\u548c\u6587\u4ef6\u672c\u8eab\u8bfb\u5199\u6743\u9650\u65e0\u5173\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">\u76ee\u5f55\u6743\u9650\u642d\u914d\u7ecf\u9a8c<\/span><\/h4>\n<li><span style=\"color:#0d0016\">\u53ea\u6709 r\u3001\u6ca1\u6709 x&#xff1a;\u80fd\u770b\u5230\u6587\u4ef6\u540d&#xff0c;\u4e0d\u80fd cd \u8fdb\u53bb&#xff0c;\u4e0d\u80fd\u8bbf\u95ee\u6587\u4ef6&#xff1b;\u57fa\u672c\u65e0\u5b9e\u7528\u4ef7\u503c<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u53ea\u6709 x\u3001\u6ca1\u6709 r&#xff1a;\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u5df2\u77e5\u5b8c\u6574\u8def\u5f84\u7684\u6587\u4ef6&#xff0c;\u4f46\u662f\u4e0d\u80fd ls \u5217\u51fa\u76ee\u5f55\u5185\u5bb9<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6b63\u5e38\u5bf9\u5916\u5f00\u653e\u76ee\u5f55&#xff1a;755(rwxr-xr-x)<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u79c1\u4eba\u76ee\u5f55&#xff1a;700<\/span><\/li>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e03\u3001\u5173\u4e8e\u6743\u9650\u7684\u6574\u4f53\u603b\u7ed3<\/span><\/h3>\n<h4><span style=\"color:#511b78\">\u6838\u5fc3\u539f\u5219\u6c47\u603b<\/span><\/h4>\n<li><span style=\"color:#0d0016\">Linux \u57fa\u7840\u6743\u9650\u6a21\u578b UGO&#xff1a;\u4e09\u7c7b\u8eab\u4efd u g o&#xff0c;\u57fa\u7840\u6743\u9650 r w x&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">rwx \u8bed\u4e49\u533a\u5206\u6587\u4ef6\u548c\u76ee\u5f55&#xff0c;\u76ee\u5f55 x \u6743\u9650\u662f\u8fdb\u5165\u76ee\u5f55\u7684\u524d\u63d0&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6587\u4ef6\u80fd\u5426\u5220\u9664 \u2192 \u770b\u7236\u76ee\u5f55 w \u6743\u9650&#xff0c;\u4e0d\u662f\u6587\u4ef6\u81ea\u8eab\u6743\u9650&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">chmod\u6539\u6743\u9650&#xff0c;chown\u6539\u5f52\u5c5e&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6570\u5b57\u6743\u9650\u662f\u516b\u8fdb\u5236\u63a9\u7801&#xff0c;r&#061;4 w&#061;2 x&#061;1&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u9075\u5faa\u6700\u5c0f\u6743\u9650\u539f\u5219&#xff1a;\u4e0d\u7ed9\u591a\u4f59\u6743\u9650&#xff0c;\u907f\u514d 777\u3002<\/span><\/li>\n<h4><span style=\"color:#511b78\">\u5bb9\u6613\u6df7\u6dc6\u547d\u4ee4\u533a\u5206<\/span><\/h4>\n<ul>\n<li><span style=\"color:#0d0016\">ls -l&#xff1a;\u67e5\u770b\u6743\u9650\u3001\u5c5e\u4e3b\u3001\u5c5e\u7ec4<\/span><\/li>\n<li><span style=\"color:#0d0016\">chmod&#xff1a;\u4fee\u6539 rwx \u6743\u9650<\/span><\/li>\n<li><span style=\"color:#0d0016\">chown&#xff1a;\u4fee\u6539\u6587\u4ef6\u6240\u6709\u8005\u3001\u7528\u6237\u7ec4<\/span><\/li>\n<li><span style=\"color:#0d0016\">file&#xff1a;\u8bc6\u522b\u6587\u4ef6\u771f\u5b9e\u7c7b\u578b<\/span><\/li>\n<\/ul>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u516b\u3001\u7c98\u6ede\u4f4d Sticky Bit<\/span><\/h3>\n<p><span style=\"color:#0d0016\">Linux \u9664\u57fa\u7840 rwx \u6743\u9650\u5916&#xff0c;\u8fd8\u6709 3 \u4e2a\u9ad8\u7ea7\u7279\u6b8a\u6743\u9650&#xff1a;SUID\u3001SGID\u3001Sticky \u7c98\u6ede\u4f4d&#xff0c;\u7c98\u6ede\u4f4d\u662f\u9762\u8bd5\u9ad8\u9891\u8003\u70b9\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">8.1 \u7c98\u6ede\u4f4d\u4f5c\u7528<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u7c98\u6ede\u4f4d\u53ea\u5bf9\u3010\u76ee\u5f55\u3011\u751f\u6548&#xff0c;\u5bf9\u6587\u4ef6\u65e0\u6548&#xff01; <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5f53\u76ee\u5f55\u8bbe\u7f6e\u7c98\u6ede\u4f4d\u4e4b\u540e&#xff1a; \u76ee\u5f55\u5185\u7684\u6587\u4ef6&#xff0c;\u53ea\u6709\u4e24\u4e2a\u89d2\u8272\u53ef\u4ee5\u5220\u9664 \/ \u91cd\u547d\u540d<\/span><\/p>\n<li><span style=\"color:#0d0016\">\u6587\u4ef6\u81ea\u8eab\u7684\u5c5e\u4e3b<\/span><\/li>\n<li><span style=\"color:#0d0016\">root \u8d85\u7ea7\u7528\u6237 \u5373\u4f7f\u5176\u4ed6\u7528\u6237\u62e5\u6709\u8be5\u76ee\u5f55\u7684 w \u6743\u9650&#xff0c;\u4e5f\u4e0d\u80fd\u5220\u9664\u522b\u4eba\u521b\u5efa\u7684\u6587\u4ef6\u3002<\/span><\/li>\n<h4><span style=\"color:#511b78\">8.2 \u5178\u578b\u573a\u666f&#xff1a;\u7cfb\u7edf\u4e34\u65f6\u76ee\u5f55 \/tmp<\/span><\/h4>\n<p>ls -ld \/tmp<br \/>\ndrwxrwxrwt 1 root root &#8230; \/tmp<\/p>\n<p><span style=\"color:#0d0016\">\u672b\u5c3e\u6743\u9650\u662f t&#xff0c;\u4ee3\u8868\u5f00\u542f\u7c98\u6ede\u4f4d\u3002<\/span><span style=\"color:#0d0016\"> \/tmp \u76ee\u5f55\u6743\u9650 777&#xff0c;\u6240\u6709\u4eba\u90fd\u80fd\u521b\u5efa\u4e34\u65f6\u6587\u4ef6&#xff0c;\u4f46\u662f\u6709\u7c98\u6ede\u4f4d\u4fdd\u62a4&#xff1a;\u7528\u6237\u53ea\u80fd\u5220\u9664\u81ea\u5df1\u521b\u5efa\u7684\u4e34\u65f6\u6587\u4ef6&#xff0c;\u4e0d\u80fd\u5220\u522b\u4eba\u7684\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">8.3 \u7c98\u6ede\u4f4d\u8bbe\u7f6e\u4e0e\u53d6\u6d88<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u7c98\u6ede\u4f4d\u516b\u8fdb\u5236\u524d\u7f00&#xff1a;1000<\/span><\/p>\n<p># \u6570\u5b57\u65b9\u5f0f\u6dfb\u52a0\u7c98\u6ede\u4f4d<br \/>\nchmod 1777 share_dir<br \/>\n# \u7b26\u53f7\u65b9\u5f0f\u6dfb\u52a0<br \/>\nchmod o&#043;t share_dir<br \/>\n# \u79fb\u9664\u7c98\u6ede\u4f4d<br \/>\nchmod o-t share_dir<\/p>\n<h4><span style=\"color:#511b78\">8.4 \u6743\u9650\u6807\u8bc6\u8bf4\u660e<\/span><\/h4>\n<ul>\n<li><span style=\"color:#0d0016\">\u76ee\u5f55\u5176\u4ed6\u4f4d\u539f\u672c\u6709 x \u6743\u9650&#xff1a;\u663e\u793a\u5c0f\u5199 t<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u76ee\u5f55\u5176\u4ed6\u4f4d\u6ca1\u6709 x \u6743\u9650&#xff1a;\u663e\u793a\u5927\u5199 T&#xff08;\u7c98\u6ede\u4f4d\u8bbe\u7f6e\u5931\u6548&#xff0c;\u65e0\u5b9e\u9645\u4f5c\u7528&#xff09;<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">\u62d3\u5c55\u8865\u5145&#xff08;\u62d3\u5c55\u9605\u8bfb&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u53e6\u5916\u4e24\u4e2a\u7279\u6b8a\u6743\u9650\u7b80\u5355\u4e86\u89e3&#xff1a;<\/span><\/p>\n<li><span style=\"color:#0d0016\">SUID (4000)&#xff1a;\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u8fd0\u884c\u65f6&#xff0c;\u4e34\u65f6\u62e5\u6709\u7a0b\u5e8f\u5c5e\u4e3b\u6743\u9650&#xff08;\u5982 passwd \u547d\u4ee4&#xff09;<\/span><\/li>\n<li><span style=\"color:#0d0016\">SGID (2000)&#xff1a;\u76ee\u5f55\u4e0b\u65b0\u5efa\u6587\u4ef6\u81ea\u52a8\u7ee7\u627f\u76ee\u5f55\u7684\u5c5e\u7ec4&#xff1b;\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u8fd0\u884c\u7ee7\u627f\u5c5e\u7ec4<\/span><\/li>\n<hr \/>\n<h2><span style=\"color:#a2e043\"><span style=\"background-color:#7b7f82\">\u00a0Linux \u6743\u9650\u4e13\u9898\u3010\u9ad8\u9891\u5e38\u89c1\u9762\u8bd5\u9898\u3011<\/span><\/span><\/h2>\n<h3><span style=\"color:#1a439c\">\u4e00\u3001\u7b80\u7b54\u57fa\u7840\u9898&#xff08;\u6700\u5e38\u95ee&#xff09;<\/span><\/h3>\n<p><span style=\"color:#511b78\">1. Linux \u4e2d UGO \u5206\u522b\u4ee3\u8868\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a; <\/span><\/p>\n<p><span style=\"color:#0d0016\">u (user) \u6587\u4ef6\u5c5e\u4e3b&#xff08;\u6240\u6709\u8005&#xff09;<\/span><\/p>\n<p><span style=\"color:#0d0016\">g<\/span><span style=\"color:#0d0016\"> (group) \u6587\u4ef6\u6240\u5c5e\u7528\u6237\u7ec4&#xff08;\u5c5e\u7ec4&#xff09;<\/span><\/p>\n<p><span style=\"color:#0d0016\">o (other) \u5176\u4ed6\u7528\u6237 <\/span><\/p>\n<p><span style=\"color:#0d0016\">a (all) \u5168\u90e8\u4e09\u7c7b\u7528\u6237<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#0d0016\">2.r\u3001w\u3001x \u6743\u9650&#xff0c;\u5bf9\u6587\u4ef6\u548c\u76ee\u5f55\u4f5c\u7528\u5206\u522b\u662f\u4ec0\u4e48&#xff1f; <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a; <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u2705 \u6587\u4ef6 r&#xff1a;\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9 w&#xff1a;\u4fee\u6539\u3001\u8986\u76d6\u6587\u4ef6\u5185\u5bb9 x&#xff1a;\u6267\u884c\u811a\u672c \/ \u4e8c\u8fdb\u5236\u7a0b\u5e8f<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u2705 \u76ee\u5f55 r&#xff1a;ls \u5217\u51fa\u76ee\u5f55\u5185\u6587\u4ef6\u540d w&#xff1a;\u5728\u76ee\u5f55\u5185\u65b0\u5efa\u3001\u5220\u9664\u3001\u91cd\u547d\u540d\u3001\u79fb\u52a8\u6587\u4ef6 x&#xff1a;\u5141\u8bb8 cd \u8fdb\u5165\u76ee\u5f55\u3001\u8bbf\u95ee\u76ee\u5f55\u5185\u6587\u4ef6&#xff1b;\u76ee\u5f55\u6b63\u5e38\u4f7f\u7528\u5fc5\u987b\u5177\u5907 x \u6743\u9650<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#0d0016\">3.chmod\u3001chown\u3001chgrp\u4e09\u8005\u533a\u522b&#xff1f; <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a; <\/span><\/p>\n<p><span style=\"color:#0d0016\">chmod&#xff1a;\u4fee\u6539\u6587\u4ef6 r\/w\/x \u8bbf\u95ee\u6743\u9650 <\/span><\/p>\n<p><span style=\"color:#0d0016\">chown&#xff1a;\u4fee\u6539\u6587\u4ef6\u5c5e\u4e3b&#xff0c;\u4e5f\u53ef\u4ee5\u540c\u65f6\u4fee\u6539\u5c5e\u7ec4 chown user:group file <\/span><\/p>\n<p><span style=\"color:#0d0016\">chgrp&#xff1a;\u53ea\u4fee\u6539\u6587\u4ef6\u7684\u5c5e\u7ec4&#xff0c;\u7b49\u4ef7 chown :group file<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">4.umask \u7684\u4f5c\u7528\u662f\u4ec0\u4e48&#xff1f;\u5df2\u7ecf\u5b58\u5728\u7684\u6587\u4ef6&#xff0c;\u4fee\u6539 umask \u4f1a\u6539\u53d8\u6743\u9650\u5417&#xff1f;<\/span><span style=\"color:#0d0016\"> <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">umask \u662f\u6743\u9650\u63a9\u7801&#xff0c;\u7528\u6765\u63a7\u5236\u65b0\u521b\u5efa\u6587\u4ef6\u3001\u76ee\u5f55\u7684\u9ed8\u8ba4\u6743\u9650&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">umask \u53ea\u4f1a\u5f71\u54cd\u540e\u7eed\u65b0\u5efa\u7684\u8d44\u6e90&#xff0c;\u4e0d\u4f1a\u6539\u53d8\u5df2\u7ecf\u5b58\u5728\u7684\u6587\u4ef6\u6743\u9650\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">5.\u65b0\u5efa\u6587\u4ef6\u3001\u65b0\u5efa\u76ee\u5f55\u7684\u6743\u9650\u8ba1\u7b97\u57fa\u51c6\u503c\u662f\u591a\u5c11&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u76ee\u5f55\u57fa\u51c6\u6743\u9650&#xff1a;777<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u666e\u901a\u6587\u4ef6\u57fa\u51c6\u6743\u9650&#xff1a;666 <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u539f\u56e0&#xff1a;\u7cfb\u7edf\u4e0d\u4f1a\u81ea\u52a8\u7ed9\u666e\u901a\u6587\u4ef6\u8d4b\u4e88\u6267\u884c\u6743\u9650&#xff0c;\u51fa\u4e8e\u5b89\u5168\u8003\u8651\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">6.\u4ec0\u4e48\u662f\u7c98\u6ede\u4f4d&#xff1f;\u4f5c\u7528\u662f\u4ec0\u4e48&#xff0c;\u5178\u578b\u5e94\u7528\u76ee\u5f55&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a; <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7c98\u6ede\u4f4d\u4ec5\u5bf9\u76ee\u5f55\u751f\u6548&#xff1b; \u76ee\u5f55\u5f00\u542f\u7c98\u6ede\u4f4d\u540e&#xff0c;\u5c31\u7b97\u76ee\u5f55\u62e5\u6709 w \u6743\u9650&#xff0c;\u7528\u6237\u53ea\u80fd\u5220\u9664\u81ea\u5df1\u521b\u5efa\u7684\u6587\u4ef6&#xff0c;\u4e0d\u80fd\u5220\u9664\u522b\u4eba\u7684\u6587\u4ef6\u3002 \u5178\u578b\u76ee\u5f55&#xff1a;\/tmp \u8bbe\u7f6e&#xff1a;chmod 1777 dir \u6216 chmod o&#043;t dir<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">7.su \u548c sudo \u7684\u533a\u522b&#xff1f;<\/span><span style=\"color:#0d0016\"> <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">su&#xff1a;\u9700\u8981 root \u5bc6\u7801&#xff0c;\u5b8c\u6574\u5207\u6362 root \u8eab\u4efd&#xff0c;\u6743\u9650\u65e0\u9650\u5236&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">sudo&#xff1a;\u4f7f\u7528\u81ea\u5df1\u8d26\u53f7\u5bc6\u7801&#xff0c;\u7ba1\u7406\u5458\u53ef\u4ee5\u9650\u5236\u80fd\u6267\u884c\u54ea\u4e9b root \u547d\u4ee4&#xff0c;\u65e0\u9700\u6cc4\u9732 root \u5bc6\u7801&#xff0c;\u5e76\u4e14\u64cd\u4f5c\u4f1a\u8bb0\u5f55\u65e5\u5fd7\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">8.\u4fee\u6539 \/etc\/sudoers \u4e3a\u4ec0\u4e48\u63a8\u8350\u4f7f\u7528 visudo&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">visudo \u4f1a\u81ea\u52a8\u68c0\u67e5\u914d\u7f6e\u8bed\u6cd5&#xff1b;\u5982\u679c\u914d\u7f6e\u5199\u9519&#xff0c;\u963b\u6b62\u4fdd\u5b58&#xff0c;\u9632\u6b62 sudo \u6574\u4f53\u5931\u6548&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u76f4\u63a5 vim \u7f16\u8f91\u51fa\u9519\u4f1a\u5bfc\u81f4 sudo \u762b\u75ea\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">9.file \u547d\u4ee4\u7684\u529f\u80fd&#xff1f;Linux \u6587\u4ef6\u540e\u7f00\u540d\u662f\u5426\u51b3\u5b9a\u6587\u4ef6\u7c7b\u578b&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">file \u547d\u4ee4&#xff1a;\u8bc6\u522b\u6587\u4ef6\u771f\u5b9e\u7c7b\u578b&#xff08;\u6587\u672c\u3001\u53ef\u6267\u884c\u7a0b\u5e8f\u3001\u811a\u672c\u7b49&#xff09;&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">Linux\u4e0d\u9760\u540e\u7f00\u8bc6\u522b\u6587\u4ef6\u7c7b\u578b&#xff0c;\u540e\u7f00\u53ea\u662f\u65b9\u4fbf\u4eba\u9605\u8bfb\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e8c\u3001\u8ba1\u7b97\u9898&#xff08;\u7b14\u8bd5\u5fc5\u8003&#xff09;<\/span><\/h3>\n<li>\n<p><span style=\"color:#0d0016\">\u6743\u9650\u5b57\u7b26\u4e32 rw-r&#8211;r&#8211; \u8f6c\u6362\u6210\u516b\u8fdb\u5236\u6743\u9650&#xff1f; \u7b54&#xff1a;644<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color:#0d0016\">umask&#061;022&#xff0c;\u65b0\u5efa\u76ee\u5f55\u548c\u65b0\u5efa\u6587\u4ef6\u9ed8\u8ba4\u6743\u9650&#xff1f; \u7b54&#xff1a;\u76ee\u5f55 755&#xff0c;\u6587\u4ef6 644<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color:#0d0016\">\u547d\u4ee4&#xff1a;\u7ed9\u811a\u672c test.sh \u7684\u5c5e\u4e3b\u6dfb\u52a0\u6267\u884c\u6743\u9650&#xff08;\u4e0d\u6539\u52a8\u5176\u4ed6\u6743\u9650&#xff09; \u7b54&#xff1a;chmod u&#043;x test.sh<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color:#0d0016\">\u521b\u5efa\u5171\u4eab\u76ee\u5f55 share&#xff0c;\u6240\u6709\u4eba\u8bfb\u5199&#xff0c;\u4f46\u53ea\u80fd\u5220\u9664\u81ea\u5df1\u7684\u6587\u4ef6&#xff0c;\u5199\u51fa\u547d\u4ee4<\/span><\/p>\n<\/li>\n<p>mkdir share<br \/>\nchmod 1777 share<\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e09\u3001\u7ecf\u5178\u9677\u9631\u9ad8\u9891\u9898&#xff08;\u9762\u8bd5\u6700\u7231\u8ffd\u95ee&#xff09;<\/span><\/h3>\n<p><span style=\"color:#511b78\">1.\u6587\u4ef6 test.txt \u6743\u9650444&#xff08;\u6240\u6709\u4eba\u53ea\u8bfb&#xff09;&#xff0c;\u6240\u5728\u76ee\u5f55\u6743\u9650 777&#xff0c;\u666e\u901a\u7528\u6237\u80fd\u4e0d\u80fd\u5220\u9664\u8be5\u6587\u4ef6&#xff1f;\u4e3a\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u53ef\u4ee5\u5220\u9664\u3002 \u80fd\u5426\u5220\u9664\u6587\u4ef6&#xff0c;\u7531\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u7684 w \u6743\u9650\u63a7\u5236&#xff0c;\u548c\u6587\u4ef6\u81ea\u8eab\u8bfb\u5199\u6743\u9650\u65e0\u5173\u3002 \u76ee\u5f55\u5f00\u542f\u7c98\u6ede\u4f4d\u4e4b\u540e&#xff0c;\u5219\u65e0\u6cd5\u5220\u9664\u522b\u4eba\u521b\u5efa\u7684\u8fd9\u4e2a\u6587\u4ef6\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">2.\u4e00\u4e2a\u76ee\u5f55\u53ea\u6709 r \u6743\u9650\u3001\u6ca1\u6709 x \u6743\u9650&#xff0c;\u4f1a\u53d1\u751f\u4ec0\u4e48&#xff1f;<\/span><span style=\"color:#0d0016\"> <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u53ef\u4ee5 ls \u770b\u5230\u76ee\u5f55\u5185\u6587\u4ef6\u540d&#xff0c;\u4f46\u662f\u65e0\u6cd5 cd \u8fdb\u5165\u76ee\u5f55&#xff0c;\u4e0d\u80fd\u8bfb\u53d6\u5185\u90e8\u6587\u4ef6\u5185\u5bb9\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">3.sudo -i \u548c sudo -s \u7b80\u5355\u533a\u522b&#xff1f;<\/span><span style=\"color:#0d0016\"> <\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">sudo -i&#xff1a;\u6a21\u62df\u767b\u5f55 root&#xff0c;\u5b8c\u6574\u52a0\u8f7d root \u73af\u5883\u53d8\u91cf&#xff0c;\u5207\u6362\u5230 root \u5bb6\u76ee\u5f55&#xff1b; sudo -s&#xff1a;\u6253\u5f00 root shell&#xff0c;\u6cbf\u7528\u5f53\u524d\u7528\u6237\u73af\u5883\u53d8\u91cf&#xff0c;\u4e0d\u5207\u6362\u5de5\u4f5c\u76ee\u5f55\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#511b78\">4.\u5982\u4f55\u67e5\u770b\u5f53\u524d\u8d26\u53f7\u62e5\u6709\u54ea\u4e9b sudo \u6743\u9650&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7b54&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">sudo -l<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u56db\u3001\u547d\u4ee4\u5b9e\u64cd\u95ee\u7b54\u9898&#xff08;\u53e3\u5934\u63d0\u95ee&#xff09;<\/span><\/h3>\n<li>\n<p><span style=\"color:#0d0016\">\u9012\u5f52\u4fee\u6539 \/www \u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u5c5e\u7ec4\u4e3a www \u7b54&#xff1a;chgrp -R www \/www<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color:#0d0016\">\u6388\u6743\u7528\u6237 lisi \u514d\u5bc6\u6267\u884c systemctl restart nginx&#xff0c;\u5199\u51fa sudoers \u4e00\u884c\u914d\u7f6e \u7b54&#xff1a; lisi ALL&#061;(ALL) NOPASSWD: \/usr\/bin\/systemctl restart nginx<\/span><\/p>\n<\/li>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e94\u3001\u5224\u65ad\u9898&#xff08;\u5e38\u89c1\u9009\u62e9\u9898\u8003\u70b9&#xff09;<\/span><\/h3>\n<li><span style=\"color:#0d0016\">chgrp \u53ef\u4ee5\u4fee\u6539\u6587\u4ef6\u5c5e\u4e3b\u3002&#xff08;\u00d7&#xff09;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u76ee\u5f55\u6743\u9650 777&#xff0c;\u4ee3\u8868\u76ee\u5f55\u91cc\u9762\u6240\u6709\u6587\u4ef6\u81ea\u52a8\u62e5\u6709 777 \u6743\u9650\u3002&#xff08;\u00d7&#xff09;<\/span><\/li>\n<li><span style=\"color:#0d0016\">umask \u4fee\u6539\u540e&#xff0c;\u65e7\u6587\u4ef6\u6743\u9650\u4f1a\u540c\u6b65\u53d8\u5316\u3002&#xff08;\u00d7&#xff09;<\/span><\/li>\n<li><span style=\"color:#0d0016\">sudo \u914d\u7f6e\u4e2d&#xff0c;\u547d\u4ee4\u5c3d\u91cf\u5199\u7edd\u5bf9\u8def\u5f84&#xff0c;\u9632\u6b62\u5b89\u5168\u98ce\u9669\u3002&#xff08;\u221a&#xff09;<\/span><\/li>\n<hr \/>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1292\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725163326-6a64e55676f5d.png\" width=\"2558\" \/><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u6743\u9650\u7ba1\u7406\u5b8c\u6574\u8be6\u89e3\u00a0\u00a0\u4e00\u3001Linux \u6743\u9650\u7684\u6982\u5ff51.1 \u6743\u9650\u8bde\u751f\u80cc\u666fLinux \u662f\u591a\u7528\u6237\u5206\u65f6\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u5141\u8bb8\u591a\u4e2a\u7528\u6237\u540c\u65f6\u767b\u5f55\u3001\u64cd\u4f5c\u7cfb\u7edf\u8d44\u6e90\u3002\u4e3a\u4e86\u9632\u6b62\u7528\u6237\u968f\u610f\u4fee\u6539\u3001\u5220\u9664\u4ed6\u4eba\u6587\u4ef6&#xff0c;\u9694\u79bb\u8d44\u6e90\u3001\u4fdd\u969c\u7cfb\u7edf\u5b89\u5168&#xff0c;\u5185\u6838\u5f15\u5165\u6743\u9650\u8bbf\u95ee\u63a7\u5236\u673a\u5236\u3002Windows \u91c7\u7528 ACL \u8bbf\u95ee\u63a7\u5236\u5217\u8868&#xff1b;Linux \u57fa\u7840\u6a21\u578b\u91c7\u7528\u7ecf\u5178UGO&#xff08;User\/Group\/Other&#xff09;\u6743\u9650\u6a21\u578b\u30021.2 UGO \u4e09\u7c7b\u8eab\u4efd\u4f7f\u7528 ls &#8211;<\/p>\n","protected":false},"author":2,"featured_media":83507,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9099,58,43,44],"topic":[],"class_list":["post-83509","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-9099","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/83509.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Linux \u6743\u9650\u7ba1\u7406\u5b8c\u6574\u8be6\u89e3\u00a0\u00a0\u4e00\u3001Linux \u6743\u9650\u7684\u6982\u5ff51.1 \u6743\u9650\u8bde\u751f\u80cc\u666fLinux \u662f\u591a\u7528\u6237\u5206\u65f6\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u5141\u8bb8\u591a\u4e2a\u7528\u6237\u540c\u65f6\u767b\u5f55\u3001\u64cd\u4f5c\u7cfb\u7edf\u8d44\u6e90\u3002\u4e3a\u4e86\u9632\u6b62\u7528\u6237\u968f\u610f\u4fee\u6539\u3001\u5220\u9664\u4ed6\u4eba\u6587\u4ef6&#xff0c;\u9694\u79bb\u8d44\u6e90\u3001\u4fdd\u969c\u7cfb\u7edf\u5b89\u5168&#xff0c;\u5185\u6838\u5f15\u5165\u6743\u9650\u8bbf\u95ee\u63a7\u5236\u673a\u5236\u3002Windows \u91c7\u7528 ACL \u8bbf\u95ee\u63a7\u5236\u5217\u8868&#xff1b;Linux \u57fa\u7840\u6a21\u578b\u91c7\u7528\u7ecf\u5178UGO&#xff08;User\/Group\/Other&#xff09;\u6743\u9650\u6a21\u578b\u30021.2 UGO \u4e09\u7c7b\u8eab\u4efd\u4f7f\u7528 ls -\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/83509.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-25T16:33:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725163324-6a64e554e3a7b.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/83509.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/83509.html\",\"name\":\"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-25T16:33:29+00:00\",\"dateModified\":\"2026-07-25T16:33:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/83509.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/83509.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/83509.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/83509.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Linux \u6743\u9650\u7ba1\u7406\u5b8c\u6574\u8be6\u89e3\u00a0\u00a0\u4e00\u3001Linux \u6743\u9650\u7684\u6982\u5ff51.1 \u6743\u9650\u8bde\u751f\u80cc\u666fLinux \u662f\u591a\u7528\u6237\u5206\u65f6\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u5141\u8bb8\u591a\u4e2a\u7528\u6237\u540c\u65f6\u767b\u5f55\u3001\u64cd\u4f5c\u7cfb\u7edf\u8d44\u6e90\u3002\u4e3a\u4e86\u9632\u6b62\u7528\u6237\u968f\u610f\u4fee\u6539\u3001\u5220\u9664\u4ed6\u4eba\u6587\u4ef6&#xff0c;\u9694\u79bb\u8d44\u6e90\u3001\u4fdd\u969c\u7cfb\u7edf\u5b89\u5168&#xff0c;\u5185\u6838\u5f15\u5165\u6743\u9650\u8bbf\u95ee\u63a7\u5236\u673a\u5236\u3002Windows \u91c7\u7528 ACL \u8bbf\u95ee\u63a7\u5236\u5217\u8868&#xff1b;Linux \u57fa\u7840\u6a21\u578b\u91c7\u7528\u7ecf\u5178UGO&#xff08;User\/Group\/Other&#xff09;\u6743\u9650\u6a21\u578b\u30021.2 UGO \u4e09\u7c7b\u8eab\u4efd\u4f7f\u7528 ls -","og_url":"https:\/\/www.wsisp.com\/helps\/83509.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-25T16:33:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725163324-6a64e554e3a7b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/83509.html","url":"https:\/\/www.wsisp.com\/helps\/83509.html","name":"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-25T16:33:29+00:00","dateModified":"2026-07-25T16:33:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/83509.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/83509.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/83509.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u3011 \u6743\u9650\u7ba1\u7406\uff08\u77e5\u8bc6\u68b3\u7406 + \u9762\u8bd5\u9898\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/83509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=83509"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/83509\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/83507"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=83509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=83509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=83509"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=83509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}