{"id":117383,"date":"2026-10-24T18:40:24","date_gmt":"2026-10-24T10:40:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117383.html"},"modified":"2026-10-24T18:40:24","modified_gmt":"2026-10-24T10:40:24","slug":"%e4%bb%80%e4%b9%88%e6%98%af%e6%96%87%e4%bb%b6%e6%9d%83%e9%99%90%ef%bc%9flinux-%e4%b8%ad-rwx-%e4%b8%8e%e6%95%b0%e5%ad%97%e6%9d%83%e9%99%90%e7%9a%84%e5%af%b9%e5%ba%94%e5%85%b3%e7%b3%bb","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117383.html","title":{"rendered":"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb"},"content":{"rendered":"<p>\u8fd9\u662f\u201c\u64cd\u4f5c\u7cfb\u7edf\u7cfb\u5217\u6559\u7a0b\u201d\u7684\u7b2c\u56db\u5341\u516b\u7bc7\u3002\u4e0a\u4e00\u7bc7\u6211\u4eec\u8bb2\u4e86 RAID&#xff0c;\u77e5\u9053\u4e86\u5982\u4f55\u901a\u8fc7\u786c\u4ef6\u7ea7\u522b\u7684\u9635\u5217\u4fdd\u62a4\u6570\u636e\u4e0d\u4e22\u5931\u3002\u4f46\u8fd9\u8fd8\u4e0d\u591f&#xff0c;\u56e0\u4e3a\u6700\u575a\u56fa\u7684\u5821\u5792\u5f80\u5f80\u662f\u4ece\u5185\u90e8\u88ab\u653b\u7834\u7684\u3002\u5982\u679c\u670d\u52a1\u5668\u4e0a\u7684\u4efb\u4f55\u4e00\u4e2a\u666e\u901a\u7528\u6237\u90fd\u80fd\u968f\u4fbf\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\u3001\u67e5\u770b\u522b\u4eba\u7684\u9690\u79c1\u6587\u4ef6&#xff0c;\u90a3\u7cfb\u7edf\u4f9d\u7136\u6beb\u65e0\u5b89\u5168\u6027\u53ef\u8a00\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u5f15\u5165\u4e86\u6587\u4ef6\u6743\u9650\u673a\u5236\u3002\u5728 Linux \u4e2d&#xff0c;\u4f60\u7ecf\u5e38\u770b\u5230 755\u3001644 \u8fd9\u6837\u7684\u6570\u5b57&#xff0c;\u5b83\u4eec\u5230\u5e95\u662f\u4ec0\u4e48\u610f\u601d&#xff1f;rwx \u7a76\u7adf\u4ee3\u8868\u4e86\u4ec0\u4e48\u6743\u529b&#xff1f;\u8fd9\u7bc7\u6587\u7ae0&#xff0c;\u6211\u4eec\u5c31\u6765\u628a Linux \u7684\u6743\u9650\u4f53\u7cfb\u5f7b\u5e95\u6252\u5f00\u3002<\/p>\n<h3>\u4e00\u6b21\u8ba9\u4eba\u6293\u72c2\u7684 Permission denied<\/h3>\n<p>\u5148\u6765\u60f3\u8c61\u4e00\u4e2a\u573a\u666f\u3002\u4f60\u521a\u521a\u5165\u804c\u4e00\u5bb6\u4e92\u8054\u7f51\u516c\u53f8&#xff0c;\u62ff\u5230\u4e86\u4e00\u53f0 Linux \u6d4b\u8bd5\u670d\u52a1\u5668\u3002\u4f60\u60f3\u5728 \/etc \u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6&#xff0c;\u719f\u7ec3\u5730\u6572\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>$ <span class=\"token function\">touch<\/span> \/etc\/my_config.conf<br \/>\ntouch: cannot <span class=\"token function\">touch<\/span> <span class=\"token string\">&#039;\/etc\/my_config.conf&#039;<\/span><span class=\"token builtin class-name\">:<\/span> Permission denied<\/p>\n<p>\u7cfb\u7edf\u65e0\u60c5\u5730\u62d2\u7edd\u4e86\u4f60\u3002\u4f60\u4e0d\u670d\u6c14&#xff0c;\u53c8\u60f3\u770b\u770b\u670d\u52a1\u5668\u4e0a\u5176\u4ed6\u540c\u4e8b\u5199\u7684\u4ee3\u7801&#xff0c;\u6572\u4e0b&#xff1a;<\/p>\n<p>$ <span class=\"token builtin class-name\">cd<\/span> \/home\/zhangsan\/project<br \/>\nbash: cd: \/home\/zhangsan\/project: Permission denied<\/p>\n<p>\u53c8\u662f\u62d2\u7edd&#xff01;<\/p>\n<p>\u4f60\u53ef\u80fd\u4f1a\u60f3&#xff1a;\u201c\u6211\u660e\u660e\u6709\u8fd9\u53f0\u670d\u52a1\u5668\u7684\u8d26\u53f7\u5bc6\u7801&#xff0c;\u4e3a\u4ec0\u4e48\u8fd9\u4e5f\u4e0d\u884c&#xff0c;\u90a3\u4e5f\u4e0d\u884c&#xff1f;\u201d<\/p>\n<p>\u8fd9\u5c31\u6d89\u53ca\u5230\u4e86 Linux \u7cfb\u7edf\u8bbe\u8ba1\u7684\u6838\u5fc3\u7406\u5ff5\u4e4b\u4e00&#xff1a;\u591a\u7528\u6237\u9694\u79bb\u4e0e\u6700\u5c0f\u6743\u9650\u539f\u5219\u3002\u5728 Linux \u770b\u6765&#xff0c;\u6ca1\u6709\u7edd\u5bf9\u7684\u81ea\u7531\u3002\u6bcf\u4e00\u4e2a\u6587\u4ef6\u3001\u6bcf\u4e00\u4e2a\u76ee\u5f55&#xff0c;\u90fd\u6709\u5176\u4e25\u5bc6\u7684\u201c\u95e8\u7981\u7cfb\u7edf\u201d\u3002\u8c01\u6709\u8d44\u683c\u770b&#xff1f;\u8c01\u6709\u8d44\u683c\u6539&#xff1f;\u8c01\u6709\u8d44\u683c\u6267\u884c&#xff1f;\u4e00\u5207\u90fd\u8981\u51ed\u201c\u6743\u9650\u201d\u8bf4\u8bdd\u3002<\/p>\n<p>\u5f88\u591a\u4eba\u7528\u4e86\u5f88\u591a\u5e74 Linux&#xff0c;\u5bf9\u6743\u9650\u7684\u7406\u89e3\u4f9d\u7136\u505c\u7559\u5728\u201c\u62a5\u9519\u4e86\u5c31 chmod 777\u201d\u7684\u7c97\u66b4\u5c42\u9762\u3002\u8fd9\u4e0d\u4ec5\u6781\u5176\u5371\u9669&#xff0c;\u8fd8\u4f1a\u7ed9\u81ea\u5df1\u57cb\u4e0b\u81f4\u547d\u7684\u5b89\u5168\u9690\u60a3\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0&#xff0c;\u6211\u4eec\u5c31\u6765\u628a\u201c\u6587\u4ef6\u6743\u9650\u201d\u6252\u4e2a\u5e95\u671d\u5929&#xff0c;\u4ece UGO \u6a21\u578b\u8bb2\u8d77&#xff0c;\u6df1\u5ea6\u5256\u6790 rwx \u7684\u5e95\u5c42\u542b\u4e49&#xff0c;\u89e3\u5f00\u6570\u5b57\u6743\u9650\u7684\u4e8c\u8fdb\u5236\u5bc6\u7801&#xff0c;\u5e76\u5e26\u4f60\u9886\u7565\u7279\u6b8a\u6743\u9650&#xff08;SUID\u3001SGID\u3001\u7c98\u6ede\u4f4d&#xff09;\u7684\u5947\u5999\u4e16\u754c\u3002<\/p>\n<p>\u8bf4\u660e&#xff1a;\u672c\u6587\u6d89\u53ca Linux \u6743\u9650\u6a21\u578b\u3001UGO\u3001chmod\u3001umask\u3001ACL \u7b49\u6838\u5fc3\u6982\u5ff5\u3002\u521d\u5b66\u8005\u5982\u679c\u9047\u5230\u6682\u65f6\u770b\u4e0d\u61c2\u7684\u672f\u8bed&#xff0c;\u53ef\u4ee5\u5148\u8df3\u8fc7\u7ec6\u8282&#xff0c;\u91cd\u70b9\u7406\u89e3\u201c\u6743\u9650\u5c31\u662f\u89c4\u5b9a\u8c01\u80fd\u5bf9\u4ec0\u4e48\u6587\u4ef6\u505a\u4ec0\u4e48\u64cd\u4f5c\u201d\u8fd9\u4e00\u6838\u5fc3\u601d\u60f3\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001Linux \u6743\u9650\u4f53\u7cfb\u7684\u57fa\u77f3&#xff1a;UGO \u6a21\u578b<\/h3>\n<p>\u5728 Windows \u7cfb\u7edf\u4e2d&#xff0c;\u6743\u9650\u63a7\u5236\u5f80\u5f80\u975e\u5e38\u590d\u6742&#xff0c;\u751a\u81f3\u4e0e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u7ed1\u5b9a\u3002\u800c Linux \u7684\u6743\u9650\u63a7\u5236\u6781\u5176\u7b80\u6d01\u4e14\u4f18\u96c5&#xff0c;\u5b83\u57fa\u4e8e\u4e00\u4e2a\u88ab\u79f0\u4e3a UGO \u6a21\u578b&#xff08;User, Group, Others&#xff09;\u7684\u8bbe\u8ba1\u3002<\/p>\n<h4>1.1 \u4ec0\u4e48\u662f UGO&#xff1f;<\/h4>\n<p>\u5728 Linux \u4e2d&#xff0c;\u6bcf\u4e00\u4e2a\u6587\u4ef6&#xff08;\u54ea\u6015\u662f\u76ee\u5f55\u3001\u8bbe\u5907\u3001\u7ba1\u9053&#xff09;\u90fd\u6709\u4e09\u4e2a\u201c\u8eab\u4efd\u5f52\u5c5e\u201d&#xff1a;<\/p>\n<li>User&#xff08;\u6240\u6709\u8005 \/ \u5c5e\u4e3b&#xff09;&#xff1a;\u6587\u4ef6\u7684\u521b\u5efa\u8005&#xff0c;\u6216\u8005\u88ab\u6307\u5b9a\u7684\u4eba\u3002\u7b80\u79f0 u\u3002<\/li>\n<li>Group&#xff08;\u6240\u5c5e\u7ec4 \/ \u5c5e\u7ec4&#xff09;&#xff1a;\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e00\u4e2a\u56e2\u961f\u6216\u7528\u6237\u7ec4\u3002\u7b80\u79f0 g\u3002<\/li>\n<li>Others&#xff08;\u5176\u4ed6\u4eba&#xff09;&#xff1a;\u65e2\u4e0d\u662f\u6240\u6709\u8005&#xff0c;\u4e5f\u4e0d\u5728\u6240\u5c5e\u7ec4\u91cc\u7684\u5176\u4ed6\u6240\u6709\u7528\u6237\u3002\u7b80\u79f0 o\u3002<\/li>\n<p>\u5f53\u4f60\u8bd5\u56fe\u8bbf\u95ee\u4e00\u4e2a\u6587\u4ef6\u65f6&#xff0c;Linux \u5185\u6838\u4f1a\u6309\u7167 U -&gt; G -&gt; O \u7684\u987a\u5e8f\u4e3a\u4f60\u201c\u9a8c\u660e\u6b63\u8eab\u201d&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u4f60\u662f\u6587\u4ef6\u7684\u6240\u6709\u8005&#xff0c;\u5c31\u6309 U \u7684\u6743\u9650\u6765\u7ba1\u4f60&#xff1b;<\/li>\n<li>\u5982\u679c\u4f60\u4e0d\u662f\u6240\u6709\u8005&#xff0c;\u4f46\u5728\u6587\u4ef6\u7684\u6240\u5c5e\u7ec4\u91cc&#xff0c;\u5c31\u6309 G \u7684\u6743\u9650\u7ba1\u4f60&#xff1b;<\/li>\n<li>\u5982\u679c\u4f60\u65e2\u4e0d\u662f\u6240\u6709\u8005\u4e5f\u4e0d\u5728\u7ec4\u91cc&#xff0c;\u90a3\u4f60\u5c31\u662f Others&#xff0c;\u6309 O \u7684\u6743\u9650\u7ba1\u4f60\u3002<\/li>\n<\/ul>\n<p>\u6838\u5fc3\u6cd5\u5219&#xff1a;\u5185\u6838\u4e00\u65e6\u5339\u914d\u5230\u4f60\u7684\u8eab\u4efd&#xff0c;\u5c31\u4f1a\u7acb\u523b\u9002\u7528\u8be5\u8eab\u4efd\u7684\u6743\u9650&#xff0c;\u7edd\u4e0d\u4f1a\u5411\u540e\u517c\u5bb9\u3002<br \/>\n\u4e3e\u4e2a\u4f8b\u5b50&#xff1a;\u5982\u679c\u6587\u4ef6\u6240\u6709\u8005\u62e5\u6709\u8bfb\u5199\u6743\u9650&#xff08;rw-&#xff09;&#xff0c;\u800c\u5176\u4ed6\u4eba\u53ea\u6709\u8bfb\u6743\u9650&#xff08;r&#8211;&#xff09;\u3002\u5f53\u4f60\u4f5c\u4e3a\u6240\u6709\u8005\u53bb\u8bfb\u8fd9\u4e2a\u6587\u4ef6\u65f6&#xff0c;\u7cfb\u7edf\u5224\u5b9a\u4f60\u662f U&#xff0c;\u7ed9\u4f60 rw-\u3002\u5c3d\u7ba1 O \u4e5f\u6709 r&#8211;&#xff0c;\u4f46\u7cfb\u7edf\u4e0d\u4f1a\u56e0\u4e3a\u4f60\u540c\u65f6\u4e5f\u662f O&#xff0c;\u5c31\u7ed9\u4f60\u5408\u5e76\u6743\u9650\u3002<\/p>\n<h4>1.2 \u5b9e\u6218&#xff1a;\u5982\u4f55\u67e5\u770b\u6743\u9650&#xff1f;<\/h4>\n<p>\u6211\u4eec\u5728 Linux \u7ec8\u7aef\u4e2d\u8f93\u5165 ls -l&#xff0c;\u4f1a\u770b\u5230\u957f\u957f\u7684\u4e00\u4e32\u5b57\u7b26&#xff1a;<\/p>\n<p>-rwxr-xr&#8211; 1 zhangsan dev_team 1024 Oct 10 10:00 my_script.sh<\/p>\n<p>\u8fd9\u884c\u8f93\u51fa\u5305\u542b\u4e86\u4e30\u5bcc\u7684\u4fe1\u606f&#xff0c;\u6211\u4eec\u628a\u5b83\u62c6\u89e3\u5f00\u6765&#xff1a;<\/p>\n<ul>\n<li>\u7b2c 1 \u4e2a\u5b57\u7b26 -&#xff1a;\u4ee3\u8868\u6587\u4ef6\u7c7b\u578b&#xff08;- \u662f\u666e\u901a\u6587\u4ef6&#xff0c;d \u662f\u76ee\u5f55&#xff0c;l \u662f\u8f6f\u94fe\u63a5&#xff09;\u3002<\/li>\n<li>\u7b2c 2-10 \u4e2a\u5b57\u7b26 rwxr-xr&#8211;&#xff1a;\u8fd9\u5c31\u662f\u6838\u5fc3\u7684\u6743\u9650\u4f4d\u3002<\/li>\n<li>1&#xff1a;\u786c\u94fe\u63a5\u6570\u3002<\/li>\n<li>zhangsan&#xff1a;User&#xff08;\u6240\u6709\u8005&#xff09;\u3002<\/li>\n<li>dev_team&#xff1a;Group&#xff08;\u6240\u5c5e\u7ec4&#xff09;\u3002<\/li>\n<li>1024&#xff1a;\u6587\u4ef6\u5927\u5c0f&#xff08;\u5b57\u8282&#xff09;\u3002<\/li>\n<li>Oct 10 10:00&#xff1a;\u6700\u540e\u4fee\u6539\u65f6\u95f4\u3002<\/li>\n<li>my_script.sh&#xff1a;\u6587\u4ef6\u540d\u3002<\/li>\n<\/ul>\n<h4>1.3 \u6743\u9650\u4f4d\u7684\u4e09\u6bb5\u8bba<\/h4>\n<p>\u90a3 9 \u4e2a\u5b57\u7b26 rwxr-xr&#8211;&#xff0c;\u5176\u5b9e\u662f\u6574\u9f50\u7684\u4e09\u6bb5\u8bba&#xff0c;\u6bcf\u4e09\u4e2a\u5b57\u7b26\u4e3a\u4e00\u7ec4&#xff1a;<\/p>\n<ul>\n<li>rwx&#xff1a;\u6240\u6709\u8005\u7684\u6743\u9650&#xff08;User&#xff09;<\/li>\n<li>r-x&#xff1a;\u6240\u5c5e\u7ec4\u7684\u6743\u9650&#xff08;Group&#xff09;<\/li>\n<li>r&#8211;&#xff1a;\u5176\u4ed6\u4eba\u7684\u6743\u9650&#xff08;Others&#xff09;<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024104022-6adc8b16cb529.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 1&#xff1a;UGO \u6743\u9650\u6a21\u578b\u4e09\u6bb5\u8bba\u3002 9 \u4e2a\u5b57\u7b26\u5b8c\u7f8e\u5bf9\u5e94\u4e86\u4e09\u79cd\u8eab\u4efd\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u7a7f\u900f\u8868\u8c61&#xff1a;rwx \u5230\u5e95\u4ee3\u8868\u4ec0\u4e48&#xff1f;<\/h3>\n<p>\u5f88\u591a\u521d\u5b66\u8005\u4ee5\u4e3a rwx \u5c31\u662f\u201c\u8bfb\u3001\u5199\u3001\u6267\u884c\u201d\u3002\u8fd9\u53e5\u8bdd\u5bf9&#xff0c;\u4f46\u53ea\u5bf9\u4e86\u4e00\u534a\u3002\u5728 Linux \u4e2d&#xff0c;rwx \u4f5c\u7528\u4e8e\u666e\u901a\u6587\u4ef6\u548c\u4f5c\u7528\u4e8e\u76ee\u5f55\u65f6&#xff0c;\u542b\u4e49\u662f\u622a\u7136\u4e0d\u540c\u7684&#xff01; \u8fd9\u662f\u9762\u8bd5\u548c\u5b9e\u9645\u8fd0\u7ef4\u4e2d\u6700\u5bb9\u6613\u8e29\u5751\u7684\u5730\u65b9\u3002<\/p>\n<h4>2.1 \u9488\u5bf9\u201c\u666e\u901a\u6587\u4ef6\u201d\u7684 rwx<\/h4>\n<p>\u5bf9\u4e8e\u6587\u4ef6\u6765\u8bf4&#xff0c;\u6743\u9650\u5c31\u662f\u9650\u5236\u4f60\u5bf9\u6587\u4ef6\u5185\u5bb9\u80fd\u505a\u4ec0\u4e48\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>r (Read&#xff0c;\u8bfb\u6743\u9650)&#xff1a;\u5141\u8bb8\u4f60\u4f7f\u7528 cat\u3001less\u3001tail \u7b49\u547d\u4ee4\u67e5\u770b\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/li>\n<li>w (Write&#xff0c;\u5199\u6743\u9650)&#xff1a;\u5141\u8bb8\u4f60\u4f7f\u7528 echo\u3001vim \u7b49\u547d\u4ee4\u4fee\u6539\u3001\u8ffd\u52a0\u3001\u6e05\u7a7a\u6587\u4ef6\u7684\u5185\u5bb9\u3002\u6ce8\u610f&#xff1a;\u62e5\u6709 w \u6743\u9650\u4e0d\u4ee3\u8868\u4f60\u80fd\u5220\u9664\u8fd9\u4e2a\u6587\u4ef6&#xff01;<\/li>\n<li>x (Execute&#xff0c;\u6267\u884c\u6743\u9650)&#xff1a;\u5141\u8bb8\u4f60\u628a\u8fd9\u4e2a\u6587\u4ef6\u5f53\u505a\u7a0b\u5e8f\u6216\u811a\u672c\u8fd0\u884c&#xff08;\u5982 .\/my_script.sh&#xff09;\u3002\u5982\u679c\u4e00\u4e2a\u811a\u672c\u6587\u4ef6\u62e5\u6709 rw- \u5374\u6ca1\u6709 x&#xff0c;\u4f60\u53ea\u80fd\u7528 bash my_script.sh \u6765\u5f3a\u884c\u89e3\u91ca\u5b83&#xff0c;\u4f46\u65e0\u6cd5\u76f4\u63a5\u7528 .\/ \u8fd0\u884c\u3002<\/li>\n<\/ul>\n<h4>2.2 \u9488\u5bf9\u201c\u76ee\u5f55\u201d\u7684 rwx&#xff08;\u91cd\u707e\u533a&#xff09;<\/h4>\n<p>\u5982\u679c\u4f60\u628a\u4e00\u4e2a\u76ee\u5f55&#xff08;\u6587\u4ef6\u5939&#xff09;\u5f53\u505a\u666e\u901a\u6587\u4ef6\u6765\u7406\u89e3&#xff0c;\u4f60\u5c31\u5f7b\u5e95\u9519\u4e86\u3002\u76ee\u5f55\u7684 rwx \u9650\u5236\u7684\u662f\u4f60\u5bf9\u201c\u76ee\u5f55\u5185\u90e8\u7ed3\u6784\u201d\u7684\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>r (Read&#xff0c;\u8bfb\u6743\u9650)&#xff1a;\u5141\u8bb8\u4f60\u4f7f\u7528 ls \u5217\u51fa\u76ee\u5f55\u5185\u7684\u6587\u4ef6\u540d\u548c\u5b50\u76ee\u5f55\u3002\u5982\u679c\u6ca1\u6709 r \u6743\u9650&#xff0c;\u4f60\u65e0\u6cd5\u67e5\u770b\u8be5\u76ee\u5f55\u4e0b\u6709\u54ea\u4e9b\u6587\u4ef6\u3002<\/li>\n<li>w (Write&#xff0c;\u5199\u6743\u9650)&#xff1a;\u5141\u8bb8\u4f60\u5728\u8be5\u76ee\u5f55\u5185\u65b0\u5efa\u3001\u5220\u9664\u3001\u91cd\u547d\u540d\u6587\u4ef6\u6216\u5b50\u76ee\u5f55\u3002\n<ul>\n<li>\u6781\u5176\u91cd\u8981&#xff1a;\u54ea\u6015\u4e00\u4e2a\u6587\u4ef6\u7684\u6743\u9650\u662f 000&#xff08;\u4efb\u4f55\u4eba\u90fd\u4e0d\u80fd\u52a8\u5b83&#xff09;&#xff0c;\u53ea\u8981\u5b83\u6240\u5728\u7684\u76ee\u5f55\u6709 w \u6743\u9650&#xff0c;\u4f60\u5c31\u80fd\u7528 rm \u628a\u5b83\u5f3a\u5236\u5220\u6389&#xff01;\u56e0\u4e3a\u5220\u9664\u6587\u4ef6\u4fee\u6539\u7684\u662f\u76ee\u5f55\u7684\u6570\u636e\u5757&#xff08;\u76ee\u5f55\u9879&#xff09;&#xff0c;\u800c\u4e0d\u662f\u4fee\u6539\u6587\u4ef6\u672c\u8eab\u3002<\/li>\n<\/ul>\n<\/li>\n<li>x (Execute&#xff0c;\u6267\u884c\/\u8fdb\u5165\u6743\u9650)&#xff1a;\u5141\u8bb8\u4f60\u4f7f\u7528 cd \u547d\u4ee4\u8fdb\u5165\u8be5\u76ee\u5f55&#xff0c;\u4e5f\u5141\u8bb8\u4f60\u8bbf\u95ee\u8be5\u76ee\u5f55\u5185\u6587\u4ef6\u7684 inode&#xff08;\u6bd4\u5982\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9&#xff09;\u3002\u5982\u679c\u6ca1\u6709 x \u6743\u9650&#xff0c;\u54ea\u6015\u4f60\u6709 r \u6743\u9650&#xff0c;\u4f60\u4e5f\u53ea\u80fd\u770b\u5230\u6587\u4ef6\u540d&#xff0c;\u65e0\u6cd5\u67e5\u770b\u6587\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f&#xff08;\u5982\u5927\u5c0f\u3001\u65f6\u95f4&#xff09;&#xff0c;\u4e5f\u65e0\u6cd5\u8fdb\u5165\u8be5\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p>\u4e00\u53e5\u8bdd\u603b\u7ed3\u76ee\u5f55\u6743\u9650&#xff1a;<\/p>\n<ul>\n<li>\u53ea\u6709 r&#xff1a;\u80fd\u770b\u4e0d\u80fd\u8fdb&#xff08;\u50cf\u9694\u7740\u73bb\u7483\u770b\u4ed3\u5e93&#xff09;\u3002<\/li>\n<li>\u53ea\u6709 x&#xff1a;\u80fd\u8fdb\u4e0d\u80fd\u770b&#xff08;\u50cf\u8fdb\u4e86\u4ed3\u5e93\u4f46\u6ca1\u5e26\u624b\u7535\u7b52&#xff0c;\u4ec0\u4e48\u90fd\u770b\u4e0d\u89c1&#xff09;\u3002<\/li>\n<li>rx&#xff1a;\u80fd\u8fdb\u4e5f\u80fd\u770b\u3002<\/li>\n<li>rwx&#xff1a;\u60f3\u5e72\u561b\u5c31\u5e72\u561b\u3002<\/li>\n<\/ul>\n<p>#mermaid-svg-FfCvB6nUbr4aq4tw{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-FfCvB6nUbr4aq4tw .error-icon{fill:#552222;}#mermaid-svg-FfCvB6nUbr4aq4tw .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-FfCvB6nUbr4aq4tw .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-FfCvB6nUbr4aq4tw .marker{fill:#333333;stroke:#333333;}#mermaid-svg-FfCvB6nUbr4aq4tw .marker.cross{stroke:#333333;}#mermaid-svg-FfCvB6nUbr4aq4tw svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-FfCvB6nUbr4aq4tw p{margin:0;}#mermaid-svg-FfCvB6nUbr4aq4tw .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-FfCvB6nUbr4aq4tw .cluster-label text{fill:#333;}#mermaid-svg-FfCvB6nUbr4aq4tw .cluster-label span{color:#333;}#mermaid-svg-FfCvB6nUbr4aq4tw .cluster-label span p{background-color:transparent;}#mermaid-svg-FfCvB6nUbr4aq4tw .label text,#mermaid-svg-FfCvB6nUbr4aq4tw span{fill:#333;color:#333;}#mermaid-svg-FfCvB6nUbr4aq4tw .node rect,#mermaid-svg-FfCvB6nUbr4aq4tw .node circle,#mermaid-svg-FfCvB6nUbr4aq4tw .node ellipse,#mermaid-svg-FfCvB6nUbr4aq4tw .node polygon,#mermaid-svg-FfCvB6nUbr4aq4tw .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-FfCvB6nUbr4aq4tw .rough-node .label text,#mermaid-svg-FfCvB6nUbr4aq4tw .node .label text,#mermaid-svg-FfCvB6nUbr4aq4tw .image-shape .label,#mermaid-svg-FfCvB6nUbr4aq4tw .icon-shape .label{text-anchor:middle;}#mermaid-svg-FfCvB6nUbr4aq4tw .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-FfCvB6nUbr4aq4tw .rough-node .label,#mermaid-svg-FfCvB6nUbr4aq4tw .node .label,#mermaid-svg-FfCvB6nUbr4aq4tw .image-shape .label,#mermaid-svg-FfCvB6nUbr4aq4tw .icon-shape .label{text-align:center;}#mermaid-svg-FfCvB6nUbr4aq4tw .node.clickable{cursor:pointer;}#mermaid-svg-FfCvB6nUbr4aq4tw .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-FfCvB6nUbr4aq4tw .arrowheadPath{fill:#333333;}#mermaid-svg-FfCvB6nUbr4aq4tw .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-FfCvB6nUbr4aq4tw .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-FfCvB6nUbr4aq4tw .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-FfCvB6nUbr4aq4tw .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-FfCvB6nUbr4aq4tw .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-FfCvB6nUbr4aq4tw .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-FfCvB6nUbr4aq4tw .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-FfCvB6nUbr4aq4tw .cluster text{fill:#333;}#mermaid-svg-FfCvB6nUbr4aq4tw .cluster span{color:#333;}#mermaid-svg-FfCvB6nUbr4aq4tw div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-FfCvB6nUbr4aq4tw .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-FfCvB6nUbr4aq4tw rect.text{fill:none;stroke-width:0;}#mermaid-svg-FfCvB6nUbr4aq4tw .icon-shape,#mermaid-svg-FfCvB6nUbr4aq4tw .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-FfCvB6nUbr4aq4tw .icon-shape p,#mermaid-svg-FfCvB6nUbr4aq4tw .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-FfCvB6nUbr4aq4tw .icon-shape .label rect,#mermaid-svg-FfCvB6nUbr4aq4tw .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-FfCvB6nUbr4aq4tw .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-FfCvB6nUbr4aq4tw .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-FfCvB6nUbr4aq4tw :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"nodeLabel\" style=\"color:#fff !important\"><\/p>\n<p>\u76ee\u5f55\u7684 rwx<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>r: \u5217\u51fa\u6587\u4ef6\u5217\u8868 (ls)<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>w: \u65b0\u5efa\/\u5220\u9664\/\u91cd\u547d\u540d\u6587\u4ef6 (touch\/rm)<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>x: \u8fdb\u5165\u76ee\u5f55 (cd)<\/p>\n<p><\/span><span class=\"nodeLabel\" style=\"color:#fff !important\"><\/p>\n<p>\u666e\u901a\u6587\u4ef6\u7684 rwx<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>r: \u67e5\u770b\u5185\u5bb9 (cat)<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>w: \u4fee\u6539\u5185\u5bb9 (vim)<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>x: \u8fd0\u884c\u7a0b\u5e8f (.\/script)<\/p>\n<p><\/span><\/p>\n<p>\u56fe 2&#xff1a;\u6587\u4ef6\u4e0e\u76ee\u5f55\u7684\u6743\u9650\u5dee\u5f02\u3002 \u540c\u6837\u662f w&#xff0c;\u5bf9\u6587\u4ef6\u662f\u6539\u5185\u5bb9&#xff0c;\u5bf9\u76ee\u5f55\u662f\u5220\u6587\u4ef6\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u6570\u5b57\u6743\u9650\u7684\u7531\u6765&#xff1a;\u4e8c\u8fdb\u5236\u4e0e\u516b\u8fdb\u5236\u7684\u9b54\u6cd5<\/h3>\n<p>\u9762\u5bf9 rwxr-xr&#8211; \u8fd9\u4e48\u957f\u4e00\u4e32\u5b57\u7b26&#xff0c;\u6bcf\u6b21\u4fee\u6539\u90fd\u8981\u6572\u8fd9\u4e48\u591a\u5b57\u6bcd&#xff0c;\u8fd0\u7ef4\u4eba\u5458\u89c9\u5f97\u592a\u9ebb\u70e6\u4e86\u3002\u4e8e\u662f&#xff0c;Linux \u5f15\u5165\u4e86\u6570\u5b57\u6743\u9650&#xff08;\u516b\u8fdb\u5236\u8868\u793a\u6cd5&#xff09;\u3002<\/p>\n<h4>3.1 \u6743\u91cd\u7684\u8d4b\u4e88<\/h4>\n<p>rwx \u5206\u522b\u88ab\u8d4b\u4e88\u4e86\u56fa\u5b9a\u7684\u6570\u503c\u6743\u91cd\u3002\u8fd9\u662f\u56e0\u4e3a\u8ba1\u7b97\u673a\u5e95\u5c42\u662f\u4e8c\u8fdb\u5236&#xff0c;\u7528\u4e8c\u8fdb\u5236\u4f4d\u8868\u793a\u6743\u9650\u518d\u5408\u9002\u4e0d\u8fc7\u4e86&#xff1a;<\/p>\n<ul>\n<li>r (\u8bfb) &#061; 4 &#xff08;\u4e8c\u8fdb\u5236 100&#xff09;<\/li>\n<li>w (\u5199) &#061; 2 &#xff08;\u4e8c\u8fdb\u5236 010&#xff09;<\/li>\n<li>x (\u6267\u884c) &#061; 1 &#xff08;\u4e8c\u8fdb\u5236 001&#xff09;<\/li>\n<li>&#8211; (\u65e0\u6743\u9650) &#061; 0 &#xff08;\u4e8c\u8fdb\u5236 000&#xff09;<\/li>\n<\/ul>\n<h4>3.2 \u52a0\u6cd5\u8fd0\u7b97<\/h4>\n<p>\u6709\u4e86\u6743\u91cd&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u628a\u6bcf\u4e00\u7ec4\u6743\u9650\u8f6c\u6362\u4e3a\u6570\u5b57&#xff0c;\u53ea\u8981\u628a\u5bf9\u5e94\u6743\u9650\u7684\u6570\u5b57\u52a0\u8d77\u6765\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u4f8b\u5982 rwx &#061; 4 &#043; 2 &#043; 1 &#061; 7\u3002<br \/>\n\u4f8b\u5982 r-x &#061; 4 &#043; 0 &#043; 1 &#061; 5\u3002<br \/>\n\u4f8b\u5982 r&#8211; &#061; 4 &#043; 0 &#043; 0 &#061; 4\u3002<br \/>\n\u4f8b\u5982 &#8212; &#061; 0 &#043; 0 &#043; 0 &#061; 0\u3002<\/p>\n<h4>3.3 \u7834\u89e3 755 \u4e0e 644 \u7684\u7ec8\u6781\u5bc6\u7801<\/h4>\n<p>\u73b0\u5728&#xff0c;\u4f60\u56de\u5934\u770b\u770b\u90a3\u4e9b\u719f\u6089\u7684\u6570\u5b57&#xff1a;<\/p>\n<ul>\n<li>\n<p>755&#xff08;\u4ee3\u8868 rwxr-xr-x&#xff09;&#xff1a;<\/p>\n<ul>\n<li>U (\u6240\u6709\u8005)&#xff1a;7 &#061; rwx &#xff08;\u8bfb\u3001\u5199\u3001\u6267\u884c\u5168\u90fd\u6709&#xff09;\u3002<\/li>\n<li>G (\u6240\u5c5e\u7ec4)&#xff1a;5 &#061; r-x &#xff08;\u80fd\u8bfb\u3001\u80fd\u6267\u884c&#xff0c;\u4e0d\u80fd\u6539&#xff09;\u3002<\/li>\n<li>O (\u5176\u4ed6\u4eba)&#xff1a;5 &#061; r-x &#xff08;\u80fd\u8bfb\u3001\u80fd\u6267\u884c&#xff0c;\u4e0d\u80fd\u6539&#xff09;\u3002<\/li>\n<li>\u573a\u666f&#xff1a;\u6781\u5176\u9002\u5408\u76ee\u5f55\u548c\u53ef\u6267\u884c\u7a0b\u5e8f\u3002\u56e0\u4e3a\u76ee\u5f55\u5fc5\u987b\u8981\u6709 x \u6743\u9650\u624d\u80fd cd \u8fdb\u53bb&#xff0c;\u800c\u666e\u901a\u7528\u6237\u4e0d\u9700\u8981\u4fee\u6539\u5b83&#xff0c;\u6240\u4ee5\u4e0d\u80fd\u7ed9 w\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>644&#xff08;\u4ee3\u8868 rw-r&#8211;r&#8211;&#xff09;&#xff1a;<\/p>\n<ul>\n<li>U (\u6240\u6709\u8005)&#xff1a;6 &#061; rw- &#xff08;\u8bfb\u3001\u5199&#xff09;\u3002<\/li>\n<li>G (\u6240\u5c5e\u7ec4)&#xff1a;4 &#061; r&#8211; &#xff08;\u53ea\u8bfb&#xff09;\u3002<\/li>\n<li>O (\u5176\u4ed6\u4eba)&#xff1a;4 &#061; r&#8211; &#xff08;\u53ea\u8bfb&#xff09;\u3002<\/li>\n<li>\u573a\u666f&#xff1a;\u6781\u5176\u9002\u5408\u666e\u901a\u6587\u4ef6\u3002\u6bd4\u5982\u4f60\u7684\u7f51\u9875\u4ee3\u7801\u3001\u6587\u672c\u914d\u7f6e\u3002\u4f60\u53ef\u4ee5\u6539&#xff0c;\u522b\u4eba\u53ea\u80fd\u770b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>600&#xff08;\u4ee3\u8868 rw&#8212;&#8212;-&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u53ea\u6709\u6240\u6709\u8005\u80fd\u8bfb\u80fd\u5199&#xff0c;\u5176\u4ed6\u4eba\u8fde\u770b\u7684\u8d44\u683c\u90fd\u6ca1\u6709\u3002<\/li>\n<li>\u573a\u666f&#xff1a;\u6700\u5178\u578b\u7684\u5e94\u7528\u5c31\u662f SSH \u7684\u79c1\u94a5\u6587\u4ef6&#xff08;id_rsa&#xff09;\u3002\u5982\u679c\u4f60\u7684\u79c1\u94a5\u6743\u9650\u662f 644&#xff0c;SSH \u4f1a\u76f4\u63a5\u62d2\u7edd\u5de5\u4f5c&#xff0c;\u56e0\u4e3a\u5b83\u6015\u4f60\u7684\u79c1\u94a5\u6cc4\u9732\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>777&#xff08;\u4ee3\u8868 rwxrwxrwx&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u6240\u6709\u4eba\u60f3\u5e72\u561b\u5c31\u5e72\u561b\u3002<\/li>\n<li>\u573a\u666f&#xff1a;\u9664\u4e86\u5728\u672c\u5730\u56de\u6536\u7ad9\u6216\u6781\u5176\u7279\u6b8a\u7684\u6d4b\u8bd5\u73af\u5883&#xff0c;\u7edd\u5bf9\u4e0d\u8981\u7528&#xff01;\u8fd9\u662f\u9ed1\u5ba2\u63d0\u6743\u548c\u52d2\u7d22\u75c5\u6bd2\u7684\u6700\u7231\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024104023-6adc8b1724e6a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 3&#xff1a;\u6570\u5b57\u6743\u9650\u7684\u516b\u8fdb\u5236\u8f6c\u6362\u903b\u8f91\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u8fdb\u9636\u5fc5\u4fee&#xff1a;Linux \u7684\u7279\u6b8a\u6743\u9650 (SUID \/ SGID \/ Sticky)<\/h3>\n<p>\u9664\u4e86\u57fa\u7840\u7684 rwx&#xff0c;Linux \u8fd8\u6709\u4e09\u4f4d\u9690\u85cf\u7684\u201c\u7279\u6b8a\u6743\u9650\u201d&#xff0c;\u5b83\u4eec\u6302\u5728\u6743\u9650\u4f4d\u7684\u6700\u524d\u9762&#xff0c;\u7528 s \u6216 t \u8868\u793a\u3002\u5b83\u4eec\u6781\u5927\u5730\u6539\u53d8\u4e86\u7a0b\u5e8f\u7684\u8fd0\u884c\u903b\u8f91&#xff0c;\u662f Linux \u5b89\u5168\u653b\u9632\u7684\u6838\u5fc3\u3002<\/p>\n<h4>4.1 SUID&#xff08;Set User ID&#xff0c;\u6570\u5b57 4&#xff09;<\/h4>\n<p>\u4f5c\u7528&#xff1a;\u5f53\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u88ab\u8bbe\u7f6e\u4e86 SUID \u6743\u9650&#xff0c;\u666e\u901a\u7528\u6237\u5728\u6267\u884c\u8be5\u7a0b\u5e8f\u65f6&#xff0c;\u4f1a\u4e34\u65f6\u83b7\u5f97\u8be5\u6587\u4ef6\u6240\u6709\u8005&#xff08;\u901a\u5e38\u662f root&#xff09;\u7684\u6743\u9650\u3002<\/p>\n<p>\u7ecf\u5178\u6848\u4f8b&#xff1a;\/usr\/bin\/passwd<br \/>\n\u666e\u901a\u7528\u6237\u90fd\u53ef\u4ee5\u901a\u8fc7 passwd \u547d\u4ee4\u4fee\u6539\u81ea\u5df1\u7684\u5bc6\u7801\u3002\u4f46\u5bc6\u7801\u5b58\u653e\u5728 \/etc\/shadow \u6587\u4ef6\u4e2d&#xff0c;\u8fd9\u4e2a\u6587\u4ef6\u53ea\u6709 root \u624d\u6709\u5199\u6743\u9650\u3002\u4e3a\u4ec0\u4e48\u666e\u901a\u7528\u6237\u80fd\u4fee\u6539&#xff1f;<br \/>\n\u7528 ls -l \/usr\/bin\/passwd \u770b\u770b&#xff1a;<\/p>\n<p>-rwsr-xr-x. 1 root root 27832 Jun 10 2021 \/usr\/bin\/passwd<\/p>\n<p>\u6ce8\u610f\u770b\u6240\u6709\u8005\u7684 x \u4f4d\u53d8\u6210\u4e86 s\u3002\u8fd9\u5c31\u610f\u5473\u7740&#xff0c;\u5f53\u4f60\u8fd0\u884c passwd \u65f6&#xff0c;\u4f60\u7684\u8eab\u4efd\u77ac\u95f4\u201c\u7075\u9b42\u9644\u4f53\u201d\u6210\u4e86 root&#xff0c;\u4ece\u800c\u62e5\u6709\u6743\u9650\u53bb\u4fee\u6539 \/etc\/shadow\u3002<br \/>\n\u5b89\u5168\u8b66\u544a&#xff1a;\u5982\u679c\u4e00\u4e2a\u9ed1\u5ba2\u5728\u670d\u52a1\u5668\u4e0a\u627e\u5230\u4e86\u4e00\u4e2a\u5e26\u6709 SUID \u6743\u9650&#xff0c;\u4e14\u80fd\u88ab\u666e\u901a\u7528\u6237\u7be1\u6539\u7684\u81ea\u5b9a\u4e49\u7a0b\u5e8f&#xff0c;\u9ed1\u5ba2\u5c31\u80fd\u5229\u7528\u5b83\u83b7\u53d6 root \u6743\u9650&#xff08;\u4fd7\u79f0 SUID \u63d0\u6743&#xff09;\u3002<\/p>\n<h4>4.2 SGID&#xff08;Set Group ID&#xff0c;\u6570\u5b57 2&#xff09;<\/h4>\n<p>\u4f5c\u7528&#xff1a;<\/p>\n<ul>\n<li>\u9488\u5bf9\u6587\u4ef6&#xff1a;\u6267\u884c\u8be5\u6587\u4ef6\u65f6&#xff0c;\u4e34\u65f6\u83b7\u5f97\u6587\u4ef6\u6240\u5c5e\u7ec4\u7684\u6743\u9650\u3002<\/li>\n<li>\u9488\u5bf9\u76ee\u5f55&#xff08;\u6700\u5e38\u7528&#xff09;&#xff1a;\u5728\u4e00\u4e2a\u8bbe\u7f6e\u4e86 SGID \u7684\u76ee\u5f55\u4e0b&#xff0c;\u7528\u6237\u521b\u5efa\u7684\u65b0\u6587\u4ef6\u6216\u65b0\u76ee\u5f55&#xff0c;\u5176\u6240\u5c5e\u7ec4\u4f1a\u81ea\u52a8\u7ee7\u627f\u8be5\u76ee\u5f55\u7684\u6240\u5c5e\u7ec4\u3002<\/li>\n<\/ul>\n<p>\u573a\u666f&#xff1a;\u516c\u53f8\u6709\u4e00\u4e2a project \u76ee\u5f55&#xff0c;\u7ec4\u662f dev\u3002\u5f20\u4e09&#xff08;\u5728 dev \u7ec4&#xff09;\u521b\u5efa\u4e86\u6587\u4ef6 a.txt&#xff0c;\u5982\u679c\u6ca1\u6709 SGID&#xff0c;a.txt \u7684\u7ec4\u9ed8\u8ba4\u662f\u5f20\u4e09\u7684\u4e2a\u4eba\u7ec4&#xff1b;\u5982\u679c project \u76ee\u5f55\u8bbe\u7f6e\u4e86 SGID&#xff0c;a.txt \u7684\u7ec4\u5c31\u4f1a\u81ea\u52a8\u53d8\u6210 dev&#xff0c;\u8fd9\u6837\u56e2\u961f\u91cc\u5176\u4ed6\u4eba\u5c31\u90fd\u80fd\u8bbf\u95ee\u8fd9\u4e2a\u6587\u4ef6\u4e86\u3002<\/p>\n<h4>4.3 Sticky Bit&#xff08;\u7c98\u6ede\u4f4d&#xff0c;\u6570\u5b57 1&#xff09;<\/h4>\n<p>\u4f5c\u7528&#xff1a;\u9488\u5bf9\u76ee\u5f55\u3002\u5982\u679c\u4e00\u4e2a\u76ee\u5f55\u8bbe\u7f6e\u4e86\u7c98\u6ede\u4f4d&#xff0c;\u53ea\u6709\u6587\u4ef6\u7684\u6240\u6709\u8005\u3001\u76ee\u5f55\u7684\u6240\u6709\u8005\u6216 root \u7528\u6237&#xff0c;\u624d\u80fd\u5220\u9664\u6216\u91cd\u547d\u540d\u8be5\u76ee\u5f55\u5185\u7684\u6587\u4ef6\u3002\u5176\u4ed6\u666e\u901a\u7528\u6237\u5373\u4f7f\u5bf9\u8be5\u76ee\u5f55\u6709 w \u6743\u9650&#xff0c;\u4e5f\u65e0\u6cd5\u5220\u9664\u522b\u4eba\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u7ecf\u5178\u6848\u4f8b&#xff1a;\/tmp \u76ee\u5f55<br \/>\nLinux \u7684 \/tmp \u662f\u6240\u6709\u4eba\u5171\u4eab\u7684\u4e34\u65f6\u76ee\u5f55\u3002\u5982\u679c\u4e0d\u8bbe\u7f6e\u7c98\u6ede\u4f4d&#xff0c;\u5f20\u4e09\u5c31\u80fd\u628a\u674e\u56db\u521a\u5199\u7684\u4ee3\u7801\u5220\u9664\u3002\u800c\u8bbe\u7f6e\u4e86\u7c98\u6ede\u4f4d\u540e&#xff1a;<\/p>\n<p>drwxrwxrwt. 10 root root 4096 Oct 10 10:00 \/tmp<\/p>\n<p>\u6ce8\u610f\u6700\u540e\u7684 t\u3002\u73b0\u5728\u5f20\u4e09\u53ea\u80fd\u5728 \/tmp \u91cc\u5220\u81ea\u5df1\u7684\u6587\u4ef6&#xff0c;\u52a8\u4e0d\u4e86\u522b\u4eba\u7684\u6587\u4ef6\u3002<\/p>\n<h4>4.4 \u7279\u6b8a\u6743\u9650\u7684\u6570\u5b57\u8868\u793a\u6cd5<\/h4>\n<p>\u56e0\u4e3a SUID&#061;4&#xff0c;SGID&#061;2&#xff0c;Sticky&#061;1\u3002<br \/>\n\u4f60\u6709\u65f6\u4f1a\u770b\u5230 4755 \u6216 1777 \u8fd9\u6837\u7684\u56db\u4f4d\u6570\u5b57&#xff1a;<\/p>\n<ul>\n<li>4755 &#061; SUID &#043; rwxr-xr-x<\/li>\n<li>1777 &#061; Sticky &#043; rwxrwxrwx<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024104023-6adc8b173b0d2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 4&#xff1a;Linux \u4e09\u5927\u7279\u6b8a\u6743\u9650\u603b\u7ed3\u3002 \u5b83\u4eec\u662f\u7cfb\u7edf\u5e95\u5c42\u673a\u5236\u7684\u57fa\u77f3\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u6743\u9650\u4fee\u6539\u5229\u5668&#xff1a;chmod\u3001chown \u4e0e umask<\/h3>\n<p>\u5149\u61c2\u7406\u8bba\u4e0d\u884c&#xff0c;\u5f97\u4f1a\u5b9e\u64cd\u3002\u66f4\u6539\u6743\u9650\u4e3b\u8981\u9760\u8fd9\u4e09\u4e2a\u547d\u4ee4\u3002<\/p>\n<h4>5.1 chmod&#xff08;Change Mode&#xff09;<\/h4>\n<p>\u7528\u4e8e\u4fee\u6539\u6587\u4ef6\u7684 rwx \u6743\u9650\u3002\u6709\u4e24\u79cd\u5199\u6cd5&#xff1a;<\/p>\n<p>1. \u5b57\u6bcd\u6cd5&#xff08;\u76f4\u89c2&#xff0c;\u9002\u5408\u5c40\u90e8\u5fae\u8c03&#xff09;<\/p>\n<ul>\n<li>u (User), g (Group), o (Others), a (All)<\/li>\n<li>&#043; (\u52a0\u6743\u9650), &#8211; (\u51cf\u6743\u9650), &#061; (\u8d4b\u4e88\u552f\u4e00\u6743\u9650)<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u7ed9\u6240\u6709\u8005\u589e\u52a0\u6267\u884c\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> u&#043;x script.sh<br \/>\n<span class=\"token comment\"># \u6536\u56de\u5176\u4ed6\u4eba\u7684\u5199\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> o-w file.txt<\/p>\n<p>2. \u6570\u5b57\u6cd5&#xff08;\u5e72\u7ec3&#xff0c;\u9002\u5408\u6279\u91cf\u8bbe\u7f6e&#xff09;<\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u4e3a 755<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">755<\/span> script.sh<br \/>\n<span class=\"token comment\"># \u9012\u5f52\u628a\u76ee\u5f55\u53ca\u5176\u5185\u90e8\u6240\u6709\u6587\u4ef6\u8bbe\u4e3a 644<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token parameter variable\">-R<\/span> <span class=\"token number\">644<\/span> \/my_dir<\/p>\n<h4>5.2 chown \u4e0e chgrp&#xff08;\u5c5e\u4e3b\u4e0e\u5c5e\u7ec4\u4fee\u6539&#xff09;<\/h4>\n<ul>\n<li>chown&#xff1a;Change Owner&#xff0c;\u4fee\u6539\u6240\u6709\u8005\u3002<\/li>\n<li>chgrp&#xff1a;Change Group&#xff0c;\u4fee\u6539\u6240\u5c5e\u7ec4\u3002<\/li>\n<\/ul>\n<p><span class=\"token comment\"># \u628a\u6587\u4ef6\u6240\u6709\u8005\u6539\u4e3a tom&#xff0c;\u6240\u5c5e\u7ec4\u6539\u4e3a dev<\/span><br \/>\n<span class=\"token function\">chown<\/span> tom:dev file.txt<br \/>\n<span class=\"token comment\"># \u9012\u5f52\u4fee\u6539\u76ee\u5f55\u7684\u6240\u6709\u8005<\/span><br \/>\n<span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> tom \/home\/tom\/<\/p>\n<h4>5.3 umask&#xff08;\u906e\u7f69\u7801&#xff1a;\u9ed8\u8ba4\u6743\u9650\u7684\u201c\u51cf\u6cd5\u201d&#xff09;<\/h4>\n<p>\u4e3a\u4ec0\u4e48\u4f60\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6&#xff0c;\u9ed8\u8ba4\u6743\u9650\u662f 644&#xff1f;\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55&#xff0c;\u9ed8\u8ba4\u6743\u9650\u662f 755&#xff1f;\u8fd9\u662f\u56e0\u4e3a umask \u7684\u5b58\u5728\u3002<\/p>\n<ul>\n<li>\u9ed8\u8ba4\u57fa\u7840\u6743\u9650&#xff1a;\u6587\u4ef6\u9ed8\u8ba4\u662f 666&#xff08;\u4e0d\u7ed9\u6267\u884c\u6743\u9650&#xff09;&#xff0c;\u76ee\u5f55\u9ed8\u8ba4\u662f 777\u3002<\/li>\n<li>umask \u503c&#xff1a;\u9ed8\u8ba4\u901a\u5e38\u662f 022\u3002<\/li>\n<li>\u8ba1\u7b97\u89c4\u5219&#xff1a;\u6700\u7ec8\u6743\u9650 &#061; \u57fa\u7840\u6743\u9650 &#8211; umask&#xff08;\u6309\u4f4d\u505a\u4ea4\u96c6\u8fd0\u7b97&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u6587\u4ef6&#xff1a;666 &#8211; 022 &#061; 644\u3002<br \/>\n\u5bf9\u4e8e\u76ee\u5f55&#xff1a;777 &#8211; 022 &#061; 755\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u7528 umask \u547d\u4ee4\u67e5\u770b\u6216\u4fee\u6539\u5b83\u3002\u5982\u679c\u4f60\u6267\u884c umask 077&#xff0c;\u90a3\u4f60\u65b0\u5efa\u7684\u6587\u4ef6\u6743\u9650\u5c31\u4f1a\u53d8\u6210 600&#xff08;\u53ea\u6709\u81ea\u5df1\u80fd\u770b&#xff09;&#xff0c;\u6781\u5176\u5b89\u5168\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u6253\u7834 UGO \u5c40\u9650&#xff1a;ACL \u8bbf\u95ee\u63a7\u5236\u5217\u8868<\/h3>\n<p>UGO \u6a21\u578b\u867d\u7136\u7ecf\u5178&#xff0c;\u4f46\u6709\u65f6\u5019\u4e0d\u591f\u7528\u3002\u6bd4\u5982&#xff0c;\u5f20\u4e09\u6709\u4e00\u4e2a\u6587\u4ef6&#xff0c;\u4ed6\u5c5e\u4e8e dev \u7ec4\u3002\u4f46\u4ed6\u53ea\u60f3\u8ba9 ops \u7ec4\u91cc\u7684\u674e\u56db\u80fd\u770b&#xff0c;\u5176\u4ed6\u4eba\u90fd\u4e0d\u80fd\u770b\u3002\u8fd9\u5c31\u6253\u7834\u4e86\u201c\u4e09\u7ec4\u8bba\u201d\u7684\u6846\u67b6\u3002<\/p>\n<p>\u600e\u4e48\u529e&#xff1f;\u6211\u4eec\u9700\u8981\u5f15\u5165 ACL&#xff08;Access Control List&#xff0c;\u8bbf\u95ee\u63a7\u5236\u5217\u8868&#xff09;\u3002ACL \u5141\u8bb8\u4f60\u5728\u4f20\u7edf\u7684 UGO \u4e4b\u5916&#xff0c;\u9488\u5bf9\u7279\u5b9a\u7684\u5355\u4e2a\u7528\u6237\u6216\u7279\u5b9a\u7684\u7528\u6237\u7ec4\u5355\u72ec\u8d4b\u4e88\u6743\u9650\u3002<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u6587\u4ef6\u7684 ACL \u6743\u9650<\/span><br \/>\ngetfacl file.txt<\/p>\n<p><span class=\"token comment\"># \u7ed9\u7279\u5b9a\u7528\u6237 (\u674e\u56db) \u8d4b\u4e88\u8bfb\u5199\u6743\u9650<\/span><br \/>\nsetfacl <span class=\"token parameter variable\">-m<\/span> u:lisi:rw file.txt<\/p>\n<p>\u5f53\u6587\u4ef6\u6709 ACL \u6743\u9650\u65f6&#xff0c;ls -l \u7684\u7ed3\u679c\u4e2d\u7684\u6743\u9650\u4f4d\u540e\u9762\u4f1a\u591a\u51fa\u4e00\u4e2a &#043; \u53f7&#xff0c;\u5982 -rw-rw-r&#8211;&#043;\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u5e38\u89c1\u8bef\u533a\u4e0e\u5b89\u5168\u907f\u5751\u6307\u5357<\/h3>\n<table>\n<tr>\u8bef\u533a\u771f\u76f8<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u201c\u53ea\u8981\u6211\u662f\u6587\u4ef6\u6240\u6709\u8005&#xff0c;\u6211\u5c31\u80fd\u5220\u9664\u5b83\u201d<\/td>\n<td align=\"left\">\u9519\u3002\u80fd\u5426\u5220\u9664\u6587\u4ef6&#xff0c;\u53d6\u51b3\u4e8e\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u662f\u5426\u6709 w \u6743\u9650\u3002\u5982\u679c\u76ee\u5f55\u4e0d\u8ba9\u4f60\u5199&#xff0c;\u54ea\u6015\u4f60\u662f\u6587\u4ef6\u7239&#xff0c;\u4f60\u4e5f\u5220\u4e0d\u6389\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u201c\u7ed9\u4e2a 777 \u5c31\u80fd\u89e3\u51b3\u6240\u6709\u62a5\u9519\u201d<\/td>\n<td align=\"left\">\u6781\u5176\u5371\u9669&#xff01;777 \u610f\u5473\u7740\u4efb\u4f55\u9ed1\u5ba2\u6216\u6076\u610f\u7a0b\u5e8f\u90fd\u80fd\u690d\u5165\u811a\u672c\u3001\u7be1\u6539\u4f60\u7684\u4e1a\u52a1\u3002\u5fc5\u987b\u9075\u5faa\u6700\u5c0f\u6743\u9650\u539f\u5219\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u201c\u76ee\u5f55\u6709 r \u5c31\u80fd cd \u8fdb\u53bb\u201d<\/td>\n<td align=\"left\">\u9519\u3002cd \u8fdb\u5165\u76ee\u5f55\u9700\u8981\u7684\u662f x \u6743\u9650\u3002\u53ea\u6709 r \u7684\u8bdd&#xff0c;\u4f60\u53ea\u80fd ls \u770b\u5230\u540d\u5b57&#xff0c;\u4f46\u8fdb\u4e0d\u53bb\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u201croot \u6743\u9650\u4f1a\u88ab\u6743\u9650\u4f4d\u9650\u5236\u201d<\/td>\n<td align=\"left\">root \u662f\u8d85\u7ea7\u7ba1\u7406\u5458&#xff0c;\u62e5\u6709\u81f3\u9ad8\u65e0\u4e0a\u7684\u6743\u529b&#xff0c;\u5373\u4f7f\u6587\u4ef6\u7684\u6743\u9650\u662f 000&#xff0c;root \u4e5f\u80fd\u5f3a\u884c\u8bfb\u5199&#xff08;\u9664\u4e86\u67d0\u4e9b immutable \u4e0d\u53ef\u53d8\u5c5e\u6027&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u201cchmod -R 777 \/\u201d \u4f1a\u63d0\u901f\u201d<\/td>\n<td align=\"left\">\u8fd9\u7b49\u4e8e\u628a\u7cfb\u7edf\u7684\u5e95\u88e4\u8131\u4e86&#xff0c;\u7cfb\u7edf\u4f1a\u76f4\u63a5\u534a\u8eab\u4e0d\u9042\u6216\u77ac\u95f4\u88ab\u9ed1\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u201c\u64cd\u4f5c\u7cfb\u7edf\u7cfb\u5217\u6559\u7a0b\u201d\u7684\u7b2c\u56db\u5341\u516b\u7bc7\u3002\u4e0a\u4e00\u7bc7\u6211\u4eec\u8bb2\u4e86 RAID&#xff0c;\u77e5\u9053\u4e86\u5982\u4f55\u901a\u8fc7\u786c\u4ef6\u7ea7\u522b\u7684\u9635\u5217\u4fdd\u62a4\u6570\u636e\u4e0d\u4e22\u5931\u3002\u4f46\u8fd9\u8fd8\u4e0d\u591f&#xff0c;\u56e0\u4e3a\u6700\u575a\u56fa\u7684\u5821\u5792\u5f80\u5f80\u662f\u4ece\u5185\u90e8\u88ab\u653b\u7834\u7684\u3002\u5982\u679c\u670d\u52a1\u5668\u4e0a\u7684\u4efb\u4f55\u4e00\u4e2a\u666e\u901a\u7528\u6237\u90fd\u80fd\u968f\u4fbf\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\u3001\u67e5\u770b\u522b\u4eba\u7684\u9690\u79c1\u6587\u4ef6&#xff0c;\u90a3\u7cfb\u7edf\u4f9d\u7136\u6beb\u65e0\u5b89\u5168\u6027\u53ef\u8a00\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u5f15\u5165\u4e86\u6587\u4ef6\u6743\u9650\u673a\u5236\u3002\u5728 Linux \u4e2d&#xff0c;\u4f60\u7ecf\u5e38\u770b\u5230 755\u3001644 \u8fd9\u6837\u7684\u6570\u5b57&#xff0c;\u5b83\u4eec\u5230\u5e95\u662f\u4ec0\u4e48\u610f\u601d&#xff1f;<\/p>\n","protected":false},"author":2,"featured_media":117380,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13178,13320,58,16,43,44],"topic":[],"class_list":["post-117383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-1024---","tag-13320","tag-linux","tag-16","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>\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb - \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\/117383.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u662f\u201c\u64cd\u4f5c\u7cfb\u7edf\u7cfb\u5217\u6559\u7a0b\u201d\u7684\u7b2c\u56db\u5341\u516b\u7bc7\u3002\u4e0a\u4e00\u7bc7\u6211\u4eec\u8bb2\u4e86 RAID&#xff0c;\u77e5\u9053\u4e86\u5982\u4f55\u901a\u8fc7\u786c\u4ef6\u7ea7\u522b\u7684\u9635\u5217\u4fdd\u62a4\u6570\u636e\u4e0d\u4e22\u5931\u3002\u4f46\u8fd9\u8fd8\u4e0d\u591f&#xff0c;\u56e0\u4e3a\u6700\u575a\u56fa\u7684\u5821\u5792\u5f80\u5f80\u662f\u4ece\u5185\u90e8\u88ab\u653b\u7834\u7684\u3002\u5982\u679c\u670d\u52a1\u5668\u4e0a\u7684\u4efb\u4f55\u4e00\u4e2a\u666e\u901a\u7528\u6237\u90fd\u80fd\u968f\u4fbf\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\u3001\u67e5\u770b\u522b\u4eba\u7684\u9690\u79c1\u6587\u4ef6&#xff0c;\u90a3\u7cfb\u7edf\u4f9d\u7136\u6beb\u65e0\u5b89\u5168\u6027\u53ef\u8a00\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u5f15\u5165\u4e86\u6587\u4ef6\u6743\u9650\u673a\u5236\u3002\u5728 Linux \u4e2d&#xff0c;\u4f60\u7ecf\u5e38\u770b\u5230 755\u3001644 \u8fd9\u6837\u7684\u6570\u5b57&#xff0c;\u5b83\u4eec\u5230\u5e95\u662f\u4ec0\u4e48\u610f\u601d&#xff1f;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117383.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-24T10:40:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024104022-6adc8b16cb529.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=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117383.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117383.html\",\"name\":\"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-24T10:40:24+00:00\",\"dateModified\":\"2026-10-24T10:40:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117383.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117383.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117383.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb\"}]},{\"@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":"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb - \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\/117383.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8fd9\u662f\u201c\u64cd\u4f5c\u7cfb\u7edf\u7cfb\u5217\u6559\u7a0b\u201d\u7684\u7b2c\u56db\u5341\u516b\u7bc7\u3002\u4e0a\u4e00\u7bc7\u6211\u4eec\u8bb2\u4e86 RAID&#xff0c;\u77e5\u9053\u4e86\u5982\u4f55\u901a\u8fc7\u786c\u4ef6\u7ea7\u522b\u7684\u9635\u5217\u4fdd\u62a4\u6570\u636e\u4e0d\u4e22\u5931\u3002\u4f46\u8fd9\u8fd8\u4e0d\u591f&#xff0c;\u56e0\u4e3a\u6700\u575a\u56fa\u7684\u5821\u5792\u5f80\u5f80\u662f\u4ece\u5185\u90e8\u88ab\u653b\u7834\u7684\u3002\u5982\u679c\u670d\u52a1\u5668\u4e0a\u7684\u4efb\u4f55\u4e00\u4e2a\u666e\u901a\u7528\u6237\u90fd\u80fd\u968f\u4fbf\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\u3001\u67e5\u770b\u522b\u4eba\u7684\u9690\u79c1\u6587\u4ef6&#xff0c;\u90a3\u7cfb\u7edf\u4f9d\u7136\u6beb\u65e0\u5b89\u5168\u6027\u53ef\u8a00\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u5f15\u5165\u4e86\u6587\u4ef6\u6743\u9650\u673a\u5236\u3002\u5728 Linux \u4e2d&#xff0c;\u4f60\u7ecf\u5e38\u770b\u5230 755\u3001644 \u8fd9\u6837\u7684\u6570\u5b57&#xff0c;\u5b83\u4eec\u5230\u5e95\u662f\u4ec0\u4e48\u610f\u601d&#xff1f;","og_url":"https:\/\/www.wsisp.com\/helps\/117383.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-24T10:40:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024104022-6adc8b16cb529.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117383.html","url":"https:\/\/www.wsisp.com\/helps\/117383.html","name":"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-24T10:40:24+00:00","dateModified":"2026-10-24T10:40:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117383.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117383.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117383.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ec0\u4e48\u662f\u6587\u4ef6\u6743\u9650\uff1fLinux \u4e2d rwx \u4e0e\u6570\u5b57\u6743\u9650\u7684\u5bf9\u5e94\u5173\u7cfb"}]},{"@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\/117383","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=117383"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117383\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/117380"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117383"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}