{"id":101664,"date":"2026-09-07T06:17:56","date_gmt":"2026-09-06T22:17:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/101664.html"},"modified":"2026-09-07T06:17:56","modified_gmt":"2026-09-06T22:17:56","slug":"linux%e6%9d%83%e9%99%90%e7%ae%a1%e7%90%86%e4%b8%87%e5%ad%97%e8%af%a6%e8%a7%a3%ef%bd%9c%e7%94%a8%e6%88%b7%e4%bd%93%e7%b3%bb%e3%80%81%e8%a7%92%e8%89%b2%e5%b1%9e%e6%80%a7%e4%b8%8e%e5%a4%9a%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/101664.html","title":{"rendered":"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E5%BC%95%E8%A8%80%EF%BC%9A-toc\" style=\"margin-left:0px\">\u5f15\u8a00&#xff1a;<\/p>\n<p id=\"1.%20Linux%20%E7%94%A8%E6%88%B7%E4%BD%93%E7%B3%BB-toc\" style=\"margin-left:0px\">1. Linux \u7528\u6237\u4f53\u7cfb<\/p>\n<p id=\"1.1%20%E4%B8%A4%E7%A7%8D%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B-toc\" style=\"margin-left:40px\">1.1 \u4e24\u79cd\u7528\u6237\u7c7b\u578b<\/p>\n<p id=\"1.2%20%E7%94%A8%E6%88%B7%E5%88%87%E6%8D%A2%EF%BC%9Asu%20%E5%91%BD%E4%BB%A4-toc\" style=\"margin-left:40px\">1.2 \u7528\u6237\u5207\u6362&#xff1a;su \u547d\u4ee4<\/p>\n<p id=\"2.%20%E6%9D%83%E9%99%90%E5%AF%B9%E6%AF%94%E6%BC%94%E7%A4%BA-toc\" style=\"margin-left:0px\">2. \u6743\u9650\u5bf9\u6bd4\u6f14\u793a<\/p>\n<p id=\"2.1%20%E5%9C%BA%E6%99%AF%EF%BC%9A%E5%AE%89%E8%A3%85%E5%8F%AF%E6%89%A7%E8%A1%8C%E7%A8%8B%E5%BA%8F-toc\" style=\"margin-left:40px\">2.1 \u573a\u666f&#xff1a;\u5b89\u88c5\u53ef\u6267\u884c\u7a0b\u5e8f<\/p>\n<p id=\"2.2%20%E6%99%AE%E9%80%9A%E7%94%A8%E6%88%B7%E5%B0%9D%E8%AF%95%EF%BC%88%E5%A4%B1%E8%B4%A5%EF%BC%89-toc\" style=\"margin-left:40px\">2.2 \u666e\u901a\u7528\u6237\u5c1d\u8bd5&#xff08;\u5931\u8d25&#xff09;<\/p>\n<p id=\"2.3%20%E8%B6%85%E7%BA%A7%E7%94%A8%E6%88%B7%E6%89%A7%E8%A1%8C%EF%BC%88%E6%88%90%E5%8A%9F%EF%BC%89-toc\" style=\"margin-left:40px\">2.3 \u8d85\u7ea7\u7528\u6237\u6267\u884c&#xff08;\u6210\u529f&#xff09;<\/p>\n<p id=\"3.%20%E4%B8%B4%E6%97%B6%E6%8F%90%E6%9D%83%EF%BC%9Asudo%20%E5%91%BD%E4%BB%A4-toc\" style=\"margin-left:0px\">3. \u4e34\u65f6\u63d0\u6743&#xff1a;sudo \u547d\u4ee4<\/p>\n<p id=\"3.1%20%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%20sudo%EF%BC%9F-toc\" style=\"margin-left:40px\">3.1 \u4e3a\u4ec0\u4e48\u9700\u8981 sudo&#xff1f;<\/p>\n<p id=\"3.2%20sudo%20%E4%BD%BF%E7%94%A8%E5%89%8D%E6%8F%90-toc\" style=\"margin-left:40px\">3.2 sudo \u4f7f\u7528\u524d\u63d0<\/p>\n<p id=\"3.3%20%E9%85%8D%E7%BD%AE%20sudo%20%E6%9D%83%E9%99%90-toc\" style=\"margin-left:40px\">3.3 \u914d\u7f6e sudo \u6743\u9650<\/p>\n<p id=\"3.4%20sudo%20%E5%AE%9E%E6%88%98%E6%BC%94%E7%A4%BA-toc\" style=\"margin-left:40px\">3.4 sudo \u5b9e\u6218\u6f14\u793a<\/p>\n<p id=\"4.%20%E6%9D%83%E9%99%90%E7%9A%84%E6%9C%AC%E8%B4%A8%E7%90%86%E8%A7%A3-toc\" style=\"margin-left:0px\">4. \u6743\u9650\u7684\u672c\u8d28\u7406\u89e3<\/p>\n<p id=\"4.1%20%E7%8E%B0%E5%AE%9E%E4%B8%96%E7%95%8C%E7%9A%84%E6%9D%83%E9%99%90-toc\" style=\"margin-left:40px\">4.1 \u73b0\u5b9e\u4e16\u754c\u7684\u6743\u9650<\/p>\n<p id=\"4.2%20%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%E6%9D%83%E9%99%90%EF%BC%9F-toc\" style=\"margin-left:40px\">4.2 \u4e3a\u4ec0\u4e48\u9700\u8981\u6743\u9650&#xff1f;<\/p>\n<p id=\"4.3%20%E6%9D%83%E9%99%90%E7%9A%84%E7%BB%84%E6%88%90%E5%85%AC%E5%BC%8F-toc\" style=\"margin-left:40px\">4.3 \u6743\u9650\u7684\u7ec4\u6210\u516c\u5f0f<\/p>\n<p id=\"5.%20Linux%20%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%E4%BD%93%E7%B3%BB-toc\" style=\"margin-left:0px\">5. Linux \u6587\u4ef6\u6743\u9650\u4f53\u7cfb<\/p>\n<p id=\"5.1%20%E4%B8%89%E7%A7%8D%E8%A7%92%E8%89%B2-toc\" style=\"margin-left:40px\">5.1 \u4e09\u79cd\u89d2\u8272<\/p>\n<p id=\"5.2%20%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%E5%B1%9E%E6%80%A7-toc\" style=\"margin-left:40px\">5.2 \u6587\u4ef6\u6743\u9650\u5c5e\u6027<\/p>\n<p id=\"5.3%20%E8%A7%A3%E8%AF%BB%20ll%20%E5%91%BD%E4%BB%A4%E8%BE%93%E5%87%BA-toc\" style=\"margin-left:40px\">5.3 \u89e3\u8bfb ll \u547d\u4ee4\u8f93\u51fa<\/p>\n<p id=\"5.4%20%E6%9D%83%E9%99%90%E9%AA%8C%E8%AF%81%E5%AE%9E%E4%BE%8B-toc\" style=\"margin-left:40px\">5.4 \u6743\u9650\u9a8c\u8bc1\u5b9e\u4f8b<\/p>\n<p id=\"6.%20%E7%90%86%E8%AE%BA%E9%93%BA%E5%9E%AB%E5%AE%8C%E6%88%90-toc\" style=\"margin-left:0px\">6. \u7406\u8bba\u94fa\u57ab\u5b8c\u6210<\/p>\n<p id=\"6.1%20%E8%A7%92%E8%89%B2%E4%B8%8E%E5%B1%9E%E6%80%A7%E7%9A%84%E7%BB%93%E5%90%88%E8%A1%A8%E8%BF%B0-toc\" style=\"margin-left:40px\">6.1 \u89d2\u8272\u4e0e\u5c5e\u6027\u7684\u7ed3\u5408\u8868\u8ff0<\/p>\n<p id=\"6.2%20%E7%90%86%E8%AE%BA%E9%98%B6%E6%AE%B5%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:40px\">6.2 \u7406\u8bba\u9636\u6bb5\u603b\u7ed3<\/p>\n<p id=\"7.%20%E4%BF%AE%E6%94%B9%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%EF%BC%9Achmod-toc\" style=\"margin-left:0px\">7. \u4fee\u6539\u6587\u4ef6\u6743\u9650&#xff1a;chmod<\/p>\n<p id=\"7.1%20%E5%91%BD%E4%BB%A4%E5%9F%BA%E7%A1%80-toc\" style=\"margin-left:40px\">7.1 \u547d\u4ee4\u57fa\u7840<\/p>\n<p id=\"7.2%20chmod%20%E5%91%BD%E4%BB%A4%E8%AF%A6%E8%A7%A3-toc\" style=\"margin-left:40px\">7.2 chmod \u547d\u4ee4\u8be6\u89e3<\/p>\n<p id=\"7.3%20%E7%AC%A6%E5%8F%B7%E6%A8%A1%E5%BC%8F%E5%AE%9E%E6%88%98-toc\" style=\"margin-left:40px\">7.3 \u7b26\u53f7\u6a21\u5f0f\u5b9e\u6218<\/p>\n<p id=\"7.4%20%E5%85%AB%E8%BF%9B%E5%88%B6%E6%95%B0%E5%AD%97%E6%A8%A1%E5%BC%8F-toc\" style=\"margin-left:40px\">7.4 \u516b\u8fdb\u5236\u6570\u5b57\u6a21\u5f0f<\/p>\n<p id=\"7.5%20%E6%9D%83%E9%99%90%E9%AA%8C%E8%AF%81%E4%B8%8E%E5%85%B3%E9%94%AE%E8%AE%A4%E7%9F%A5-toc\" style=\"margin-left:40px\">7.5 \u6743\u9650\u9a8c\u8bc1\u4e0e\u5173\u952e\u8ba4\u77e5<\/p>\n<p id=\"1.%20%E6%9D%83%E9%99%90%E6%8B%92%E7%BB%9D%E5%9C%BA%E6%99%AF%EF%BC%9A-toc\" style=\"margin-left:80px\">1. \u6743\u9650\u62d2\u7edd\u573a\u666f&#xff1a;<\/p>\n<p id=\"2.%20%E5%8E%BB%E6%8E%89%E8%AF%BB%E6%9D%83%E9%99%90%E5%90%8E%EF%BC%9A-toc\" style=\"margin-left:80px\">2. \u53bb\u6389\u8bfb\u6743\u9650\u540e&#xff1a;<\/p>\n<p id=\"3.%20%E8%A7%92%E8%89%B2%E5%8C%B9%E9%85%8D%E4%BC%98%E5%85%88%E7%BA%A7%EF%BC%9A-toc\" style=\"margin-left:80px\">3. \u89d2\u8272\u5339\u914d\u4f18\u5148\u7ea7&#xff1a;<\/p>\n<p id=\"4.%20root%20%E7%9A%84%E7%89%B9%E6%9D%83%EF%BC%9A-toc\" style=\"margin-left:80px\">4. root \u7684\u7279\u6743&#xff1a;<\/p>\n<p id=\"5.%20%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%9D%83%E9%99%90%E7%9A%84%E6%9C%AC%E8%B4%A8%EF%BC%9A-toc\" style=\"margin-left:80px\">5. \u53ef\u6267\u884c\u6743\u9650\u7684\u672c\u8d28&#xff1a;<\/p>\n<p id=\"8.%20%E4%BF%AE%E6%94%B9%E6%96%87%E4%BB%B6%E5%BD%92%E5%B1%9E%EF%BC%9Achown%20%E4%B8%8E%20chgrp-toc\" style=\"margin-left:0px\">8. \u4fee\u6539\u6587\u4ef6\u5f52\u5c5e&#xff1a;chown \u4e0e chgrp<\/p>\n<p id=\"8.1%20chown%EF%BC%9A%E4%BF%AE%E6%94%B9%E6%8B%A5%E6%9C%89%E8%80%85-toc\" style=\"margin-left:40px\">8.1 chown&#xff1a;\u4fee\u6539\u62e5\u6709\u8005<\/p>\n<p id=\"8.2%20chgrp%EF%BC%9A%E4%BF%AE%E6%94%B9%E6%89%80%E5%B1%9E%E7%BB%84-toc\" style=\"margin-left:40px\">8.2 chgrp&#xff1a;\u4fee\u6539\u6240\u5c5e\u7ec4<\/p>\n<p id=\"8.3%20%E5%90%8C%E6%97%B6%E4%BF%AE%E6%94%B9%E6%8B%A5%E6%9C%89%E8%80%85%E5%92%8C%E6%89%80%E5%B1%9E%E7%BB%84-toc\" style=\"margin-left:40px\">8.3 \u540c\u65f6\u4fee\u6539\u62e5\u6709\u8005\u548c\u6240\u5c5e\u7ec4<\/p>\n<p id=\"9.%20%E7%9B%AE%E5%BD%95%E6%9D%83%E9%99%90%E8%AF%A6%E8%A7%A3-toc\" style=\"margin-left:0px\">9. \u76ee\u5f55\u6743\u9650\u8be6\u89e3<\/p>\n<p id=\"9.1%20%E7%9B%AE%E5%BD%95%E7%9A%84%20rwx%20%E5%90%AB%E4%B9%89-toc\" style=\"margin-left:40px\">9.1 \u76ee\u5f55\u7684 rwx \u542b\u4e49<\/p>\n<p id=\"9.2%20root%20%E7%9A%84%E7%BB%9D%E5%AF%B9%E6%9D%83%E9%99%90-toc\" style=\"margin-left:40px\">9.2 root \u7684\u7edd\u5bf9\u6743\u9650<\/p>\n<p id=\"10.%20%E7%94%A8%E6%88%B7%E9%9A%94%E7%A6%BB%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:0px\">10. \u7528\u6237\u9694\u79bb\u673a\u5236<\/p>\n<p id=\"10.1%20%E5%AE%B6%E7%9B%AE%E5%BD%95%E7%9A%84%E6%9D%83%E9%99%90%E8%AE%BE%E8%AE%A1-toc\" style=\"margin-left:40px\">10.1 \u5bb6\u76ee\u5f55\u7684\u6743\u9650\u8bbe\u8ba1<\/p>\n<p id=\"11.%20%E9%BB%98%E8%AE%A4%E6%9D%83%E9%99%90%E4%B8%8E%20umask-toc\" style=\"margin-left:0px\">11. \u9ed8\u8ba4\u6743\u9650\u4e0e umask<\/p>\n<p id=\"11.1%20%E9%BB%98%E8%AE%A4%E6%9D%83%E9%99%90-toc\" style=\"margin-left:40px\">11.1 \u9ed8\u8ba4\u6743\u9650<\/p>\n<p id=\"11.2%20%E5%AE%9E%E9%99%85%E7%9C%8B%E5%88%B0%E7%9A%84%E6%9D%83%E9%99%90-toc\" style=\"margin-left:40px\">11.2 \u5b9e\u9645\u770b\u5230\u7684\u6743\u9650<\/p>\n<p id=\"11.3%20umask%20%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:40px\">11.3 umask \u673a\u5236<\/p>\n<p id=\"11.4%20umask%20%E7%9A%84%E4%BD%9C%E7%94%A8-toc\" style=\"margin-left:40px\">11.4 umask \u7684\u4f5c\u7528<\/p>\n<p id=\"12.%20%E7%B2%98%E6%BB%9E%E4%BD%8D%EF%BC%9A%E8%A7%A3%E5%86%B3%E7%9B%AE%E5%BD%95%E5%86%99%E6%9D%83%E9%99%90%E7%9A%84%E9%9A%90%E6%82%A3-toc\" style=\"margin-left:0px\">12. \u7c98\u6ede\u4f4d&#xff1a;\u89e3\u51b3\u76ee\u5f55\u5199\u6743\u9650\u7684\u9690\u60a3<\/p>\n<p id=\"12.1%20%E9%97%AE%E9%A2%98%E7%8E%B0%E8%B1%A1-toc\" style=\"margin-left:40px\">12.1 \u95ee\u9898\u73b0\u8c61<\/p>\n<p id=\"12.2%20%E7%B2%98%E6%BB%9E%E4%BD%8D%EF%BC%88Sticky%20Bit%EF%BC%89-toc\" style=\"margin-left:40px\">12.2 \u7c98\u6ede\u4f4d&#xff08;Sticky Bit&#xff09;<\/p>\n<p id=\"13.%20%E5%A4%9A%E7%94%A8%E6%88%B7%E6%96%87%E4%BB%B6%E7%BA%A7%E5%8D%8F%E4%BD%9C%E5%AE%9E%E8%B7%B5-toc\" style=\"margin-left:0px\">13. \u591a\u7528\u6237\u6587\u4ef6\u7ea7\u534f\u4f5c\u5b9e\u8df5<\/p>\n<p id=\"13.1%20%E5%8D%8F%E4%BD%9C%E5%9C%BA%E6%99%AF%E7%9A%84%E9%9C%80%E6%B1%82-toc\" style=\"margin-left:40px\">13.1 \u534f\u4f5c\u573a\u666f\u7684\u9700\u6c42<\/p>\n<p id=\"13.2%20%2Ftmp%20%E7%9B%AE%E5%BD%95%EF%BC%9A%E7%B3%BB%E7%BB%9F%E7%BA%A7%E7%9A%84%E5%8D%8F%E4%BD%9C%E7%A9%BA%E9%97%B4-toc\" style=\"margin-left:40px\">13.2 \/tmp \u76ee\u5f55&#xff1a;\u7cfb\u7edf\u7ea7\u7684\u534f\u4f5c\u7a7a\u95f4<\/p>\n<p id=\"13.3%20%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B2%98%E6%BB%9E%E4%BD%8D%E7%9B%AE%E5%BD%95-toc\" style=\"margin-left:40px\">13.3 \u81ea\u5b9a\u4e49\u7c98\u6ede\u4f4d\u76ee\u5f55<\/p>\n<p id=\"13.4%20%E6%96%B9%E6%A1%88%E5%AF%B9%E6%AF%94-toc\" style=\"margin-left:40px\">13.4 \u65b9\u6848\u5bf9\u6bd4<\/p>\n<p id=\"13.5%20%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5%E5%BB%BA%E8%AE%AE-toc\" style=\"margin-left:40px\">13.5 \u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/p>\n<p id=\"%E6%9C%AC%E8%8A%82%E5%91%BD%E4%BB%A4%E9%80%9F%E6%9F%A5%E8%A1%A8-toc\" style=\"margin-left:0px\">\u672c\u8282\u547d\u4ee4\u901f\u67e5\u8868<\/p>\n<p id=\"%E6%9D%83%E9%99%90%E4%BD%93%E7%B3%BB%E5%AE%8C%E6%95%B4%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:0px\">\u6743\u9650\u4f53\u7cfb\u5b8c\u6574\u603b\u7ed3<\/p>\n<p id=\"%E7%BB%93%E8%AF%AD%EF%BC%9A-toc\" style=\"margin-left:0px\">\u7ed3\u8bed&#xff1a;<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E5%BC%95%E8%A8%80%EF%BC%9A\" style=\"background-color:transparent\">\u5f15\u8a00&#xff1a;<\/h2>\n<p>Linux \u4f5c\u4e3a\u591a\u7528\u6237\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u6743\u9650\u7ba1\u7406\u662f\u5176\u5b89\u5168\u4f53\u7cfb\u7684\u57fa\u77f3\u3002\u65e0\u8bba\u662f\u4e2a\u4eba\u5f00\u53d1\u73af\u5883\u8fd8\u662f\u4f01\u4e1a\u751f\u4ea7\u670d\u52a1\u5668&#xff0c;\u7406\u89e3\u5e76\u6b63\u786e\u914d\u7f6e\u6743\u9650&#xff0c;\u90fd\u662f\u4fdd\u969c\u7cfb\u7edf\u5b89\u5168\u3001\u5b9e\u73b0\u9ad8\u6548\u534f\u4f5c\u7684\u524d\u63d0\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ece\u6700\u57fa\u7840\u7684\u7528\u6237\u7c7b\u578b\u51fa\u53d1&#xff0c;\u9010\u6b65\u6df1\u5165\u5230\u6743\u9650\u7684\u672c\u8d28\u3001\u89d2\u8272\u7684\u8bbe\u8ba1\u3001\u5c5e\u6027\u7684\u64cd\u4f5c&#xff0c;\u6700\u7ec8\u843d\u5b9e\u5230\u591a\u7528\u6237\u534f\u4f5c\u7684\u5b9e\u6218\u573a\u666f\u3002\u901a\u8fc7&#034;\u7406\u8bba\u94fa\u57ab \u2192 \u547d\u4ee4\u5b9e\u64cd \u2192 \u573a\u666f\u5e94\u7528&#034;\u7684\u4e09\u6bb5\u5f0f\u7ed3\u6784&#xff0c;\u5e2e\u52a9\u4f60\u5efa\u7acb\u5b8c\u6574\u7684 Linux \u6743\u9650\u8ba4\u77e5\u6846\u67b6\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u8fdb\u5165\u6b63\u6587\u2014\u2014\u2014\u2014&gt;<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"360\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221753-6a9de69166c00.png\" width=\"360\" \/><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"1.%20Linux%20%E7%94%A8%E6%88%B7%E4%BD%93%E7%B3%BB\" style=\"background-color:transparent\">1. Linux \u7528\u6237\u4f53\u7cfb<\/h2>\n<h3 id=\"1.1%20%E4%B8%A4%E7%A7%8D%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B\">1.1 \u4e24\u79cd\u7528\u6237\u7c7b\u578b<\/h3>\n<p>Linux \u7cfb\u7edf\u4e0b\u6709\u4e24\u79cd\u6838\u5fc3\u7528\u6237&#xff1a;<\/p>\n<table>\n<tr>\u7528\u6237\u7c7b\u578b\u547d\u4ee4\u63d0\u793a\u7b26\u6743\u9650\u8303\u56f4<\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u8d85\u7ea7\u7528\u6237 (root)<\/span><\/td>\n<td><span style=\"color:#be191c\">#<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4e0d\u53d7\u9650\u5236&#xff0c;\u53ef\u6267\u884c\u4efb\u4f55\u64cd\u4f5c<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#1c7892\">\u666e\u901a\u7528\u6237<\/span><\/td>\n<td><span style=\"color:#1c7892\">$<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u53d7\u9650&#xff0c;\u53ea\u80fd\u64cd\u4f5c\u81ea\u5df1\u7684\u8d44\u6e90<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#x1f4a1;\u00a0\u7c7b\u6bd4 Windows&#xff1a;<span style=\"color:#be191c\">Windows \u4e2d\u7684&#034;\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c&#034;\u5c31\u662f\u4e34\u65f6\u83b7\u53d6\u8d85\u7ea7\u7528\u6237\u6743\u9650\u3002<\/span><\/p>\n<hr \/>\n<h3 id=\"1.2%20%E7%94%A8%E6%88%B7%E5%88%87%E6%8D%A2%EF%BC%9Asu%20%E5%91%BD%E4%BB%A4\">1.2 \u7528\u6237\u5207\u6362&#xff1a;su \u547d\u4ee4<\/h3>\n<p>\u57fa\u672c\u7528\u6cd5&#xff1a;<\/p>\n<p># root \u2192 \u666e\u901a\u7528\u6237<br \/>\n[root&#064;VM-0-2-centos ~]# su qyh<\/p>\n<p># \u666e\u901a\u7528\u6237 \u2192 root&#xff08;\u9700\u8f93\u5165 root \u5bc6\u7801&#xff09;<br \/>\n[qyh&#064;VM-0-2-centos ~]$ su root <\/p>\n<p>su vs su &#8211; \u7684\u533a\u522b&#xff1a;<\/p>\n<p># su&#xff1a;\u4ec5\u5207\u6362\u8eab\u4efd&#xff0c;\u4e0d\u6539\u53d8\u5f53\u524d\u76ee\u5f55<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# su qyh<br \/>\n[qyh&#064;VM-0-2-centos 2026_9_5]$ pwd<br \/>\n\/root\/2026_9_5              # \u2190 \u4ecd\u5728\u539f\u76ee\u5f55<\/p>\n<p># su -&#xff1a;\u91cd\u65b0\u767b\u5f55&#xff0c;\u5207\u6362\u5230\u7528\u6237\u4e3b\u76ee\u5f55<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# su &#8211; qyh<br \/>\n[qyh&#064;VM-0-2-centos ~]$ pwd<br \/>\n\/home\/qyh                   # \u2190 \u5df2\u5207\u6362\u5230\u7528\u6237\u4e3b\u76ee\u5f55 <\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u5bf9\u6bd4\u9879<\/span><span style=\"color:#be191c\">su<\/span><span style=\"color:#be191c\">su &#8211;<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u5f53\u524d\u76ee\u5f55<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4e0d\u53d8<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u5207\u6362\u5230\u7528\u6237\u4e3b\u76ee\u5f55<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u73af\u5883\u53d8\u91cf<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4fdd\u7559\u539f\u7528\u6237&#xff08;\u4e0d\u91cd\u65b0\u767b\u5f55&#xff0c;\u4ec5\u8eab\u4efd\u5207\u6362&#xff09;<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u52a0\u8f7d\u65b0\u7528\u6237\u73af\u5883&#xff08;\u91cd\u65b0\u767b\u5f55&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4f7f\u7528\u573a\u666f<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4e34\u65f6\u6267\u884c\u547d\u4ee4<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u5b8c\u5168\u5207\u6362\u7528\u6237\u73af\u5883<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 id=\"2.%20%E6%9D%83%E9%99%90%E5%AF%B9%E6%AF%94%E6%BC%94%E7%A4%BA\">2. \u6743\u9650\u5bf9\u6bd4\u6f14\u793a<\/h2>\n<h3 id=\"2.1%20%E5%9C%BA%E6%99%AF%EF%BC%9A%E5%AE%89%E8%A3%85%E5%8F%AF%E6%89%A7%E8%A1%8C%E7%A8%8B%E5%BA%8F\">2.1 \u573a\u666f&#xff1a;\u5b89\u88c5\u53ef\u6267\u884c\u7a0b\u5e8f<\/h3>\n<p>\u7f16\u8bd1\u7a0b\u5e8f\u5e76\u5c1d\u8bd5\u5b89\u88c5\u5230\u7cfb\u7edf\u76ee\u5f55&#xff1a;<\/p>\n<p># \u7f16\u8bd1\u7a0b\u5e8f<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# gcc run1.c -o run1<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# .\/run1<br \/>\nhello linux<br \/>\n^C <\/p>\n<p>\u76ee\u6807&#xff1a;\u5c06\u00a0run1\u00a0\u62f7\u8d1d\u5230\u00a0\/usr\/bin&#xff0c;\u4f7f\u5176\u50cf\u7cfb\u7edf\u547d\u4ee4\u4e00\u6837\u76f4\u63a5\u53ef\u7528\u3002<\/p>\n<p>&#x1f4a1;\u00a0\u539f\u7406&#xff1a;\u7cfb\u7edf\u547d\u4ee4&#xff08;\u5982\u00a0ls\u3001tree&#xff09;\u80fd\u76f4\u63a5\u6267\u884c&#xff0c;\u662f\u56e0\u4e3a\u5b83\u4eec\u5b58\u653e\u5728\u00a0\/usr\/bin\u00a0\u7b49\u7cfb\u7edf\u76ee\u5f55\u4e2d\u3002\u6211\u4eec\u4e0b\u8f7d\u7684\u8f6f\u4ef6\u80fd\u76f4\u63a5\u7528 tree,sz,rz\u4e5f\u662f\u56e0\u4e3a\u5b58\u653e\u5728\u4e86\u00a0\/usr\/bin\u00a0\u7b49\u7cfb\u7edf\u76ee\u5f55\u4e2d<\/p>\n<hr \/>\n<h3 id=\"2.2%20%E6%99%AE%E9%80%9A%E7%94%A8%E6%88%B7%E5%B0%9D%E8%AF%95%EF%BC%88%E5%A4%B1%E8%B4%A5%EF%BC%89\">2.2 \u666e\u901a\u7528\u6237\u5c1d\u8bd5&#xff08;\u5931\u8d25&#xff09;<\/h3>\n<p># \u5207\u6362\u5230\u666e\u901a\u7528\u6237<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# su qyh<\/p>\n<p># \u5c1d\u8bd5\u62f7\u8d1d\u5230\u7cfb\u7edf\u76ee\u5f55<br \/>\n[qyh&#064;VM-0-2-centos 2026_9_5]$ cp run1 \/usr\/bin<br \/>\ncp: cannot create regular file &#039;\/usr\/bin\/run1&#039;: Permission denied <\/p>\n<p><span style=\"color:#be191c\">\u5931\u8d25\u539f\u56e0&#xff1a;\/usr\/bin\u00a0\u662f\u7cfb\u7edf\u76ee\u5f55&#xff0c;\u666e\u901a\u7528\u6237\u6ca1\u6709\u5199\u5165\u6743\u9650\u3002<\/span><\/p>\n<hr \/>\n<h3 id=\"2.3%20%E8%B6%85%E7%BA%A7%E7%94%A8%E6%88%B7%E6%89%A7%E8%A1%8C%EF%BC%88%E6%88%90%E5%8A%9F%EF%BC%89\">2.3 \u8d85\u7ea7\u7528\u6237\u6267\u884c&#xff08;\u6210\u529f&#xff09;<\/h3>\n<p># \u5207\u6362\u56de root<br \/>\n[qyh&#064;VM-0-2-centos 2026_9_5]$ su<br \/>\nPassword: <\/p>\n<p># \u6267\u884c\u62f7\u8d1d<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# cp run1 \/usr\/bin<\/p>\n<p># \u9a8c\u8bc1\u5b89\u88c5\u6210\u529f<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# run1<br \/>\nhello linux<br \/>\n^C<br \/>\n[root&#064;VM-0-2-centos 2026_9_5]# which run1<br \/>\n\/usr\/bin\/run1 <\/p>\n<hr \/>\n<h2 id=\"3.%20%E4%B8%B4%E6%97%B6%E6%8F%90%E6%9D%83%EF%BC%9Asudo%20%E5%91%BD%E4%BB%A4\">3. \u4e34\u65f6\u63d0\u6743&#xff1a;sudo \u547d\u4ee4<\/h2>\n<h3 id=\"3.1%20%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%20sudo%EF%BC%9F\">3.1 \u4e3a\u4ec0\u4e48\u9700\u8981 sudo&#xff1f;<\/h3>\n<p>\u573a\u666f&#xff1a;\u666e\u901a\u7528\u6237\u5076\u5c14\u9700\u8981\u6267\u884c\u9ad8\u6743\u9650\u64cd\u4f5c&#xff0c;\u4f46\u4e0d\u60f3\u9891\u7e41\u5207\u6362\u7528\u6237\u3002<\/p>\n<p>sudo \u7684\u4f5c\u7528&#xff1a;\u5141\u8bb8\u666e\u901a\u7528\u6237\u4e34\u65f6\u4ee5 root \u6743\u9650\u6267\u884c\u6307\u5b9a\u547d\u4ee4&#xff08;\u6bd4\u5982\u5b89\u88c5\u5220\u9664\u8f6f\u4ef6&#xff09;\u3002<\/p>\n<hr \/>\n<h3 id=\"3.2%20sudo%20%E4%BD%BF%E7%94%A8%E5%89%8D%E6%8F%90\">3.2 sudo \u4f7f\u7528\u524d\u63d0<\/h3>\n<p>[qyh&#064;VM-0-2-centos ~]$ sudo ls<br \/>\n[sudo] password for qyh:<br \/>\nqyh is not in the sudoers file.  This incident will be reported. <\/p>\n<p>\u9519\u8bef\u539f\u56e0&#xff1a;\u7528\u6237\u4e0d\u5728\u00a0sudoers\u00a0\u767d\u540d\u5355\u4e2d\u3002<\/p>\n<p>sudoers \u6587\u4ef6&#xff1a;<\/p>\n<p>[qyh&#064;VM-0-2-centos ~]$ ll \/etc\/sudoers<br \/>\n-r&#8211;r&#8212;&#8211; 1 root root 4363 Jul 30 16:12 \/etc\/sudoers <\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u5c5e\u6027<\/span><span style=\"color:#be191c\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u62e5\u6709\u8005<\/span><\/td>\n<td><span style=\"color:#be191c\">root<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4ec5 root \u53ef\u8bfb\u53ef\u5199<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4f5c\u7528<\/span><\/td>\n<td><span style=\"color:#be191c\">\u7ba1\u7406\u54ea\u4e9b\u7528\u6237\u53ef\u4ee5\u4f7f\u7528 sudo<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7528sudo\u63d0\u6743\u7684\u65f6\u5019&#xff0c;\u9a8c\u8bc1\u7684\u65f6\u5019\u7528\u7684\u4e0d\u662f\u7ba1\u7406\u5458\u7684\u5bc6\u7801&#xff0c;\u800c\u662f\u81ea\u5df1\u666e\u901a\u7528\u6237\u7684\u5bc6\u7801&#xff0c;\u5c31\u662f\u56e0\u4e3a\u8fd9\u4e2asudoers\u7684\u5b58\u5728&#xff0c;sudoers\u76ee\u5f55\u53ea\u80fd\u88abroot\u64cd\u4f5c&#xff0c;\u4e5f\u5c31\u662f\u95f4\u63a5\u8fd8\u662f\u8fdb\u884c\u4e86\u4fdd\u62a4<\/p>\n<hr \/>\n<h3 id=\"3.3%20%E9%85%8D%E7%BD%AE%20sudo%20%E6%9D%83%E9%99%90\">3.3 \u914d\u7f6e sudo \u6743\u9650<\/h3>\n<p>\u5fc5\u987b\u4ee5 root \u8eab\u4efd\u7f16\u8f91&#xff1a;<\/p>\n<p>[root&#064;VM-0-2-centos ~]# vim \/etc\/sudoers<\/p>\n<p># \u6dfb\u52a0\u666e\u901a\u7528\u6237&#xff08;\u683c\u5f0f\u4e0e root \u76f8\u540c&#xff09;&#xff1a;<br \/>\nroot    ALL&#061;(ALL)       ALL<br \/>\nqyh     ALL&#061;(ALL)       ALL <\/p>\n<hr \/>\n<h3 id=\"3.4%20sudo%20%E5%AE%9E%E6%88%98%E6%BC%94%E7%A4%BA\" style=\"background-color:transparent\">3.4 sudo \u5b9e\u6218\u6f14\u793a<\/h3>\n<p># \u666e\u901a\u7528\u6237\u521b\u5efa\u6587\u4ef6<br \/>\n[qyh&#064;VM-0-2-centos ~]$ &gt; nor_1<\/p>\n<p># \u4f7f\u7528 sudo \u521b\u5efa root \u6743\u9650\u6587\u4ef6<br \/>\n[qyh&#064;VM-0-2-centos ~]$ sudo touch root_1<br \/>\n[sudo] password for qyh:    # \u2190 \u8f93\u5165\u666e\u901a\u7528\u6237\u81ea\u5df1\u7684\u5bc6\u7801<\/p>\n<p># \u67e5\u770b\u6587\u4ef6\u5c5e\u6027<br \/>\n[qyh&#064;VM-0-2-centos ~]$ ll<br \/>\ntotal 0<br \/>\n-rw-rw-r&#8211; 1 qyh  qyh  0 Sep  5 15:41 nor_1      # \u2190 \u666e\u901a\u6587\u4ef6<br \/>\n-rw-r&#8211;r&#8211; 1 root root 0 Sep  5 15:41 root_1     # \u2190 root \u521b\u5efa\u7684\u6587\u4ef6<\/p>\n<p># \u666e\u901a\u7528\u6237\u53ef\u4ee5\u4fee\u6539\u81ea\u5df1\u7684\u6587\u4ef6<br \/>\n[qyh&#064;VM-0-2-centos ~]$ echo &#034;wahaha&#034; &gt; nor_1<br \/>\n[qyh&#064;VM-0-2-centos ~]$ cat nor_1<br \/>\nwahaha<\/p>\n<p># \u65e0\u6cd5\u4fee\u6539 root \u7684\u6587\u4ef6<br \/>\n[qyh&#064;VM-0-2-centos ~]$ echo &#034;ye&#034; &gt; root_1<br \/>\n-bash: root_1: Permission denied <\/p>\n<p>&#x1f3e2;\u00a0\u4f01\u4e1a\u5b9e\u8df5&#xff1a;\u65b0\u5458\u5de5\u9700\u8981 sudo \u6743\u9650\u65f6&#xff0c;\u9700\u5411\u7cfb\u7edf\u7ba1\u7406\u5458\u7533\u8bf7&#xff0c;\u7531\u7ba1\u7406\u5458\u5c06\u5176\u52a0\u5165\u00a0sudoers\u00a0\u6587\u4ef6\u3002\u80fd\u88ab sudo \u6388\u6743\u7684\u7528\u6237\u90fd\u662f\u88ab\u4fe1\u4efb\u7684\u3002<\/p>\n<p id=\"\">\n<hr \/>\n<h2 id=\"4.%20%E6%9D%83%E9%99%90%E7%9A%84%E6%9C%AC%E8%B4%A8%E7%90%86%E8%A7%A3\" style=\"background-color:transparent\">4. \u6743\u9650\u7684\u672c\u8d28\u7406\u89e3<\/h2>\n<h3 id=\"4.1%20%E7%8E%B0%E5%AE%9E%E4%B8%96%E7%95%8C%E7%9A%84%E6%9D%83%E9%99%90\">4.1 \u73b0\u5b9e\u4e16\u754c\u7684\u6743\u9650<\/h3>\n<table>\n<tr><span style=\"color:#be191c\">\u573a\u666f<\/span><span style=\"color:#1c7892\">\u6743\u9650\u4f53\u73b0<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u6821\u957f\u529e\u516c\u5ba4<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u6821\u957f\u80fd\u8fdb&#xff0c;\u5b66\u751f\u4e0d\u80fd\u8fdb<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u89c6\u9891\u7f51\u7ad9 VIP<\/span><\/td>\n<td><span style=\"color:#1c7892\">VIP \u80fd\u770b\u9ad8\u6e05&#xff0c;\u666e\u901a\u7528\u6237\u4e0d\u80fd<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u516c\u53f8\u673a\u5bc6\u6587\u4ef6<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u7ba1\u7406\u5c42\u80fd\u770b&#xff0c;\u666e\u901a\u5458\u5de5\u4e0d\u80fd<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6838\u5fc3\u7ed3\u8bba&#xff1a;\u6743\u9650\u7684\u672c\u8d28\u662f\u80fd\u6216\u4e0d\u80fd\u505a\u67d0\u4ef6\u4e8b\u3002<\/p>\n<hr \/>\n<h3 id=\"4.2%20%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%E6%9D%83%E9%99%90%EF%BC%9F\">4.2 \u4e3a\u4ec0\u4e48\u9700\u8981\u6743\u9650&#xff1f;<\/h3>\n<p>\u76ee\u7684&#xff1a;\u63a7\u5236\u7528\u6237\u884c\u4e3a&#xff0c;\u9632\u6b62\u9519\u8bef\u548c\u6df7\u4e71\u3002<\/p>\n<p>\u4e3e\u4f8b&#xff1a;\u7528\u6237 A \u548c\u7528\u6237 B \u5171\u7528\u4e00\u53f0\u673a\u5668&#xff0c;\u5982\u679c\u6ca1\u6709\u6743\u9650\u9694\u79bb&#xff1a;<\/p>\n<ul>\n<li>\u7528\u6237 A \u8f9b\u82e6\u5199\u7684\u4ee3\u7801&#xff0c;\u7528\u6237 B \u53ef\u4ee5\u8f7b\u6613\u5220\u9664<\/li>\n<li>\u7cfb\u7edf\u5173\u952e\u914d\u7f6e\u88ab\u8bef\u6539&#xff0c;\u5bfc\u81f4\u670d\u52a1\u5d29\u6e83<\/li>\n<\/ul>\n<p>&#x1f30d;\u00a0\u793e\u4f1a\u7c7b\u6bd4&#xff1a;\u56fd\u5bb6\u7684\u6cd5\u5f8b\u672c\u8d28\u4e0a\u4e5f\u662f\u4e00\u79cd&#034;\u6743\u9650&#034;&#xff0c;\u901a\u8fc7\u89c4\u5219\u7ea6\u675f\u884c\u4e3a&#xff0c;\u7ef4\u62a4\u793e\u4f1a\u79e9\u5e8f\u3002<\/p>\n<hr \/>\n<h3 id=\"4.3%20%E6%9D%83%E9%99%90%E7%9A%84%E7%BB%84%E6%88%90%E5%85%AC%E5%BC%8F\">4.3 \u6743\u9650\u7684\u7ec4\u6210\u516c\u5f0f<\/h3>\n<p>\u6743\u9650 &#061; \u89d2\u8272&#xff08;\u4eba&#xff09; &#043; \u76ee\u6807\u5c5e\u6027&#xff08;\u4e8b\u7269\u7279\u6027&#xff09; <\/p>\n<p>\u4e24\u4e2a\u5fc5\u8981\u6761\u4ef6&#xff1a;<\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u6761\u4ef6<\/span><span style=\"color:#511b78\">\u8bf4\u660e<\/span><span style=\"color:#511b78\">\u793a\u4f8b<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u89d2\u8272\u5339\u914d<\/span><\/td>\n<td><span style=\"color:#511b78\">\u4f60\u662f\u8c01\u4e0d\u91cd\u8981&#xff0c;\u626e\u6f14\u4ec0\u4e48\u89d2\u8272\u624d\u91cd\u8981<\/span><\/td>\n<td><span style=\"color:#511b78\">\u6821\u957f\u80fd\u8fdb\u529e\u516c\u5ba4\u662f\u56e0\u4e3a&#034;\u6821\u957f&#034;\u89d2\u8272&#xff0c;\u4e0d\u662f\u56e0\u4e3a\u6821\u957f\u540d\u662f&#034;\u5f20\u4e09&#034;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u76ee\u6807\u5177\u5907\u5c5e\u6027<\/span><\/td>\n<td><span style=\"color:#511b78\">\u76ee\u6807\u4e8b\u7269\u5fc5\u987b\u6709\u5bf9\u5e94\u7684\u5c5e\u6027<\/span><\/td>\n<td><span style=\"color:#511b78\">\u5373\u4f7f LeetCode \u6700\u9ad8\u4f1a\u5458&#xff0c;\u4e5f\u65e0\u6cd5\u5728\u4e0a\u9762\u770b\u7535\u5f71&#xff08;\u5e73\u53f0\u6ca1\u6709\u89c6\u9891\u5c5e\u6027&#xff09;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"237\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221753-6a9de691b0c71.png\" width=\"1093\" \/><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"5.%20Linux%20%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%E4%BD%93%E7%B3%BB\">5. Linux \u6587\u4ef6\u6743\u9650\u4f53\u7cfb<\/h2>\n<p>\u56e0\u4e3a\u6211\u4eec\u66fe\u7ecf\u5b66\u8fc7Linux\u4e0b\u4e00\u5207\u7686\u6587\u4ef6&#xff0c;\u6240\u4ee5\u6211\u4eec\u8981\u5b66\u4e60Linux\u7684\u6743\u9650\u6211\u4eec\u9762\u5bf9\u7684\u5bf9\u8c61\u90fd\u662f\u6587\u4ef6<\/p>\n<h3 id=\"5.1%20%E4%B8%89%E7%A7%8D%E8%A7%92%E8%89%B2\">5.1 \u4e09\u79cd\u89d2\u8272<\/h3>\n<p>Linux \u4e3a\u6bcf\u4e2a\u6587\u4ef6\u5b9a\u4e49\u4e86\u4e09\u79cd\u89d2\u8272&#xff1a;<\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u89d2\u8272<\/span><span style=\"color:#1c7892\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u62e5\u6709\u8005 (Owner)<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u6587\u4ef6\u7684\u521b\u5efa\u8005&#xff0c;\u9ed8\u8ba4\u62e5\u6709\u6700\u9ad8\u6743\u9650<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6240\u5c5e\u7ec4 (Group)<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4e0e\u62e5\u6709\u8005\u540c\u7ec4\u7684\u7528\u6237\u96c6\u5408<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u5176\u4ed6\u7528\u6237 (Other)<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u65e2\u4e0d\u662f\u62e5\u6709\u8005&#xff0c;\u4e5f\u4e0d\u5c5e\u4e8e\u6240\u5c5e\u7ec4\u7684\u7528\u6237<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>-rw-rw-r&#8211;  1  qyh   qyh    7  Sep 5 15:41  nor_1<br \/>\n               \u2502     \u2502<br \/>\n               \u2502     \u2514\u2500\u2500 \u6240\u5c5e\u7ec4<br \/>\n               \u2514\u2500\u2500 \u62e5\u6709\u8005<\/p>\n<p>\u8fd9\u5c31\u548c\u6211\u4eec\u4e0a\u9762\u5f20\u4e09\u4e0e\u6821\u957f\u7684\u5173\u7cfb\u4e00\u6837&#xff0c;\u62e5\u6709\u8005&#xff0c;\u6240\u5c5e\u7ec4&#xff0c;other\u8fd9\u4e9b\u90fd\u662f\u89d2\u8272&#xff0c;\u800croot,qyh\u8fd9\u4e9b\u5bf9\u5e94\u7684\u5c31\u662f\u5177\u4f53\u7684\u4eba<\/p>\n<p>\u6240\u4ee5\u4e00\u4e2a\u6587\u4ef6&#xff0c;\u4ed6\u7684\u62e5\u6709\u8005\u548c\u6240\u5c5e\u7ec4\u901a\u5e38\u662f\u6709\u5bf9\u5e94\u7684\u89d2\u8272\u7684&#xff0c;\u800c\u8fd9\u6837\u7684\u89d2\u8272\u901a\u5e38\u662f\u8981\u7531\u5bf9\u5e94\u7684\u4eba\u6765\u626e\u6f14\u7684&#xff0c;\u6240\u4ee5\u89d2\u8272\u548c\u4eba\u4fe9\u8005\u4e0d\u4f46\u4e0d\u51b2\u7a81&#xff0c;\u800c\u4e14\u662f\u4e92\u8865\u7684<\/p>\n<p>\u4e3a\u4ec0\u4e48\u9700\u8981&#034;\u6240\u5c5e\u7ec4&#034;&#xff1f;<\/p>\n<p>\u573a\u666f&#xff1a;\u516c\u53f8\u5185\u90e8\u91c7\u7528&#034;\u8d5b\u9a6c\u5236\u5ea6&#034;&#xff0c;A \u7ec4\u548c B \u7ec4\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u5f00\u53d1\u540c\u7c7b\u4ea7\u54c1\u3002\u5f20\u4e09\u5728 A \u7ec4\u76ee\u5f55\u4e0b\u5199\u4ee3\u7801&#xff0c;\u9700\u8981\u5411 A \u7ec4\u6210\u5458\u5c55\u793a&#xff0c;\u4f46\u4e0d\u60f3\u8ba9 B \u7ec4\u770b\u5230\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5c06 A \u7ec4\u6240\u6709\u7528\u6237\u52a0\u5165\u6587\u4ef6\u7684&#034;\u6240\u5c5e\u7ec4&#034;&#xff0c;\u5f00\u653e\u6240\u5c5e\u7ec4\u6743\u9650\u3002\u8fd9\u6837\u65e2\u65b9\u4fbf\u7ec4\u5185\u534f\u4f5c&#xff0c;\u53c8\u4fdd\u62a4\u4e86\u4ee3\u7801\u4e0d\u88ab\u7ade\u4e89\u5bf9\u624b&#xff08;B \u7ec4&#xff09;\u83b7\u53d6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"726\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221753-6a9de691d7434.png\" width=\"1375\" \/><\/p>\n<p>\u6240\u4ee5\u6709\u6240\u5c5e\u7ec4\u7684\u6839\u672c\u539f\u56e0\u5c31\u662f\u4e3a\u4e86\u8fdb\u884c\u66f4\u7cbe\u7ec6\u7684\u6743\u9650\u7ba1\u7406&#xff0c;\u800c\u4e3a\u4e86\u8fdb\u884c\u66f4\u7cbe\u7ec6\u5316\u7684\u6743\u9650\u7ba1\u7406\u5c31\u9700\u8981\u6709\u66f4\u7cbe\u7ec6\u5316\u7684\u8eab\u4efd\u89d2\u8272<\/p>\n<p>\u4e3a\u4ec0\u4e48 Other \u4e0d\u9700\u8981\u8bb0\u5f55&#xff1f;<\/p>\n<ul>\n<li>\u62e5\u6709\u8005\u548c\u6240\u5c5e\u7ec4\u9700\u8981\u660e\u786e\u6307\u5b9a\u5177\u4f53\u7684\u4eba\u6216\u7ec4<\/li>\n<li>Other \u662f&#034;\u515c\u5e95&#034;\u89d2\u8272&#xff1a;\u53ea\u8981\u4e0d\u662f\u62e5\u6709\u8005&#xff0c;\u4e5f\u4e0d\u5c5e\u4e8e\u6240\u5c5e\u7ec4&#xff0c;\u5c31\u662f Other<\/li>\n<li>Other \u53ef\u80fd\u5305\u542b\u7cfb\u7edf\u4e0a\u6240\u6709\u5176\u4ed6\u7528\u6237&#xff0c;\u6570\u91cf\u4e0d\u56fa\u5b9a&#xff0c;\u65e0\u9700\u9010\u4e00\u8bb0\u5f55<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"5.2%20%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%E5%B1%9E%E6%80%A7\">5.2 \u6587\u4ef6\u6743\u9650\u5c5e\u6027<\/h3>\n<p>Linux \u4e2d\u6587\u4ef6\u4e0e\u6743\u9650\u76f8\u5173\u7684\u5c5e\u6027\u6709\u4e09\u79cd&#xff1a;<\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u5c5e\u6027<\/span><span style=\"color:#be191c\">\u7b26\u53f7<\/span><span style=\"color:#be191c\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u8bfb\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#be191c\">r<\/span><\/td>\n<td><span style=\"color:#be191c\">\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9 \/ \u5217\u51fa\u76ee\u5f55\u5185\u5bb9<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u5199\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#be191c\">w<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4fee\u6539\u6587\u4ef6\u5185\u5bb9 \/ \u5728\u76ee\u5f55\u4e2d\u521b\u5efa\u5220\u9664\u6587\u4ef6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6267\u884c\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#be191c\">x<\/span><\/td>\n<td><span style=\"color:#be191c\">\u6267\u884c\u6587\u4ef6&#xff08;\u7a0b\u5e8f\/\u811a\u672c&#xff09;\/ \u8fdb\u5165\u76ee\u5f55<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 id=\"5.3%20%E8%A7%A3%E8%AF%BB%20ll%20%E5%91%BD%E4%BB%A4%E8%BE%93%E5%87%BA\">5.3 \u89e3\u8bfb ll \u547d\u4ee4\u8f93\u51fa<\/h3>\n<p>[qyh&#064;VM-0-2-centos ~]$ ll<br \/>\ntotal 4<br \/>\n-rw-rw-r&#8211; 1 qyh  qyh  7 Sep  5 15:41 nor_1<br \/>\n-rw-r&#8211;r&#8211; 1 root root 0 Sep  5 15:41 root_1 <\/p>\n<p>\u5b57\u6bb5\u89e3\u6790&#xff1a;<\/p>\n<p>-rw-rw-r&#8211;  1  qyh   qyh    7  Sep 5 15:41  nor_1<br \/>\n\u2502\u2502  \u2502  \u2502    \u2502   \u2502     \u2502     \u2502      \u2502         \u2502<br \/>\n\u2502\u2502  \u2502  \u2502    \u2502   \u2502     \u2502     \u2502      \u2502         \u2514\u2500\u2500 \u6587\u4ef6\u540d<br \/>\n\u2502\u2502  \u2502  \u2502    \u2502   \u2502     \u2502     \u2502      \u2514\u2500\u2500 \u4fee\u6539\u65f6\u95f4<br \/>\n\u2502\u2502  \u2502  \u2502    \u2502   \u2502     \u2502     \u2514\u2500\u2500 \u6587\u4ef6\u5927\u5c0f&#xff08;\u5b57\u8282&#xff09;<br \/>\n\u2502\u2502  \u2502  \u2502    \u2502   \u2502     \u2514\u2500\u2500 \u6240\u5c5e\u7ec4<br \/>\n\u2502\u2502  \u2502  \u2502    \u2502   \u2514\u2500\u2500 \u62e5\u6709\u8005<br \/>\n\u2502\u2502  \u2502  \u2502    \u2514\u2500\u2500 \u786c\u94fe\u63a5\u6570<br \/>\n\u2502\u2502  \u2502  \u2514\u2500\u2500 \u5176\u4ed6\u7528\u6237\u6743\u9650<br \/>\n\u2502\u2502  \u2514\u2500\u2500 \u6240\u5c5e\u7ec4\u6743\u9650<br \/>\n\u2502\u2514\u2500\u2500 \u62e5\u6709\u8005\u6743\u9650<br \/>\n\u2514\u2500\u2500\u6587\u4ef6\u7c7b\u578b <\/p>\n<p>\u6743\u9650\u4f4d\u8be6\u89e3&#xff08;\u4ee5\u00a0-rw-rw-r&#8211;\u00a0\u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<p>  &#8211;      rw-      rw-      r&#8211;<br \/>\n\u6587\u4ef6\u7c7b\u578b  \u62e5\u6709\u8005    \u6240\u5c5e\u7ec4    \u5176\u4ed6\u7528\u6237<br \/>\n         (user)   (group)  (other) <\/p>\n<table>\n<tr><span style=\"color:#511b78\">\u4f4d\u7f6e<\/span><span style=\"color:#511b78\">\u5b57\u7b26<\/span><span style=\"color:#511b78\">\u542b\u4e49<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#511b78\">\u7b2c 1 \u4f4d<\/span><\/td>\n<td><span style=\"color:#511b78\">&#8211;<\/span><\/td>\n<td><span style=\"color:#511b78\">\u6587\u4ef6\u7c7b\u578b&#xff08;-\u00a0\u666e\u901a\u6587\u4ef6&#xff0c;d\u00a0\u76ee\u5f55&#xff0c;l\u00a0\u94fe\u63a5&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#511b78\">\u7b2c 2-4 \u4f4d<\/span><\/td>\n<td><span style=\"color:#511b78\">rw-<\/span><\/td>\n<td><span style=\"color:#511b78\">\u62e5\u6709\u8005\u6743\u9650&#xff1a;\u8bfb\u3001\u5199\u3001\u4e0d\u53ef\u6267\u884c<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#511b78\">\u7b2c 5-7 \u4f4d<\/span><\/td>\n<td><span style=\"color:#511b78\">rw-<\/span><\/td>\n<td><span style=\"color:#511b78\">\u6240\u5c5e\u7ec4\u6743\u9650&#xff1a;\u8bfb\u3001\u5199\u3001\u4e0d\u53ef\u6267\u884c<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#511b78\">\u7b2c 8-10 \u4f4d<\/span><\/td>\n<td><span style=\"color:#511b78\">r&#8211;<\/span><\/td>\n<td><span style=\"color:#511b78\">\u5176\u4ed6\u7528\u6237\u6743\u9650&#xff1a;\u53ea\u8bfb<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6743\u9650\u4f4d\u89c4\u5219&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u7ec4\u56fa\u5b9a 3 \u4e2a\u4f4d\u7f6e&#xff0c;\u987a\u5e8f\u4e0d\u53ef\u53d8&#xff1a;r&#xff08;\u8bfb&#xff09;\u3001w&#xff08;\u5199&#xff09;\u3001x&#xff08;\u6267\u884c&#xff09;<\/li>\n<li>\u6709\u6743\u9650\u663e\u793a\u5bf9\u5e94\u5b57\u6bcd&#xff0c;\u65e0\u6743\u9650\u663e\u793a\u00a0&#8211;<\/li>\n<li>\u987a\u5e8f\u4e0d\u80fd\u98a0\u5012&#xff0c;\u5fc5\u987b\u6309\u00a0rwx\u00a0\u6392\u5217<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"481\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221754-6a9de692596a0.png\" width=\"490\" \/><\/p>\n<hr \/>\n<h3 id=\"5.4%20%E6%9D%83%E9%99%90%E9%AA%8C%E8%AF%81%E5%AE%9E%E4%BE%8B\">5.4 \u6743\u9650\u9a8c\u8bc1\u5b9e\u4f8b<\/h3>\n<p># nor_1 \u6587\u4ef6\u6743\u9650&#xff1a;-rw-rw-r&#8211;<br \/>\n# \u62e5\u6709\u8005(qyh)&#xff1a;\u8bfb\u3001\u5199 \u2713<br \/>\n# \u6240\u5c5e\u7ec4(qyh)&#xff1a;\u8bfb\u3001\u5199 \u2713<br \/>\n# \u5176\u4ed6\u7528\u6237&#xff1a;\u8bfb \u2713&#xff0c;\u5199 \u2717<\/p>\n<p>[qyh&#064;VM-0-2-centos ~]$ echo &#034;test&#034; &gt; nor_1    # \u62e5\u6709\u8005\u53ef\u4ee5\u5199 \u2713<br \/>\n[qyh&#064;VM-0-2-centos ~]$ cat nor_1              # \u6240\u6709\u4eba\u90fd\u53ef\u4ee5\u8bfb \u2713<\/p>\n<p># root_1 \u6587\u4ef6\u6743\u9650&#xff1a;-rw-r&#8211;r&#8211;<br \/>\n# \u62e5\u6709\u8005(root)&#xff1a;\u8bfb\u3001\u5199<br \/>\n# \u5176\u4ed6\u7528\u6237&#xff1a;\u53ea\u8bfb<\/p>\n<p>[qyh&#064;VM-0-2-centos ~]$ echo &#034;test&#034; &gt; root_1   # \u5176\u4ed6\u7528\u6237\u4e0d\u80fd\u5199 \u2717<br \/>\n-bash: root_1: Permission denied <\/p>\n<hr \/>\n<h2 id=\"6.%20%E7%90%86%E8%AE%BA%E9%93%BA%E5%9E%AB%E5%AE%8C%E6%88%90\" style=\"background-color:transparent\">6. \u7406\u8bba\u94fa\u57ab\u5b8c\u6210<\/h2>\n<h3 id=\"6.1%20%E8%A7%92%E8%89%B2%E4%B8%8E%E5%B1%9E%E6%80%A7%E7%9A%84%E7%BB%93%E5%90%88%E8%A1%A8%E8%BF%B0\">6.1 \u89d2\u8272\u4e0e\u5c5e\u6027\u7684\u7ed3\u5408\u8868\u8ff0<\/h3>\n<p>\u81f3\u6b64&#xff0c;\u6211\u4eec\u5df2\u7ecf\u638c\u63e1\u4e86 Linux \u6743\u9650\u7684\u4e24\u4e2a\u6838\u5fc3\u8981\u7d20&#xff1a;<\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u8981\u7d20<\/span><span style=\"color:#be191c\">\u5185\u5bb9<\/span><span style=\"color:#be191c\">\u8868\u793a\u65b9\u5f0f<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u89d2\u8272<\/span><\/td>\n<td><span style=\"color:#be191c\">\u62e5\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u3001Other<\/span><\/td>\n<td><span style=\"color:#be191c\">\u6587\u4ef6\u5f52\u5c5e\u4fe1\u606f&#xff08;\u7b2c3\u30014\u5217&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u5c5e\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u8bfb(r)\u3001\u5199(w)\u3001\u6267\u884c(x)<\/span><\/td>\n<td><span style=\"color:#be191c\">\u6743\u9650\u4f4d\u5b57\u7b26\u4e32&#xff08;\u7b2c1\u5217&#xff09;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b8c\u6574\u7684\u6743\u9650\u8868\u8ff0\u65b9\u5f0f&#xff1a;<\/p>\n<p><span style=\"color:#be191c\">\u63cf\u8ff0\u4e00\u4e2a\u6587\u4ef6\u7684\u6743\u9650\u65f6&#xff0c;\u5fc5\u987b\u5c06\u89d2\u8272\u548c\u76ee\u6807\u5c5e\u6027\u7ed3\u5408\u8d77\u6765\u8868\u8ff0\u3002<\/span><\/p>\n<p>\u793a\u4f8b&#xff1a;-rw-rw-r&#8211; 1 qyh qyh 7 Sep 5 15:41 nor_1<\/p>\n<table>\n<tr>\u8868\u8ff0\u7ef4\u5ea6\u5177\u4f53\u5185\u5bb9<\/tr>\n<tbody>\n<tr>\n<td>\u62e5\u6709\u8005\u6743\u9650<\/td>\n<td>qyh\u00a0\u5177\u5907\u00a0\u8bfb\u3001\u5199\u00a0\u6743\u9650&#xff08;rw-&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6240\u5c5e\u7ec4\u6743\u9650<\/td>\n<td>qyh\u00a0\u7ec4\u5177\u5907\u00a0\u8bfb\u3001\u5199\u00a0\u6743\u9650&#xff08;rw-&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5176\u4ed6\u7528\u6237\u6743\u9650<\/td>\n<td>\u5176\u4ed6\u7528\u6237\u4ec5\u5177\u5907\u00a0\u8bfb\u00a0\u6743\u9650&#xff08;r&#8211;&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u4e0d\u5177\u5907\u7684\u6743\u9650<\/td>\n<td>\u6240\u6709\u89d2\u8272\u90fd\u4e0d\u5177\u5907\u00a0\u6267\u884c\u00a0\u6743\u9650&#xff08;-&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9519\u8bef\u8868\u8ff0&#xff1a;&#034;\u8fd9\u4e2a\u6587\u4ef6\u6743\u9650\u662f rw-&#034;\u00a0\u6b63\u786e\u8868\u8ff0&#xff1a;&#034;\u8fd9\u4e2a\u6587\u4ef6\u7684\u62e5\u6709\u8005\u5177\u5907\u8bfb\u3001\u5199\u6743\u9650&#xff0c;\u6240\u5c5e\u7ec4\u5177\u5907\u8bfb\u3001\u5199\u6743\u9650&#xff0c;\u5176\u4ed6\u7528\u6237\u5177\u5907\u8bfb\u6743\u9650&#034;<\/p>\n<p><span style=\"color:#511b78\">&#x1f4a1;\u00a0\u5173\u952e\u8ba4\u77e5&#xff1a;\u5355\u72ec\u7684\u00a0rw-\u00a0\u6ca1\u6709\u4efb\u4f55\u610f\u4e49&#xff0c;\u5fc5\u987b\u660e\u786e&#034;\u8c01&#034;\u62e5\u6709\u8fd9\u4e2a\u6743\u9650\u3002\u89d2\u8272\u548c\u5c5e\u6027\u7f3a\u4e00\u4e0d\u53ef&#xff0c;\u4e8c\u8005\u7ed3\u5408\u624d\u80fd\u6784\u6210\u5b8c\u6574\u7684\u6743\u9650\u6982\u5ff5\u3002<\/span><\/p>\n<hr \/>\n<h3 id=\"6.2%20%E7%90%86%E8%AE%BA%E9%98%B6%E6%AE%B5%E6%80%BB%E7%BB%93\" style=\"background-color:transparent\">6.2 \u7406\u8bba\u9636\u6bb5\u603b\u7ed3<\/h3>\n<table>\n<tr><span style=\"color:#be191c\">\u6a21\u5757<\/span><span style=\"color:#be191c\">\u6838\u5fc3\u5185\u5bb9<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u7528\u6237\u4f53\u7cfb<\/span><\/td>\n<td><span style=\"color:#be191c\">root vs \u666e\u901a\u7528\u6237&#xff0c;su\/su -\/sudo\u00a0\u63d0\u6743\u673a\u5236<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6743\u9650\u672c\u8d28<\/span><\/td>\n<td><span style=\"color:#be191c\">\u6743\u9650 &#061; \u89d2\u8272 &#043; \u76ee\u6807\u5c5e\u6027<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4e09\u79cd\u89d2\u8272<\/span><\/td>\n<td><span style=\"color:#be191c\">\u62e5\u6709\u8005&#xff08;Owner&#xff09;\u3001\u6240\u5c5e\u7ec4&#xff08;Group&#xff09;\u3001\u5176\u4ed6\u7528\u6237&#xff08;Other&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4e09\u79cd\u5c5e\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u8bfb&#xff08;r&#xff09;\u3001\u5199&#xff08;w&#xff09;\u3001\u6267\u884c&#xff08;x&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6743\u9650\u8868\u793a<\/span><\/td>\n<td><span style=\"color:#be191c\">ll\u00a0\u547d\u4ee4\u7684 10 \u4f4d\u6743\u9650\u5b57\u7b26\u4e32\u89e3\u8bfb<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u5b8c\u6574\u8868\u8ff0<\/span><\/td>\n<td><span style=\"color:#be191c\">\u89d2\u8272 &#043; \u5c5e\u6027\u7684\u7ed3\u5408\u63cf\u8ff0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 id=\"7.%20%E4%BF%AE%E6%94%B9%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90%EF%BC%9Achmod\" style=\"background-color:transparent\">7. \u4fee\u6539\u6587\u4ef6\u6743\u9650&#xff1a;chmod<\/h2>\n<h3 id=\"7.1%20%E5%91%BD%E4%BB%A4%E5%9F%BA%E7%A1%80\">7.1 \u547d\u4ee4\u57fa\u7840<\/h3>\n<p>\u6743\u9650\u4fee\u6539\u7684\u672c\u8d28&#xff1a;\u56f4\u7ed5&#034;\u89d2\u8272&#034;\u548c&#034;\u76ee\u6807\u5c5e\u6027&#034;\u4e24\u4e2a\u7ef4\u5ea6\u5c55\u5f00\u3002<\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u4fee\u6539\u5bf9\u8c61<\/span><span style=\"color:#be191c\">\u547d\u4ee4<\/span><span style=\"color:#be191c\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u76ee\u6807\u5c5e\u6027&#xff08;\u6743\u9650\u4f4d&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">chmod<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4fee\u6539\u8bfb\/\u5199\/\u6267\u884c\u6743\u9650<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u89d2\u8272&#xff08;\u62e5\u6709\u8005&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">chown<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4fee\u6539\u6587\u4ef6\u62e5\u6709\u8005<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u89d2\u8272&#xff08;\u6240\u5c5e\u7ec4&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">chgrp<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4fee\u6539\u6587\u4ef6\u6240\u5c5e\u7ec4<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 id=\"7.2%20chmod%20%E5%91%BD%E4%BB%A4%E8%AF%A6%E8%A7%A3\">7.2 chmod \u547d\u4ee4\u8be6\u89e3<\/h3>\n<p>\u529f\u80fd&#xff1a;\u8bbe\u7f6e\u6587\u4ef6\u7684\u8bbf\u95ee\u6743\u9650<\/p>\n<p>\u683c\u5f0f&#xff1a;<span style=\"color:#1c7892\">chmod [\u53c2\u6570] \u6743\u9650 \u6587\u4ef6\u540d<\/span><\/p>\n<p>\u5e38\u7528\u9009\u9879&#xff1a;<\/p>\n<ul>\n<li>-R&#xff1a;\u9012\u5f52\u4fee\u6539\u76ee\u5f55\u53ca\u5176\u5b50\u6587\u4ef6\u7684\u6743\u9650<\/li>\n<\/ul>\n<p>\u26a0\ufe0f\u00a0\u91cd\u8981&#xff1a;<span style=\"color:#be191c\">\u53ea\u6709\u6587\u4ef6\u7684\u62e5\u6709\u8005\u548c root \u624d\u80fd\u4fee\u6539\u6587\u4ef6\u6743\u9650\u3002<\/span><\/p>\n<p>\u6743\u9650\u503c\u683c\u5f0f\u4e00&#xff1a;\u7b26\u53f7\u6a21\u5f0f<\/p>\n<table>\n<tr>\u64cd\u4f5c\u7b26\u542b\u4e49\u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>&#043;<\/td>\n<td>\u589e\u52a0\u6743\u9650<\/td>\n<td>chmod u&#043;w file<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>\u53d6\u6d88\u6743\u9650<\/td>\n<td>chmod o-x file<\/td>\n<\/tr>\n<tr>\n<td>&#061;<\/td>\n<td>\u8d4b\u4e88\u6307\u5b9a\u6743\u9650<\/td>\n<td>chmod a&#061;r file<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7528\u6237\u7b26\u53f7&#xff1a;<\/p>\n<table>\n<tr>\u7b26\u53f7\u4ee3\u8868\u89d2\u8272<\/tr>\n<tbody>\n<tr>\n<td>u<\/td>\n<td>\u62e5\u6709\u8005&#xff08;user&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>g<\/td>\n<td>\u6240\u5c5e\u7ec4&#xff08;group&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>o<\/td>\n<td>\u5176\u4ed6\u7528\u6237&#xff08;other&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>a<\/td>\n<td>\u6240\u6709\u7528\u6237&#xff08;all &#061; u&#043;g&#043;o&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6743\u9650\u503c\u683c\u5f0f\u4e8c&#xff1a;\u516b\u8fdb\u5236\u6570\u5b57<\/p>\n<table>\n<tr>\u6570\u5b57\u4e8c\u8fdb\u5236\u6743\u9650<\/tr>\n<tbody>\n<tr>\n<td>7<\/td>\n<td>111<\/td>\n<td>rwx<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>110<\/td>\n<td>rw-<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>101<\/td>\n<td>r-x<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>100<\/td>\n<td>r&#8211;<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>011<\/td>\n<td>-wx<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>010<\/td>\n<td>-w-<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>001<\/td>\n<td>&#8211;x<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>000<\/td>\n<td>&#8212;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 id=\"7.3%20%E7%AC%A6%E5%8F%B7%E6%A8%A1%E5%BC%8F%E5%AE%9E%E6%88%98\">7.3 \u7b26\u53f7\u6a21\u5f0f\u5b9e\u6218<\/h3>\n<p># \u67e5\u770b\u521d\u59cb\u6743\u9650<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\ntotal 24<br \/>\n-rw-rw-r&#8211; 1 qyh qyh 18763 Sep  5 21:30 Linux sysprog.txt<br \/>\n-rw-rw-r&#8211; 1 qyh qyh     7 Sep  5 21:34 nor_1<\/p>\n<p># \u5206\u6b65\u4fee\u6539\u6743\u9650<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ chmod o-r nor_1    # \u53bb\u6389\u5176\u4ed6\u7528\u6237\u7684\u8bfb\u6743\u9650<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ chmod u&#043;x nor_1    # \u7ed9\u62e5\u6709\u8005\u6dfb\u52a0\u6267\u884c\u6743\u9650<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ chmod g&#061;rx nor_1   # \u8bbe\u7f6e\u6240\u5c5e\u7ec4\u4e3a\u8bfb&#043;\u6267\u884c<\/p>\n<p># \u67e5\u770b\u4fee\u6539\u7ed3\u679c<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\ntotal 24<br \/>\n-rw-rw-r&#8211; 1 qyh qyh 18763 Sep  5 21:30 Linux sysprog.txt<br \/>\n-rwxr-x&#8212; 1 qyh qyh     7 Sep  5 21:34 nor_1 <\/p>\n<p>\u6279\u91cf\u4fee\u6539\u591a\u4e2a\u89d2\u8272&#xff1a;<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ chmod u-x,g&#043;w,o&#043;r nor_1<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\ntotal 24<br \/>\n-rw-rw-r&#8211; 1 qyh qyh 18763 Sep  5 21:30 Linux sysprog.txt<br \/>\n-rw-rwxr&#8211; 1 qyh qyh     7 Sep  5 21:34 nor_1 <\/p>\n<hr \/>\n<h3 id=\"7.4%20%E5%85%AB%E8%BF%9B%E5%88%B6%E6%95%B0%E5%AD%97%E6%A8%A1%E5%BC%8F\">7.4 \u516b\u8fdb\u5236\u6570\u5b57\u6a21\u5f0f<\/h3>\n<p>\u539f\u7406&#xff1a;<span style=\"color:#fe2c24\">\u5c06\u4e09\u7ec4\u00a0rwx\u00a0\u89c6\u4e3a\u4e09\u4f4d\u4e8c\u8fdb\u5236\u6570&#xff0c;\u8f6c\u6362\u4e3a\u516b\u8fdb\u5236\u3002<\/span><\/p>\n<p>rw-rw-r&#8211;  \u2192  110 110 100  \u2192  6 6 4 <\/p>\n<p>\u5b9e\u6218&#xff1a;<\/p>\n<p># \u8bbe\u7f6e\u6743\u9650\u4e3a r&#8211;r&#8211;r&#8211;&#xff08;444&#xff09;<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ chmod 444 nor_1<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\ntotal 24<br \/>\n-rw-rw-r&#8211; 1 qyh qyh 18763 Sep  5 21:30 Linux sysprog.txt<br \/>\n-r&#8211;r&#8211;r&#8211; 1 qyh qyh     9 Sep  6 13:34 nor_1 <\/p>\n<p>&#x1f4a1;\u00a0\u5bf9\u6bd4&#xff1a;<span style=\"color:#be191c\">chmod 444 file\u00a0\u6bd4\u00a0chmod a&#061;r file\u00a0\u66f4\u7b80\u6d01&#xff0c;\u9002\u5408\u6279\u91cf\u8bbe\u7f6e\u3002<\/span><\/p>\n<hr \/>\n<h3 id=\"7.5%20%E6%9D%83%E9%99%90%E9%AA%8C%E8%AF%81%E4%B8%8E%E5%85%B3%E9%94%AE%E8%AE%A4%E7%9F%A5\">7.5 \u6743\u9650\u9a8c\u8bc1\u4e0e\u5173\u952e\u8ba4\u77e5<\/h3>\n<h4 id=\"1.%20%E6%9D%83%E9%99%90%E6%8B%92%E7%BB%9D%E5%9C%BA%E6%99%AF%EF%BC%9A\">1. \u6743\u9650\u62d2\u7edd\u573a\u666f&#xff1a;<\/h4>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll nor_1<br \/>\n-rwxr&#8211;r&#8211; 1 qyh qyh 9 Sep  6 13:34 nor_1<\/p>\n<p># \u62e5\u6709\u8005\u53ef\u8bfb\u53ef\u5199\u53ef\u6267\u884c<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ echo &#034;in nor_1&#034; &gt; nor_1   # \u2713 \u5199\u6210\u529f<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ cat nor_1                  # \u2713 \u8bfb\u6210\u529f<\/p>\n<p># \u5c1d\u8bd5\u6267\u884c<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ .\/nor_1<br \/>\n-bash: .\/nor_1: Permission denied                              # \u2717 \u6267\u884c\u5931\u8d25 <\/p>\n<h4 id=\"2.%20%E5%8E%BB%E6%8E%89%E8%AF%BB%E6%9D%83%E9%99%90%E5%90%8E%EF%BC%9A\">2. \u53bb\u6389\u8bfb\u6743\u9650\u540e&#xff1a;<\/h4>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ chmod u-r nor_1<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\n&#8211;w-r&#8211;r&#8211; 1 qyh qyh 9 Sep  6 13:34 nor_1<\/p>\n<p># \u65e0\u6cd5\u8bfb\u53d6<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ cat nor_1<br \/>\ncat: nor_1: Permission denied                                  # \u2717 \u8bfb\u88ab\u62d2\u7edd <\/p>\n<h4 id=\"3.%20%E8%A7%92%E8%89%B2%E5%8C%B9%E9%85%8D%E4%BC%98%E5%85%88%E7%BA%A7%EF%BC%9A\">3. \u89d2\u8272\u5339\u914d\u4f18\u5148\u7ea7&#xff1a;<\/h4>\n<p>&#x1f511;<span style=\"color:#be191c\">\u00a0\u6838\u5fc3\u89c4\u5219&#xff1a;\u7cfb\u7edf\u4ece\u524d\u5f80\u540e\u5339\u914d\u89d2\u8272&#xff0c;\u4e00\u65e6\u5339\u914d\u6210\u529f\u5373\u505c\u6b62&#xff0c;\u4e0d\u518d\u7ee7\u7eed\u68c0\u67e5\u540e\u7eed\u89d2\u8272\u3002<\/span><\/p>\n<p># qyh \u65e2\u662f\u62e5\u6709\u8005&#xff0c;\u53c8\u5728\u6240\u5c5e\u7ec4\u4e2d<br \/>\n# \u4f46\u5339\u914d\u5230&#034;\u62e5\u6709\u8005&#034;\u540e\u5373\u505c\u6b62&#xff0c;\u4ee5\u62e5\u6709\u8005\u6743\u9650\u4e3a\u51c6<br \/>\n# \u5373\u4f7f\u6240\u5c5e\u7ec4\u6709\u8bfb\u6743\u9650&#xff0c;\u62e5\u6709\u8005\u6ca1\u6709\u8bfb\u6743\u9650&#xff0c;qyh \u4e5f\u65e0\u6cd5\u8bfb\u53d6 <\/p>\n<h4 id=\"4.%20root%20%E7%9A%84%E7%89%B9%E6%9D%83%EF%BC%9A\">4. root \u7684\u7279\u6743&#xff1a;<\/h4>\n<p>&#x1f451;\u00a0<span style=\"color:#be191c\">root \u4e0d\u53d7\u4efb\u4f55\u6743\u9650\u7ea6\u675f&#xff0c;\u6240\u6709\u6743\u9650\u89c4\u5219\u4ec5\u5bf9\u666e\u901a\u7528\u6237\u751f\u6548\u3002<\/span><\/p>\n<h4 id=\"5.%20%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%9D%83%E9%99%90%E7%9A%84%E6%9C%AC%E8%B4%A8%EF%BC%9A\">5. \u53ef\u6267\u884c\u6743\u9650\u7684\u672c\u8d28&#xff1a;<\/h4>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll nor_1<br \/>\n-rwxr&#8211;r&#8211; 1 qyh qyh 9 Sep  6 13:34 nor_1<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ .\/nor_1<br \/>\n.\/nor_1: line 1: syntax error near unexpected token &#096;in&#039;<br \/>\n.\/nor_1: line 1: &#096;in nor_1&#039; <\/p>\n<p>&#x1f4cc;\u00a0\u91cd\u8981\u533a\u5206&#xff1a;<\/p>\n<ul>\n<li><span style=\"color:#be191c\">\u53ef\u6267\u884c\u6743\u9650\u00a0&#061; <\/span><span style=\"color:#511b78\">\u5141\u8bb8\u6267\u884c\u7684\u673a\u4f1a&#xff08;\u95e8\u69db&#xff09;<\/span><\/li>\n<li><span style=\"color:#be191c\">\u6587\u4ef6\u53ef\u6267\u884c\u00a0&#061; <\/span><span style=\"color:#511b78\">\u6587\u4ef6\u672c\u8eab\u662f\u6709\u6548\u7a0b\u5e8f&#xff08;\u80fd\u529b&#xff09;<\/span><\/li>\n<\/ul>\n<p><span style=\"color:#511b78\">\u4e8c\u8005\u5fc5\u987b\u540c\u65f6\u6ee1\u8db3&#xff0c;\u624d\u80fd\u771f\u6b63\u6267\u884c\u3002<\/span><span style=\"color:#be191c\">\u7ed9\u6587\u672c\u6587\u4ef6\u52a0\u00a0x\u00a0\u6743\u9650&#xff0c;\u53ea\u662f\u7ed9\u4e86&#034;\u673a\u4f1a&#034;&#xff0c;\u4f46\u6587\u4ef6\u672c\u8eab\u4e0d\u5177\u5907&#034;\u80fd\u529b&#034;&#xff0c;\u6240\u4ee5\u6267\u884c\u5931\u8d25\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"606\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221754-6a9de692712ed.png\" width=\"646\" \/><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"8.%20%E4%BF%AE%E6%94%B9%E6%96%87%E4%BB%B6%E5%BD%92%E5%B1%9E%EF%BC%9Achown%20%E4%B8%8E%20chgrp\">8. \u4fee\u6539\u6587\u4ef6\u5f52\u5c5e&#xff1a;chown \u4e0e chgrp<\/h2>\n<h3 id=\"8.1%20chown%EF%BC%9A%E4%BF%AE%E6%94%B9%E6%8B%A5%E6%9C%89%E8%80%85\">8.1 chown&#xff1a;\u4fee\u6539\u62e5\u6709\u8005<\/h3>\n<p>\u529f\u80fd&#xff1a;\u4fee\u6539\u6587\u4ef6\u7684\u62e5\u6709\u8005<\/p>\n<p>\u683c\u5f0f&#xff1a;<span style=\"color:#1c7892\">chown [\u53c2\u6570] \u7528\u6237\u540d \u6587\u4ef6\u540d<\/span><\/p>\n<p>\u5b9e\u4f8b&#xff1a;<\/p>\n<ul>\n<li>chown user1 file1<\/li>\n<li>chown -R user1 dir1&#xff08;\u9012\u5f52\u4fee\u6539\u76ee\u5f55&#xff09;<\/li>\n<\/ul>\n<p>\u6743\u9650\u9650\u5236&#xff1a;<\/p>\n<p># \u666e\u901a\u7528\u6237\u65e0\u6cd5\u76f4\u63a5\u8f6c\u8ba9\u6587\u4ef6<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ chown root nor_1<br \/>\nchown: changing ownership of &#039;nor_1&#039;: Operation not permitted<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ chown QYH nor_1<br \/>\nchown: changing ownership of &#039;nor_1&#039;: Operation not permitted <\/p>\n<p><span style=\"color:#be191c\">&#x1f914;\u00a0\u4e3a\u4ec0\u4e48\u4fee\u6539\u5c5e\u6027\u53ef\u4ee5\u81ea\u5df1\u6539&#xff0c;\u8f6c\u8ba9\u6587\u4ef6\u5374\u4e0d\u884c&#xff1f;<\/span><\/p>\n<p><span style=\"color:#be191c\">\u4fee\u6539\u5c5e\u6027&#xff08;chmod&#xff09;\u5f71\u54cd\u8303\u56f4\u4ec5\u9650\u4e8e\u81ea\u5df1&#xff0c;\u800c\u8f6c\u8ba9\u6587\u4ef6&#xff08;chown&#xff09;\u6d89\u53ca\u4ed6\u4eba\u5229\u76ca&#xff0c;\u9700\u8981\u66f4\u9ad8\u6743\u9650\u5ba1\u6838\u3002\u8fd9\u662f\u7cfb\u7edf\u7684\u5b89\u5168\u8bbe\u8ba1\u3002<\/span><\/p>\n<p>\u4f7f\u7528 sudo \u63d0\u6743&#xff1a;<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ sudo chown QYH nor_1<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\n-rwxr&#8211;r&#8211; 1 QYH qyh 9 Sep  6 13:34 nor_1<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ sudo chown root nor_1<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\n-rwxr&#8211;r&#8211; 1 root qyh 9 Sep  6 13:34 nor_1 <\/p>\n<hr \/>\n<h3 id=\"8.2%20chgrp%EF%BC%9A%E4%BF%AE%E6%94%B9%E6%89%80%E5%B1%9E%E7%BB%84\">8.2 chgrp&#xff1a;\u4fee\u6539\u6240\u5c5e\u7ec4<\/h3>\n<p>\u529f\u80fd&#xff1a;\u4fee\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6240\u5c5e\u7ec4<\/p>\n<p>\u683c\u5f0f&#xff1a;<span style=\"color:#1c7892\">chgrp [\u53c2\u6570] \u7528\u6237\u7ec4\u540d \u6587\u4ef6\u540d<\/span><\/p>\n<p>\u5b9e\u4f8b&#xff1a;chgrp users \/abc\/f2<\/p>\n<p>\u540c\u6837\u9700\u8981 sudo \u63d0\u6743\u3002<\/p>\n<hr \/>\n<h3 id=\"8.3%20%E5%90%8C%E6%97%B6%E4%BF%AE%E6%94%B9%E6%8B%A5%E6%9C%89%E8%80%85%E5%92%8C%E6%89%80%E5%B1%9E%E7%BB%84\">8.3 \u540c\u65f6\u4fee\u6539\u62e5\u6709\u8005\u548c\u6240\u5c5e\u7ec4<\/h3>\n<p>\u63a8\u8350\u7528\u6cd5&#xff1a;<span style=\"color:#1c7892\">sudo chown \u62e5\u6709\u8005:\u6240\u5c5e\u7ec4 \u6587\u4ef6\u540d<\/span><\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ sudo chown QYH:QYH nor_1<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\n-rwxr&#8211;r&#8211; 1 QYH QYH 9 Sep  6 13:34 nor_1 <\/p>\n<p><span style=\"color:#be191c\">&#x1f4a1;\u00a0\u5b9e\u7528\u6280\u5de7&#xff1a;\u65e5\u5e38\u53ea\u9700\u8bb0\u4f4f\u00a0chown\u00a0\u5373\u53ef&#xff0c;chgrp\u00a0\u4ec5\u5728\u5355\u72ec\u4fee\u6539\u6240\u5c5e\u7ec4\u65f6\u4f7f\u7528\u3002<\/span><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"9.%20%E7%9B%AE%E5%BD%95%E6%9D%83%E9%99%90%E8%AF%A6%E8%A7%A3\" style=\"background-color:transparent\">9. \u76ee\u5f55\u6743\u9650\u8be6\u89e3<\/h2>\n<h3 id=\"9.1%20%E7%9B%AE%E5%BD%95%E7%9A%84%20rwx%20%E5%90%AB%E4%B9%89\" style=\"background-color:transparent\">9.1 \u76ee\u5f55\u7684 rwx \u542b\u4e49<\/h3>\n<table>\n<tr><span style=\"color:#be191c\">\u6743\u9650<\/span><span style=\"color:#be191c\">\u5bf9\u76ee\u5f55\u7684\u4f5c\u7528<\/span><span style=\"color:#be191c\">\u5931\u6548\u8868\u73b0<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">r&#xff08;\u8bfb&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u67e5\u770b\u76ee\u5f55\u5185\u5bb9&#xff08;ls&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">ls: Permission denied<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">w&#xff08;\u5199&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u521b\u5efa\/\u5220\u9664\u76ee\u5f55\u5185\u6587\u4ef6<\/span><\/td>\n<td><span style=\"color:#be191c\">\u65e0\u6cd5\u65b0\u5efa\u6216\u5220\u9664\u6587\u4ef6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">x&#xff08;\u6267\u884c&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u8fdb\u5165\u76ee\u5f55&#xff08;cd&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">cd: Permission denied<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9a8c\u8bc1&#xff1a;<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\ndrwxrwxr-x 2 qyh qyh 4096 Sep  6 19:26 code <\/p>\n<p>&#x1f4c1;\u00a0<span style=\"color:#be191c\">\u9ed8\u8ba4\u8981\u6c42&#xff1a;\u65b0\u5efa\u76ee\u5f55\u901a\u5e38\u9700\u8981\u00a0rwx\u00a0\u5168\u90e8\u6743\u9650&#xff0c;\u5426\u5219\u65e0\u6cd5\u6b63\u5e38\u8fdb\u5165\u548c\u64cd\u4f5c\u3002<\/span><\/p>\n<hr \/>\n<h3 id=\"9.2%20root%20%E7%9A%84%E7%BB%9D%E5%AF%B9%E6%9D%83%E9%99%90\">9.2 root \u7684\u7edd\u5bf9\u6743\u9650<\/h3>\n<p>&#x1f451;\u00a0<span style=\"color:#be191c\">\u552f\u4e00\u4f8b\u5916&#xff1a;root \u51e0\u4e4e\u4e0d\u53d7\u6743\u9650\u7ea6\u675f&#xff0c;\u9664\u975e\u6587\u4ef6\u6b63\u88ab\u5176\u4ed6\u8fdb\u7a0b\u5360\u7528&#xff08;\u7c7b\u4f3c Windows \u4e2d\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u65e0\u6cd5\u5220\u9664&#xff09;\u3002<\/span><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"10.%20%E7%94%A8%E6%88%B7%E9%9A%94%E7%A6%BB%E6%9C%BA%E5%88%B6\">10. \u7528\u6237\u9694\u79bb\u673a\u5236<\/h2>\n<h3 id=\"10.1%20%E5%AE%B6%E7%9B%AE%E5%BD%95%E7%9A%84%E6%9D%83%E9%99%90%E8%AE%BE%E8%AE%A1\">10.1 \u5bb6\u76ee\u5f55\u7684\u6743\u9650\u8bbe\u8ba1<\/h3>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll \/home<br \/>\ntotal 12<br \/>\ndrwx&#8212;&#8212; 2 lighthouse lighthouse 4096 Jul 30 16:12 lighthouse<br \/>\ndrwx&#8212;&#8212; 6 qyh        qyh        4096 Sep  5 21:38 qyh<br \/>\ndrwx&#8212;&#8212; 2 QYH        QYH        4096 Sep  6 18:40 QYH <\/p>\n<p>\u6743\u9650\u5206\u6790&#xff1a;drwx&#8212;&#8212;<\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u89d2\u8272<\/span><span style=\"color:#be191c\">\u6743\u9650<\/span><span style=\"color:#be191c\">\u6548\u679c<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u62e5\u6709\u8005<\/span><\/td>\n<td><span style=\"color:#be191c\">rwx<\/span><\/td>\n<td><span style=\"color:#be191c\">\u53ef\u8fdb\u5165\u3001\u67e5\u770b\u3001\u64cd\u4f5c\u81ea\u5df1\u7684\u5bb6\u76ee\u5f55<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6240\u5c5e\u7ec4<\/span><\/td>\n<td><span style=\"color:#be191c\">&#8212;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u65e0\u4efb\u4f55\u6743\u9650<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u5176\u4ed6\u7528\u6237<\/span><\/td>\n<td><span style=\"color:#be191c\">&#8212;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u65e0\u4efb\u4f55\u6743\u9650<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#x1f512;<span style=\"color:#511b78\">\u00a0\u9694\u79bb\u539f\u7406&#xff1a;\u6bcf\u4e2a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u4ec5\u5bf9\u62e5\u6709\u8005\u5f00\u653e<\/span><span style=\"color:#be191c\">&#xff0c;\u5176\u4ed6\u7528\u6237&#xff08;\u5305\u62ec\u540c\u7ec4&#xff09;\u65e0\u6cd5\u8fdb\u5165\u3002\u8fd9\u662f Linux \u591a\u7528\u6237\u9694\u79bb\u7684\u57fa\u7840\u3002<\/span><\/p>\n<p><span style=\"color:#be191c\">\u7528\u6237\u4e4b\u95f4\u5728\u57fa\u4e8e\u6743\u9650\u65b9\u9762\u5c31\u53ef\u4ee5\u5b9e\u73b0\u591a\u7528\u6237\u4e4b\u95f4\u7684\u9694\u79bb<\/span><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"11.%20%E9%BB%98%E8%AE%A4%E6%9D%83%E9%99%90%E4%B8%8E%20umask\">11. \u9ed8\u8ba4\u6743\u9650\u4e0e umask<\/h2>\n<h3 id=\"11.1%20%E9%BB%98%E8%AE%A4%E6%9D%83%E9%99%90\">11.1 \u9ed8\u8ba4\u6743\u9650<\/h3>\n<table>\n<tr><span style=\"color:#be191c\">\u6587\u4ef6\u7c7b\u578b<\/span><span style=\"color:#be191c\">\u9ed8\u8ba4\u6743\u9650<\/span><span style=\"color:#be191c\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u666e\u901a\u6587\u4ef6<\/span><\/td>\n<td><span style=\"color:#be191c\">0666&#xff08;rw-rw-rw-&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u9ed8\u8ba4\u4e0d\u53ef\u6267\u884c&#xff08;\u5b89\u5168\u8003\u8651&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u76ee\u5f55<\/span><\/td>\n<td><span style=\"color:#be191c\">0777&#xff08;rwxrwxrwx&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u9ed8\u8ba4\u5168\u5f00<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 id=\"11.2%20%E5%AE%9E%E9%99%85%E7%9C%8B%E5%88%B0%E7%9A%84%E6%9D%83%E9%99%90\">11.2 \u5b9e\u9645\u770b\u5230\u7684\u6743\u9650<\/h3>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ touch cmd<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ mkdir code<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\n-rw-rw-r&#8211; 1 qyh qyh    0 Sep  6 20:09 cmd      # \u5b9e\u9645&#xff1a;664<br \/>\ndrwxrwxr-x 2 qyh qyh 4096 Sep  6 20:08 code     # \u5b9e\u9645&#xff1a;775 <\/p>\n<p><span style=\"color:#be191c\">\u5dee\u5f02\u539f\u56e0&#xff1a;umask&#xff08;\u6743\u9650\u63a9\u7801&#xff09;\u8fc7\u6ee4\u4e86\u90e8\u5206\u9ed8\u8ba4\u6743\u9650\u3002<\/span><\/p>\n<hr \/>\n<h3 id=\"11.3%20umask%20%E6%9C%BA%E5%88%B6\">11.3 umask \u673a\u5236<\/h3>\n<p>\u529f\u80fd&#xff1a;\u67e5\u770b\u6216\u4fee\u6539\u6587\u4ef6\u6743\u9650\u63a9\u7801<\/p>\n<p>\u516c\u5f0f&#xff1a;<span style=\"color:#1c7892\">\u5b9e\u9645\u6743\u9650 &#061; \u9ed8\u8ba4\u6743\u9650 &amp; ~umask<\/span><\/p>\n<p>\u26a0\ufe0f\u00a0\u6ce8\u610f&#xff1a;\u662f\u4f4d\u8fd0\u7b97&#xff08;\u4e0e&#043;\u53d6\u53cd&#xff09;&#xff0c;\u4e0d\u662f\u51cf\u6cd5\u3002<\/p>\n<p>\u67e5\u770b umask&#xff1a;<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ umask<br \/>\n0002                    # \u666e\u901a\u7528\u6237\u9ed8\u8ba4<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ sudo umask<br \/>\n0022                    # root \u9ed8\u8ba4 <\/p>\n<p>\u4fee\u6539 umask&#xff1a;<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ umask 0001<\/p>\n<p>\u8ba1\u7b97\u793a\u4f8b&#xff1a;<\/p>\n<p>\u666e\u901a\u6587\u4ef6\u9ed8\u8ba4&#xff1a;0666  \u2192  110 110 110<br \/>\numask&#xff1a;       0002  \u2192  000 000 010<br \/>\n~umask&#xff1a;      7775  \u2192  111 111 101<\/p>\n<p>\u5b9e\u9645\u6743\u9650&#xff1a;    0666 &amp; 7775 &#061; 0664  \u2192  110 110 100  \u2192  rw-rw-r&#8211; <\/p>\n<hr \/>\n<h3 id=\"11.4%20umask%20%E7%9A%84%E4%BD%9C%E7%94%A8\" style=\"background-color:transparent\">11.4 umask \u7684\u4f5c\u7528<\/h3>\n<table>\n<tr><span style=\"color:#be191c\">\u7279\u6027<\/span><span style=\"color:#be191c\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u76ee\u7684<\/span><\/td>\n<td><span style=\"color:#be191c\">\u5c4f\u853d\u9ed8\u8ba4\u6743\u9650\u4e2d\u4e0d\u9700\u8981\u7684\u6743\u9650<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u7075\u6d3b\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u8ba9\u7cfb\u7edf\u6743\u9650\u53ef\u914d\u7f6e&#xff0c;\u6ee1\u8db3\u4e0d\u540c\u573a\u666f<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4e34\u65f6\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u5185\u5b58\u7ea7\u8bbe\u7f6e&#xff0c;\u5173\u95ed\u7ec8\u7aef\u540e\u6062\u590d\u9ed8\u8ba4\u503c<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6301\u4e45\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 umask \u5728\u767b\u5f55\u65f6\u52a0\u8f7d<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 id=\"12.%20%E7%B2%98%E6%BB%9E%E4%BD%8D%EF%BC%9A%E8%A7%A3%E5%86%B3%E7%9B%AE%E5%BD%95%E5%86%99%E6%9D%83%E9%99%90%E7%9A%84%E9%9A%90%E6%82%A3\">12. \u7c98\u6ede\u4f4d&#xff1a;\u89e3\u51b3\u76ee\u5f55\u5199\u6743\u9650\u7684\u9690\u60a3<\/h2>\n<h3 id=\"12.1%20%E9%97%AE%E9%A2%98%E7%8E%B0%E8%B1%A1\" style=\"background-color:transparent\">12.1 \u95ee\u9898\u73b0\u8c61<\/h3>\n<p>\u76ee\u5f55\u5199\u6743\u9650\u7684\u526f\u4f5c\u7528&#xff1a;\u53ea\u8981\u7528\u6237\u5bf9\u76ee\u5f55\u6709\u5199\u6743\u9650&#xff0c;\u5c31\u53ef\u4ee5\u5220\u9664\u76ee\u5f55\u4e2d\u7684\u4efb\u4f55\u6587\u4ef6&#xff0c;\u65e0\u8bba\u662f\u5426\u62e5\u6709\u8be5\u6587\u4ef6\u7684\u5199\u6743\u9650\u3002<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\ntotal 4<br \/>\n-rw-rw-r&#8211; 1 qyh  qyh     0 Sep  6 20:09 cmd<br \/>\ndrwxrwxr-x 2 qyh  qyh  4096 Sep  6 20:08 code<br \/>\n&#8212;&#8212;&#8212;- 1 root root    0 Sep  6 20:52 rt    # \u2190 root \u521b\u5efa&#xff0c;\u6743\u9650\u5168\u5173<\/p>\n<p>[qyh&#064;VM-0-2-centos linux-sys-prog]$ whoami<br \/>\nqyh<\/p>\n<p># qyh \u65e0\u6cd5\u8bfb\u5199 rt&#xff0c;\u5374\u80fd\u5220\u9664&#xff01;<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ rm rt<br \/>\nrm: remove write-protected regular empty file &#039;rt&#039;? y<br \/>\n[qyh&#064;VM-0-2-centos linux-sys-prog]$ ll<br \/>\ntotal 4<br \/>\n-rw-rw-r&#8211; 1 qyh qyh    0 Sep  6 20:09 cmd<br \/>\ndrwxrwxr-x 2 qyh qyh 4096 Sep  6 20:08 code <\/p>\n<p><span style=\"color:#1c7892\">&#x1f630;\u00a0\u4e0d\u5408\u7406\u4e4b\u5904&#xff1a;\u6211\u521b\u5efa\u7684\u6587\u4ef6&#xff0c;\u51ed\u4ec0\u4e48\u88ab\u4f60\u5220\u6389&#xff1f;<\/span><\/p>\n<hr \/>\n<h3 id=\"12.2%20%E7%B2%98%E6%BB%9E%E4%BD%8D%EF%BC%88Sticky%20Bit%EF%BC%89\">12.2 \u7c98\u6ede\u4f4d&#xff08;Sticky Bit&#xff09;<\/h3>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;Linux \u5f15\u5165\u7c98\u6ede\u4f4d&#xff0c;\u9650\u5236\u76ee\u5f55\u4e2d\u6587\u4ef6\u7684\u5220\u9664\u6743\u9650\u3002<\/p>\n<p>\u8bbe\u7f6e\u65b9\u6cd5&#xff1a;chmod &#043;t \u76ee\u5f55\u540d<\/p>\n<p>\u6548\u679c&#xff1a;<\/p>\n<ul>\n<li>\u76ee\u5f55\u5185\u7684\u6587\u4ef6\u53ea\u80fd\u7531\u00a0\u6587\u4ef6\u62e5\u6709\u8005\u3001\u76ee\u5f55\u62e5\u6709\u8005\u00a0\u6216\u00a0root\u00a0\u5220\u9664<\/li>\n<li>\u5176\u4ed6\u7528\u6237\u5373\u4f7f\u6709\u76ee\u5f55\u5199\u6743\u9650&#xff0c;\u4e5f\u65e0\u6cd5\u5220\u9664\u4ed6\u4eba\u6587\u4ef6<\/li>\n<\/ul>\n<p>\u5178\u578b\u5e94\u7528&#xff1a;\/tmp\u00a0\u76ee\u5f55<\/p>\n<p>$ ll -d \/tmp<br \/>\ndrwxrwxrwt 10 root root 4096 Sep  6 20:00 \/tmp<br \/>\n         \u2191<br \/>\n      \u7c98\u6ede\u4f4d\u6807\u5fd7&#xff08;t&#xff09; <\/p>\n<p><span style=\"color:#be191c\">&#x1f4dd;\u00a0\u603b\u7ed3&#xff1a;<\/span><span style=\"color:#1c7892\">\u7c98\u6ede\u4f4d\u662f\u76ee\u5f55\u6743\u9650\u7684\u91cd\u8981\u8865\u5145&#xff0c;\u4fdd\u969c\u4e86\u591a\u7528\u6237\u5171\u4eab\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u5b89\u5168\u3002<\/span><span style=\"color:#be191c\">\u53ea\u9700\u8981\u7ed9\u9700\u8981\u5171\u4eab\u7684\u76ee\u5f55\u6dfb\u52a0\u7c98\u6ede\u4f4d<\/span><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"13.%20%E5%A4%9A%E7%94%A8%E6%88%B7%E6%96%87%E4%BB%B6%E7%BA%A7%E5%8D%8F%E4%BD%9C%E5%AE%9E%E8%B7%B5\">13. \u591a\u7528\u6237\u6587\u4ef6\u7ea7\u534f\u4f5c\u5b9e\u8df5<\/h2>\n<h3 id=\"13.1%20%E5%8D%8F%E4%BD%9C%E5%9C%BA%E6%99%AF%E7%9A%84%E9%9C%80%E6%B1%82\">13.1 \u534f\u4f5c\u573a\u666f\u7684\u9700\u6c42<\/h3>\n<p>\u524d\u9762\u6211\u4eec\u8bb2\u8fc7&#xff0c;Linux \u901a\u8fc7\u5bb6\u76ee\u5f55\u7684\u6743\u9650\u8bbe\u8ba1&#xff08;drwx&#8212;&#8212;&#xff09;\u5b9e\u73b0\u4e86\u7528\u6237\u4e4b\u95f4\u7684\u9694\u79bb\u3002\u4f46\u8fd9\u5e26\u6765\u4e00\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<p>\u5f53\u591a\u4e2a\u7528\u6237\u9700\u8981\u534f\u4f5c\u5904\u7406\u540c\u4e00\u6587\u4ef6\u65f6&#xff0c;\u6587\u4ef6\u8be5\u653e\u5728\u54ea\u91cc&#xff1f;<\/p>\n<p>\u9519\u8bef\u65b9\u6848&#xff1a;\u653e\u5728\u67d0\u4e2a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u4e0b<\/p>\n<ul>\n<li>\u7528\u6237 A \u65e0\u6cd5\u8fdb\u5165\u7528\u6237 B \u7684\u5bb6\u76ee\u5f55<\/li>\n<li>\u5373\u4f7f\u901a\u8fc7\u00a0sudo\u00a0\u8fdb\u5165&#xff0c;\u4e5f\u7834\u574f\u4e86\u9694\u79bb\u673a\u5236<\/li>\n<\/ul>\n<p><span style=\"color:#be191c\">\u6b63\u786e\u65b9\u6848&#xff1a;\u4f7f\u7528\u516c\u5171\u76ee\u5f55\u00a0&#043;\u00a0\u7c98\u6ede\u4f4d\u4fdd\u969c\u5b89\u5168<\/span><\/p>\n<hr \/>\n<h3 id=\"13.2%20%2Ftmp%20%E7%9B%AE%E5%BD%95%EF%BC%9A%E7%B3%BB%E7%BB%9F%E7%BA%A7%E7%9A%84%E5%8D%8F%E4%BD%9C%E7%A9%BA%E9%97%B4\">13.2 \/tmp \u76ee\u5f55&#xff1a;\u7cfb\u7edf\u7ea7\u7684\u534f\u4f5c\u7a7a\u95f4<\/h3>\n<p>\/tmp\u00a0\u662f Linux \u7cfb\u7edf\u7684\u4e34\u65f6\u6587\u4ef6\u76ee\u5f55&#xff0c;\u5929\u751f\u5177\u5907\u7c98\u6ede\u4f4d&#xff1a;<\/p>\n<p>$ ll -d \/tmp<br \/>\ndrwxrwxrwt 10 root root 4096 Sep  6 20:00 \/tmp<br \/>\n         \u2191<br \/>\n      \u7c98\u6ede\u4f4d\u6807\u5fd7&#xff08;t&#xff09; <\/p>\n<p>\u7279\u6027&#xff1a;<\/p>\n<table>\n<tr><span style=\"color:#be191c\">\u7279\u6027<\/span><span style=\"color:#be191c\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u5f00\u653e\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u6240\u6709\u7528\u6237\u5747\u53ef\u8fdb\u5165\u3001\u521b\u5efa\u6587\u4ef6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u5b89\u5168\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u7c98\u6ede\u4f4d\u4fdd\u969c&#xff0c;\u53ea\u80fd\u5220\u9664\u81ea\u5df1\u7684\u6587\u4ef6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4e34\u65f6\u6027<\/span><\/td>\n<td><span style=\"color:#be191c\">\u7cfb\u7edf\u91cd\u542f\u540e\u901a\u5e38\u6e05\u7a7a&#xff08;\u89c6\u914d\u7f6e\u800c\u5b9a&#xff09;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u534f\u4f5c\u6d41\u7a0b&#xff1a;<\/p>\n<p># \u7528\u6237 A \u521b\u5efa\u5171\u4eab\u6587\u4ef6<br \/>\n[userA&#064;VM-0-2-centos ~]$ cd \/tmp<br \/>\n[userA&#064;VM-0-2-centos tmp]$ echo &#034;\u5171\u4eab\u6570\u636e&#034; &gt; shared_data.txt<br \/>\n[userA&#064;VM-0-2-centos tmp]$ chmod 664 shared_data.txt<\/p>\n<p># \u7528\u6237 B \u8bfb\u53d6\u5e76\u7f16\u8f91<br \/>\n[userB&#064;VM-0-2-centos ~]$ cd \/tmp<br \/>\n[userB&#064;VM-0-2-centos tmp]$ cat shared_data.txt<br \/>\n\u5171\u4eab\u6570\u636e<br \/>\n[userB&#064;VM-0-2-centos tmp]$ echo &#034;\u8865\u5145\u5185\u5bb9&#034; &gt;&gt; shared_data.txt<\/p>\n<p># \u7528\u6237 C \u65e0\u6cd5\u5220\u9664&#xff08;\u5373\u4f7f\u76ee\u5f55\u53ef\u5199&#xff09;<br \/>\n[userC&#064;VM-0-2-centos tmp]$ rm shared_data.txt<br \/>\nrm: cannot remove &#039;shared_data.txt&#039;: Operation not permitted  # \u2190 \u7c98\u6ede\u4f4d\u751f\u6548 <\/p>\n<hr \/>\n<h3 id=\"13.3%20%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B2%98%E6%BB%9E%E4%BD%8D%E7%9B%AE%E5%BD%95\">13.3 \u81ea\u5b9a\u4e49\u7c98\u6ede\u4f4d\u76ee\u5f55<\/h3>\n<p>\u9664\u4e86\u00a0\/tmp&#xff0c;\u4e5f\u53ef\u4ee5\u81ea\u884c\u521b\u5efa\u5e26\u7c98\u6ede\u4f4d\u7684\u534f\u4f5c\u76ee\u5f55&#xff1a;<\/p>\n<p># \u7ba1\u7406\u5458\u521b\u5efa\u5171\u4eab\u76ee\u5f55<br \/>\n[root&#064;VM-0-2-centos ~]# mkdir \/shared<br \/>\n[root&#064;VM-0-2-centos ~]# chmod 1777 \/shared    # 1 \u8868\u793a\u8bbe\u7f6e\u7c98\u6ede\u4f4d<br \/>\n[root&#064;VM-0-2-centos ~]# ll -d \/shared<br \/>\ndrwxrwxrwt 2 root root 4096 Sep  6 21:00 \/shared<\/p>\n<p># \u6216\u5206\u6b65\u8bbe\u7f6e<br \/>\n[root&#064;VM-0-2-centos ~]# chmod &#043;t \/shared <\/p>\n<p>&#x1f4dd;\u00a0\u5b9e\u9645\u5e94\u7528&#xff1a;\u4f01\u4e1a\u5185\u7f51\u4e2d&#xff0c;\u5e38\u7528\u4e8e\u8bbe\u7f6e\u90e8\u95e8\u7ea7\u5171\u4eab\u76ee\u5f55&#xff0c;\u5982\u00a0\/shared\/department_a\/\u3002<\/p>\n<hr \/>\n<h3 id=\"13.4%20%E6%96%B9%E6%A1%88%E5%AF%B9%E6%AF%94\">13.4 \u65b9\u6848\u5bf9\u6bd4<\/h3>\n<table>\n<tr><span style=\"color:#511b78\">\u65b9\u6848<\/span><span style=\"color:#be191c\">\u9002\u7528\u573a\u666f<\/span><span style=\"color:#be191c\">\u4f18\u70b9<\/span><span style=\"color:#be191c\">\u7f3a\u70b9<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#511b78\">\/tmp\u00a0\u76ee\u5f55<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4e34\u65f6\u534f\u4f5c\u3001\u77ed\u671f\u4efb\u52a1<\/span><\/td>\n<td><span style=\"color:#be191c\">\u7cfb\u7edf\u81ea\u5e26&#xff0c;\u65e0\u9700\u914d\u7f6e<\/span><\/td>\n<td><span style=\"color:#be191c\">\u6587\u4ef6\u53ef\u80fd\u968f\u91cd\u542f\u6e05\u9664<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#511b78\">\u81ea\u5b9a\u4e49\u7c98\u6ede\u4f4d\u76ee\u5f55<\/span><\/td>\n<td><span style=\"color:#be191c\">\u957f\u671f\u534f\u4f5c\u3001\u90e8\u95e8\u5171\u4eab<\/span><\/td>\n<td><span style=\"color:#be191c\">\u6301\u4e45\u5316\u5b58\u50a8&#xff0c;\u53ef\u63a7\u6027\u5f3a<\/span><\/td>\n<td><span style=\"color:#be191c\">\u9700\u8981\u7ba1\u7406\u5458\u914d\u7f6e<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#511b78\">\u7248\u672c\u63a7\u5236\u7cfb\u7edf&#xff08;Git\/SVN&#xff09;<\/span><\/td>\n<td><span style=\"color:#be191c\">\u4ee3\u7801\u534f\u4f5c\u3001\u6587\u6863\u7ba1\u7406<\/span><\/td>\n<td><span style=\"color:#be191c\">\u5b8c\u6574\u5386\u53f2\u8ffd\u6eaf&#xff0c;\u51b2\u7a81\u89e3\u51b3<\/span><\/td>\n<td><span style=\"color:#be191c\">\u5b66\u4e60\u6210\u672c\u8f83\u9ad8<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 id=\"13.5%20%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5%E5%BB%BA%E8%AE%AE\">13.5 \u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/h3>\n<table>\n<tr>\u573a\u666f\u63a8\u8350\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>\u4e34\u65f6\u6587\u4ef6\u4ea4\u6362<\/td>\n<td>\/tmp\u00a0\u76ee\u5f55<\/td>\n<\/tr>\n<tr>\n<td>\u5c0f\u578b\u56e2\u961f\u957f\u671f\u534f\u4f5c<\/td>\n<td>\u81ea\u5b9a\u4e49\u7c98\u6ede\u4f4d\u76ee\u5f55 &#043; \u5b9a\u671f\u5907\u4efd<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\/\u6587\u6863\u534f\u4f5c<\/td>\n<td>Git \u7b49\u7248\u672c\u63a7\u5236\u7cfb\u7edf<\/td>\n<\/tr>\n<tr>\n<td>\u8de8\u90e8\u95e8\u5927\u6587\u4ef6\u5171\u4eab<\/td>\n<td>\u4f01\u4e1a\u7f51\u76d8 &#043; \u6743\u9650\u5206\u7ec4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"457\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221754-6a9de6928f2af.png\" width=\"1406\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"280\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221754-6a9de692c572f.png\" width=\"1345\" \/><\/p>\n<\/p>\n<hr \/>\n<h2 id=\"%E6%9C%AC%E8%8A%82%E5%91%BD%E4%BB%A4%E9%80%9F%E6%9F%A5%E8%A1%A8\">\u672c\u8282\u547d\u4ee4\u901f\u67e5\u8868<\/h2>\n<table>\n<tr><span style=\"color:#fe2c24\">\u547d\u4ee4<\/span><span style=\"color:#fe2c24\">\u529f\u80fd<\/span><span style=\"color:#fe2c24\">\u793a\u4f8b<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">su<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u5207\u6362\u7528\u6237<\/span><\/td>\n<td><span style=\"color:#be191c\">su qyh\u3001su &#8211;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">sudo<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4e34\u65f6\u63d0\u6743<\/span><\/td>\n<td><span style=\"color:#be191c\">sudo touch file<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">chmod<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4fee\u6539\u6587\u4ef6\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#be191c\">chmod 755 file\u3001chmod u&#043;x file<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">chown<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4fee\u6539\u6587\u4ef6\u62e5\u6709\u8005<\/span><\/td>\n<td><span style=\"color:#be191c\">chown user file\u3001chown user:group file<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">chgrp<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u4fee\u6539\u6587\u4ef6\u6240\u5c5e\u7ec4<\/span><\/td>\n<td><span style=\"color:#be191c\">chgrp group file<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">umask<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u67e5\u770b\/\u8bbe\u7f6e\u6743\u9650\u63a9\u7801<\/span><\/td>\n<td><span style=\"color:#be191c\">umask\u3001umask 0022<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">chmod &#043;t<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u8bbe\u7f6e\u7c98\u6ede\u4f4d<\/span><\/td>\n<td><span style=\"color:#be191c\">chmod &#043;t \/shared_dir<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 id=\"%E6%9D%83%E9%99%90%E4%BD%93%E7%B3%BB%E5%AE%8C%E6%95%B4%E6%80%BB%E7%BB%93\">\u6743\u9650\u4f53\u7cfb\u5b8c\u6574\u603b\u7ed3<\/h2>\n<table>\n<tr><span style=\"color:#fe2c24\">\u7ef4\u5ea6<\/span><span style=\"color:#fe2c24\">\u6838\u5fc3\u5185\u5bb9<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#be191c\">\u7528\u6237\u5207\u6362<\/span><\/td>\n<td><span style=\"color:#1c7892\">su\u3001su -\u3001sudo\u00a0\u63d0\u6743\u673a\u5236<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u6743\u9650\u672c\u8d28<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u6743\u9650 &#061; \u89d2\u8272 &#043; \u76ee\u6807\u5c5e\u6027<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4e09\u79cd\u89d2\u8272<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u62e5\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u3001Other<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4e09\u79cd\u5c5e\u6027<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u8bfb(r)\u3001\u5199(w)\u3001\u6267\u884c(x)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4fee\u6539\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#1c7892\">chmod&#xff08;\u7b26\u53f7\u6a21\u5f0f &#043; \u516b\u8fdb\u5236\u6a21\u5f0f&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u4fee\u6539\u5f52\u5c5e<\/span><\/td>\n<td><span style=\"color:#1c7892\">chown\u3001chgrp<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u76ee\u5f55\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#1c7892\">r&#xff08;\u67e5\u770b&#xff09;\u3001w&#xff08;\u521b\u5efa\u5220\u9664&#xff09;\u3001x&#xff08;\u8fdb\u5165&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u7528\u6237\u9694\u79bb<\/span><\/td>\n<td><span style=\"color:#1c7892\">\u5bb6\u76ee\u5f55\u00a0drwx&#8212;&#8212;\u00a0\u6743\u9650\u8bbe\u8ba1<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u9ed8\u8ba4\u6743\u9650<\/span><\/td>\n<td><span style=\"color:#1c7892\">umask\u00a0\u63a9\u7801\u673a\u5236<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u7c98\u6ede\u4f4d<\/span><\/td>\n<td><span style=\"color:#1c7892\">&#043;t\u00a0\u9632\u6b62\u8bef\u5220\u4ed6\u4eba\u6587\u4ef6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#be191c\">\u591a\u7528\u6237\u534f\u4f5c<\/span><\/td>\n<td><span style=\"color:#1c7892\">\/tmp\u00a0\u6216\u81ea\u5b9a\u4e49\u7c98\u6ede\u4f4d\u76ee\u5f55<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 id=\"%E7%BB%93%E8%AF%AD%EF%BC%9A\" style=\"background-color:transparent\">\u7ed3\u8bed&#xff1a;<\/h2>\n<p>\u81f3\u6b64&#xff0c;\u6211\u4eec\u5df2\u7ecf\u5b8c\u6574\u638c\u63e1\u4e86 Linux \u6743\u9650\u4f53\u7cfb\u7684\u5168\u90e8\u6838\u5fc3\u77e5\u8bc6\u3002<\/p>\n<p>\u4ece\u6700\u521d\u533a\u5206 root \u4e0e\u666e\u901a\u7528\u6237&#xff0c;\u5230\u7406\u89e3\u00a0su\u00a0\u4e0e\u00a0sudo\u00a0\u7684\u63d0\u6743\u673a\u5236&#xff1b;\u4ece\u5efa\u7acb&#034;\u6743\u9650 &#061; \u89d2\u8272 &#043; \u76ee\u6807\u5c5e\u6027&#034;\u7684\u7406\u8bba\u6846\u67b6&#xff0c;\u5230\u719f\u7ec3\u8fd0\u7528\u00a0chmod\u3001chown\u00a0\u4fee\u6539\u6743\u9650\u4e0e\u5f52\u5c5e&#xff1b;\u4ece\u89e3\u8bfb\u00a0ll\u00a0\u547d\u4ee4\u7684 10 \u4f4d\u6743\u9650\u5b57\u7b26\u4e32&#xff0c;\u5230\u638c\u63e1\u00a0umask\u00a0\u9ed8\u8ba4\u6743\u9650\u548c\u7c98\u6ede\u4f4d\u7b49\u8fdb\u9636\u673a\u5236&#xff1b;\u6700\u7ec8\u843d\u5b9e\u5230\u591a\u7528\u6237\u6587\u4ef6\u7ea7\u534f\u4f5c\u7684\u6700\u4f73\u5b9e\u8df5\u2014\u2014\u4f60\u5df2\u7ecf\u5177\u5907\u4e86\u72ec\u7acb\u7ba1\u7406 Linux \u7cfb\u7edf\u6743\u9650\u7684\u80fd\u529b\u3002<\/p>\n<p>\u6838\u5fc3\u8ba4\u77e5\u56de\u987e&#xff1a;<\/p>\n<table>\n<tr>\u5c42\u6b21\u8981\u70b9<\/tr>\n<tbody>\n<tr>\n<td>\u5fae\u89c2<\/td>\n<td>\u6bcf\u4e2a\u6587\u4ef6\u7684\u00a0rwx\u00a0\u6743\u9650\u4f4d&#xff0c;\u7cbe\u786e\u63a7\u5236\u8bfb\u3001\u5199\u3001\u6267\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u4e2d\u89c2<\/td>\n<td>\u62e5\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u3001Other \u7684\u89d2\u8272\u5212\u5206&#xff0c;\u5b9e\u73b0\u7cbe\u7ec6\u5316\u7ba1\u63a7<\/td>\n<\/tr>\n<tr>\n<td>\u5b8f\u89c2<\/td>\n<td>\u5bb6\u76ee\u5f55\u9694\u79bb\u3001\u516c\u5171\u76ee\u5f55\u534f\u4f5c\u3001\u7c98\u6ede\u4f4d\u4fdd\u62a4&#xff0c;\u6784\u5efa\u5b89\u5168\u7684\u591a\u7528\u6237\u73af\u5883<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9e\u8df5\u5efa\u8bae&#xff1a;<\/p>\n<table>\n<tr>\u573a\u666f\u64cd\u4f5c\u5efa\u8bae<\/tr>\n<tbody>\n<tr>\n<td>\u4e2a\u4eba\u5b66\u4e60<\/td>\n<td>\u521b\u5efa\u591a\u4e2a\u666e\u901a\u7528\u6237&#xff0c;\u6a21\u62df\u6743\u9650\u51b2\u7a81\u4e0e\u89e3\u51b3<\/td>\n<\/tr>\n<tr>\n<td>\u56e2\u961f\u534f\u4f5c<\/td>\n<td>\u4f7f\u7528\u81ea\u5b9a\u4e49\u7c98\u6ede\u4f4d\u76ee\u5f55&#xff0c;\u914d\u5408\u5b9a\u671f\u5907\u4efd<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u5f00\u53d1<\/td>\n<td>\u4f18\u5148\u4f7f\u7528 Git \u7b49\u7248\u672c\u63a7\u5236\u7cfb\u7edf&#xff0c;\u6743\u9650\u7ba1\u7406\u4e3a\u8f85<\/td>\n<\/tr>\n<tr>\n<td>\u7cfb\u7edf\u8fd0\u7ef4<\/td>\n<td>\u5b9a\u671f\u68c0\u67e5\u00a0\/tmp\u00a0\u7b49\u516c\u5171\u76ee\u5f55&#xff0c;\u6e05\u7406\u8fc7\u671f\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6743\u9650\u7ba1\u7406\u662f Linux \u7cfb\u7edf\u5b89\u5168\u7684\u57fa\u77f3&#xff0c;\u4e5f\u662f\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u7684\u5fc5\u5907\u6280\u80fd\u3002\u7406\u89e3\u6743\u9650\u80cc\u540e\u7684\u8bbe\u8ba1\u54f2\u5b66\u2014\u2014\u6700\u5c0f\u6743\u9650\u539f\u5219\u3001\u89d2\u8272\u5206\u79bb\u3001\u9632\u5fa1\u6027\u9ed8\u8ba4\u2014\u2014\u5c06\u5e2e\u52a9\u4f60\u6784\u5efa\u66f4\u5065\u58ee\u3001\u66f4\u5b89\u5168\u7684\u7cfb\u7edf\u73af\u5883\u3002<\/p>\n<p>\u5e0c\u671b\u4ee5\u4e0a\u5185\u5bb9\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9&#xff0c;\u611f\u8c22\u89c2\u770b&#xff0c;\u82e5\u89c9\u5f97\u5199\u7684\u8fd8\u53ef\u4ee5&#xff0c;\u53ef\u4ee5\u5206\u4eab\u7ed9\u670b\u53cb\u4e00\u8d77\u6765\u770b\u54e6&#xff0c;\u6bd5\u7adf\u4e00\u8d77\u8fdb\u6b65\u66f4\u6709\u52a8\u529b\u561b&#xff0c;\u5f53\u7136\u80fd\u5173\u6ce8\u4e00\u4e0b\u5c31\u66f4\u597d\u5566\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"648\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221754-6a9de692e98e9.png\" width=\"648\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55<br \/>\n\u5f15\u8a00&#xff1a;<br \/>\n1. Linux \u7528\u6237\u4f53\u7cfb<br \/>\n1.1 \u4e24\u79cd\u7528\u6237\u7c7b\u578b<br \/>\n1.2 \u7528\u6237\u5207\u6362&#xff1a;su \u547d\u4ee4<br \/>\n2. \u6743\u9650\u5bf9\u6bd4\u6f14\u793a<br \/>\n2.1 \u573a\u666f&#xff1a;\u5b89\u88c5\u53ef\u6267\u884c\u7a0b\u5e8f<br \/>\n2.2 \u666e\u901a\u7528\u6237\u5c1d\u8bd5&#xff08;\u5931\u8d25&#xff09;<br \/>\n2.3 \u8d85\u7ea7\u7528\u6237\u6267\u884c&#xff08;\u6210\u529f&#xff09;<br \/>\n3. \u4e34\u65f6\u63d0\u6743&#xff1a;sudo \u547d\u4ee4<br \/>\n3.1 \u4e3a\u4ec0\u4e48\u9700\u8981 sudo&#xff1f;<br \/>\n3.2 sudo \u4f7f\u7528\u524d\u63d0<br \/>\n3.3 \u914d\u7f6e sudo \u6743\u9650<br \/>\n3<\/p>\n","protected":false},"author":2,"featured_media":101656,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11614,58,43,5293,44],"topic":[],"class_list":["post-101664","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-11614","tag-linux","tag-43","tag-5293","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790 - \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\/101664.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 \u5f15\u8a00&#xff1a; 1. Linux \u7528\u6237\u4f53\u7cfb 1.1 \u4e24\u79cd\u7528\u6237\u7c7b\u578b 1.2 \u7528\u6237\u5207\u6362&#xff1a;su \u547d\u4ee4 2. \u6743\u9650\u5bf9\u6bd4\u6f14\u793a 2.1 \u573a\u666f&#xff1a;\u5b89\u88c5\u53ef\u6267\u884c\u7a0b\u5e8f 2.2 \u666e\u901a\u7528\u6237\u5c1d\u8bd5&#xff08;\u5931\u8d25&#xff09; 2.3 \u8d85\u7ea7\u7528\u6237\u6267\u884c&#xff08;\u6210\u529f&#xff09; 3. \u4e34\u65f6\u63d0\u6743&#xff1a;sudo \u547d\u4ee4 3.1 \u4e3a\u4ec0\u4e48\u9700\u8981 sudo&#xff1f; 3.2 sudo \u4f7f\u7528\u524d\u63d0 3.3 \u914d\u7f6e sudo \u6743\u9650 3\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/101664.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-06T22:17:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221753-6a9de69166c00.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=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101664.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/101664.html\",\"name\":\"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-06T22:17:56+00:00\",\"dateModified\":\"2026-09-06T22:17:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/101664.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/101664.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101664.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790\"}]},{\"@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":"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790 - \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\/101664.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 \u5f15\u8a00&#xff1a; 1. Linux \u7528\u6237\u4f53\u7cfb 1.1 \u4e24\u79cd\u7528\u6237\u7c7b\u578b 1.2 \u7528\u6237\u5207\u6362&#xff1a;su \u547d\u4ee4 2. \u6743\u9650\u5bf9\u6bd4\u6f14\u793a 2.1 \u573a\u666f&#xff1a;\u5b89\u88c5\u53ef\u6267\u884c\u7a0b\u5e8f 2.2 \u666e\u901a\u7528\u6237\u5c1d\u8bd5&#xff08;\u5931\u8d25&#xff09; 2.3 \u8d85\u7ea7\u7528\u6237\u6267\u884c&#xff08;\u6210\u529f&#xff09; 3. \u4e34\u65f6\u63d0\u6743&#xff1a;sudo \u547d\u4ee4 3.1 \u4e3a\u4ec0\u4e48\u9700\u8981 sudo&#xff1f; 3.2 sudo \u4f7f\u7528\u524d\u63d0 3.3 \u914d\u7f6e sudo \u6743\u9650 3","og_url":"https:\/\/www.wsisp.com\/helps\/101664.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-06T22:17:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906221753-6a9de69166c00.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/101664.html","url":"https:\/\/www.wsisp.com\/helps\/101664.html","name":"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-06T22:17:56+00:00","dateModified":"2026-09-06T22:17:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/101664.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/101664.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/101664.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u6743\u9650\u7ba1\u7406\u4e07\u5b57\u8be6\u89e3\uff5c\u7528\u6237\u4f53\u7cfb\u3001\u89d2\u8272\u5c5e\u6027\u4e0e\u591a\u7528\u6237\u534f\u4f5c\uff0c\u7ed3\u5408\u5e95\u5c42\u539f\u7406\u5256\u6790"}]},{"@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\/101664","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=101664"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101664\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/101656"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=101664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=101664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=101664"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=101664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}