{"id":82255,"date":"2026-07-25T07:43:00","date_gmt":"2026-07-24T23:43:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/82255.html"},"modified":"2026-07-25T07:43:00","modified_gmt":"2026-07-24T23:43:00","slug":"%e3%80%90linux%e3%80%91%e6%9d%83%e9%99%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/82255.html","title":{"rendered":"\u3010Linux\u3011\u6743\u9650"},"content":{"rendered":"<h2>Linux\u6743\u9650<\/h2>\n<h2>1\u3001Linux\u6743\u9650\u7684\u6982\u5ff5<\/h2>\n<p>Linux\u4e0b\u6709\u4e24\u79cd\u7528\u6237&#xff1a;<\/p>\n<ul>\n<li>\u8d85\u7ea7\u7528\u6237&#xff1a;\u53ef\u4ee5\u518dlinux\u7cfb\u7edf\u4e0b\u505a\u4efb\u4f55\u4e8b\u60c5&#xff0c;\u4e0d\u53d7\u9650\u5236<\/li>\n<li>\u666e\u901a\u7528\u6237&#xff1a;\u5728linux\u4e0b\u505a\u6709\u9650\u7684\u4e8b\u60c5<\/li>\n<li>\u8d85\u7ea7\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c#\u201d&#xff0c;\u666e\u901a\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c$\u201d<\/li>\n<\/ul>\n<p>\u8d85\u7ea7\u7528\u6237\u7684\u7528\u6237\u540d\u4e3aroot&#xff0c;\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u65e0\u969c\u788d\u5207\u6362\u5230\u666e\u901a\u7528\u6237&#xff0c;\u666e\u901a\u7528\u6237\u5207\u6362\u5230\u8d85\u7ea7\u7528\u6237\u9700\u8981\u8f93\u5165\u8d85\u7ea7\u7528\u6237\u7684\u5bc6\u7801&#xff0c;\u5982\u679c\u666e\u901a\u7528\u6237\u5728\u8fdb\u884c\u64cd\u4f5c\u65f6\u53d7\u9650&#xff0c;\u53ef\u4ee5\u5207\u6362\u5230\u8d85\u7ea7\u7528\u6237<\/p>\n<h2>2\u3001\u7528\u6237\u5207\u6362<\/h2>\n<p>\u547d\u4ee4&#xff1a;su [\u7528\u6237\u540d]<\/p>\n<li>\u4ece\u8d85\u7ea7\u7528\u6237root\u5207\u6362\u5230\u666e\u901a\u7528\u6237\u9700\u8981\u7528\u5230su \u7528\u6237\u540d&#xff0c;\u8def\u5f84\u4e0d\u4f1a\u53d8<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882840a7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u4ece\u666e\u901a\u7528\u6237\u5207\u6362\u5230\u8d85\u7ea7\u7528\u6237root&#xff0c;\u5219\u4f7f\u7528su root\u65f6\u4f1a\u51fa\u73b0\u63d0\u793a\u8981\u6c42\u8f93\u5165root\u7528\u6237\u7684\u5bc6\u7801<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f88296bef.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8865\u5145&#xff1a;\u547d\u4ee4&#xff1a;su &#8211;<\/p>\n<p>su -\u540c\u6837\u53ef\u4ee5\u8fdb\u884c\u8eab\u4efd\u7684\u5207\u6362<\/p>\n<p>su -\u548csu\u7684\u533a\u522b&#xff1a;<\/p>\n<p>su\u4ec5\u4ec5\u662f\u5207\u6362\u8eab\u4efd&#xff0c;\u6587\u4ef6\u6240\u5904\u7684\u8def\u5f84\u4e0d\u53d8&#xff0c;su -\u662f\u91cd\u65b0\u767b\u5f55\u5207\u6362\u6210\u8d85\u7ea7\u7528\u6237&#xff0c;\u8fde\u540c\u8def\u5f84\u548c\u8eab\u4efd\u4e00\u8d77\u6539\u53d8<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f8829f9d2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u4ece\u4e00\u4e2a\u666e\u901a\u7528\u6237\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u666e\u901a\u7528\u6237<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882abe81.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<p>\u4ece\u666e\u901a\u7528\u6237A\u5207\u6362\u5230\u666e\u901a\u7528\u6237B\u9700\u8981\u8f93\u5165B\u7684\u5bc6\u7801<\/p>\n<p>\u5bf9\u6307\u4ee4\u8fdb\u884c\u77ed\u6682\u63d0\u6743&#xff1a;\u547d\u4ee4sudo \u63d0\u6743\u6307\u4ee4<\/p>\n<p>\u5982\u679c\u60f3\u7528sudo\u8fdb\u884c\u63d0\u6743&#xff0c;\u9996\u5148\u5e94\u5728root\u8d85\u7ea7\u7528\u6237\u7684\u767d\u540d\u5355\u91cc&#xff0c;\u5426\u5219\u65e0\u6743\u4f7f\u7528\u6307\u4ee4&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882b8465.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u52a0\u5165\u767d\u540d\u5355\u540e&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882c15ae.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>2\u3001Linux\u6743\u9650\u7ba1\u7406<\/h2>\n<p>\u6743\u9650&#061;\u4eba&#043;\u89d2\u8272&#xff0c;\u6743\u9650\u4e5f\u548c\u6587\u4ef6\u7684\u5c5e\u6027\u6709\u5173<\/p>\n<p>\u6587\u4ef6\u5c5e\u6027&#xff1a;<\/p>\n<p>\u901a\u8fc7ls -l\u6765\u67e5\u770b\u76ee\u5f55\u4e0b\u6587\u4ef6\u7684\u5c5e\u6027<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882ca758.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882d3bf1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u56fe\u6240\u793a&#xff0c;\u6587\u4ef6\u6700\u524d\u9762\u7684- \u8868\u793a\u666e\u901a\u6587\u4ef6&#xff0c;\u540e\u9762\u7684\u4e09\u4e2a\u4e00\u7ec4&#xff0c;\u5171\u4e09\u7ec4&#xff0c;\u5206\u522b\u4e3a\u6587\u4ef6\u6240\u6709\u8005\u7684\u6743\u9650&#xff08;rw-&#xff09;&#xff0c;\u6587\u4ef6\u6240\u5c5e\u7ec4\u7684\u6743\u9650&#xff08;rw-&#xff09;&#xff0c;\u5176\u4ed6\u4eba\u7684\u6743\u9650&#xff08;r\u2013&#xff09;&#xff0c;r&#xff0c;w&#xff0c;x\u90fd\u662f\u6587\u4ef6\u5c5e\u6027&#xff0c;\u6709\u5c5e\u6027\u5c31\u7528\u76f8\u5e94\u7684\u5b57\u6bcd&#xff0c;\u6ca1\u6709\u5c5e\u6027\u5c31\u7528-\u4ee3\u66ff<\/p>\n<ul>\n<li>r&#xff1a;\u8bfb\u6743\u9650&#xff0c;\u5bf9\u4e8e\u666e\u901a\u6587\u4ef6\u800c\u8a00&#xff0c;\u5177\u6709\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u7684\u6743\u9650&#xff1b;\u5bf9\u76ee\u5f55\u6765\u8bf4&#xff0c;\u5177\u6709\u6d4f\u89c8\u8be5\u76ee\u5f55\u4fe1\u606f\u7684\u6743\u9650<\/li>\n<li>w&#xff1a;\u5199\u6743\u9650&#xff0c;\u5bf9\u666e\u901a\u6587\u4ef6\u800c\u8a00&#xff0c;\u5177\u6709\u4fee\u6539\u6587\u4ef6\u5185\u5bb9\u7684\u6743\u9650&#xff1b;\u5bf9\u76ee\u5f55\u6765\u8bf4\u5177\u6709\u5220\u9664\u79fb\u52a8\u76ee\u5f55\u5185\u6587\u4ef6\u7684\u6743\u9650<\/li>\n<li>x&#xff1a;\u53ef\u6267\u884c\u6743\u9650&#xff0c;\u5bf9\u666e\u901a\u6587\u4ef6\u800c\u8a00&#xff0c;\u5177\u6709\u6267\u884c\u6587\u4ef6\u7684\u6743\u9650&#xff1b;\u5bf9\u76ee\u5f55\u6765\u8bf4&#xff0c;\u5177\u6709\u8fdb\u5165\u76ee\u5f55\u7684\u6743\u9650<\/li>\n<li>-&#xff1a;\u8868\u793a\u4e0d\u5177\u6709\u8be5\u9879\u6743\u9650<\/li>\n<\/ul>\n<p>\u6587\u4ef6\u7c7b\u578b&#xff1a;<\/p>\n<ul>\n<li>d&#xff1a;\u6587\u4ef6\u5939<\/li>\n<li>-&#xff1a;\u666e\u901a\u6587\u4ef6<\/li>\n<li>l&#xff1a;\u8f6f\u94fe\u63a5&#xff08;\u7c7b\u4f3cWindows\u7684\u5feb\u6377\u65b9\u5f0f&#xff09;<\/li>\n<li>b&#xff1a;\u5757\u8bbe\u5907\u6587\u4ef6&#xff08;\u4f8b\u5982\u786c\u76d8\u3001\u5149\u9a71\u7b49&#xff09;<\/li>\n<li>p&#xff1a;\u7ba1\u9053\u6587\u4ef6<\/li>\n<li>c&#xff1a;\u5b57\u7b26\u8bbe\u5907\u6587\u4ef6&#xff08;\u4f8b\u5982\u5c4f\u5e55\u7b49\u4e32\u53e3\u8bbe\u5907&#xff09;<\/li>\n<li>s&#xff1a;\u5957\u63a5\u53e3\u6587\u4ef6<\/li>\n<\/ul>\n<h2>3\u3001Linux\u4e2d\u7684\u6587\u4ef6\u8bbf\u95ee\u8005<\/h2>\n<ul>\n<li>\u6587\u4ef6\u548c\u6587\u4ef6\u76ee\u5f55\u7684\u6240\u6709\u8005&#xff1a;u<\/li>\n<li>\u6587\u4ef6\u548c\u6587\u4ef6\u76ee\u5f55\u7684\u6240\u6709\u8005\u6240\u5728\u7684\u7ec4\u7684\u7528\u6237&#xff1a;g<\/li>\n<li>\u5176\u5b83\u7528\u6237&#xff1a;o<\/li>\n<\/ul>\n<p>\u6240\u5c5e\u7ec4\u6307\u7684\u7528\u6237\u662f\u6307\u6587\u4ef6\u6743\u9650\u5728\u767d\u540d\u5355\u4e2d\u7684\u7528\u6237<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882dd7b6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e0a\u9762\u7684\u7b2c\u4e00\u5217me\u4ee3\u8868\u6587\u4ef6\u7684\u62e5\u6709\u8005&#xff0c;\u7b2c\u4e8c\u5217me\u4ee3\u8868\u6240\u5c5e\u7ec4&#xff0c;\u5f53\u7528\u6237\u64cd\u4f5c\u6587\u4ef6\u65f6&#xff0c;\u6587\u4ef6\u4f1a\u5148\u770b\u7528\u6237\u662f\u5426\u662f\u62e5\u6709\u8005&#xff0c;\u82e5\u4e0d\u662f\u5219\u518d\u770b\u7528\u6237\u662f\u5426\u662f\u6240\u5c5e\u7ec4&#xff0c;\u82e5\u4e0d\u662f\u6240\u5c5e\u7ec4\u5219\u662f\u5176\u4ed6\u4eba<\/p>\n<p>eg&#xff1a;<\/p>\n<p>\u4e0a\u56fe\u4e2dme\u65e2\u662f\u6240\u6709\u8005\u4e5f\u662f\u6240\u5c5e\u7ec4&#xff0c;\u90a3\u4e48\u5bf9\u6587\u4ef6\u8fdb\u884c\u64cd\u4f5c\u65f6\u662f\u6240\u6709\u8005\u8eab\u4efd\u8fd8\u662f\u6240\u5c5e\u7ec4\u8eab\u4efd&#xff1f;<\/p>\n<p>\u5f53\u6240\u6709\u8005\u548c\u6240\u5c5e\u7ec4\u90fd\u662fme\u65f6<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882e6bd2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u628atest.txt\u7684\u6240\u6709\u8005\u6539\u4e3aroot&#xff0c;\u53bb\u6389\u6240\u6709\u8005\u8bfb\u7684\u6743\u9650&#xff0c;\u7559\u7ed9\u6240\u5728\u7ec4\u8bfb\u7684\u6743\u9650<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882f0c4a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u518d\u7528me\u8d26\u53f7\u8bbf\u95eetest.txt\u4e2d\u7684\u5185\u5bb9<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f88305769.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7531\u4e0a\u56fe\u53ef\u77e5&#xff0c;\u7528\u6237\u64cd\u4f5c\u6587\u4ef6\u65f6&#xff0c;\u6587\u4ef6\u4f1a\u5148\u770b\u7528\u6237\u662f\u5426\u662f\u62e5\u6709\u8005&#xff0c;\u82e5\u4e0d\u662f\u5219\u518d\u770b\u7528\u6237\u662f\u5426\u662f\u6240\u5c5e\u7ec4&#xff0c;\u90fd\u4e0d\u662f\u5219\u662f\u5176\u4ed6\u4eba<\/p>\n<h2>4\u3001\u6743\u9650\u7684\u4fee\u6539<\/h2>\n<h3>4.1 chmod<\/h3>\n<p>\u529f\u80fd&#xff1a;\u8bbe\u7f6e\u6587\u4ef6\u7684\u8bbf\u95ee\u6743\u9650<\/p>\n<p>\u683c\u5f0f&#xff1a;chmod [\u53c2\u6570] \u6743\u9650 \u6587\u4ef6\u540d<\/p>\n<p>\u5e38\u7528\u9009\u9879&#xff1a;<\/p>\n<ul>\n<li>R -&gt; \u9012\u5f52\u4fee\u6539\u5f55\u6587\u4ef6\u7684\u6743\u9650<\/li>\n<li>\u8bf4\u660e&#xff1a;\u53ea\u6709\u6587\u4ef6\u7684\u62e5\u6709\u8005\u548croot\u624d\u53ef\u4ee5\u6539\u53d8\u6587\u4ef6\u7684\u6743\u9650<\/li>\n<\/ul>\n<p>chmod\u547d\u4ee4\u6743\u9650\u503c\u7684\u683c\u5f0f&#xff1a;<\/p>\n<ul>\n<li>u&#xff1a;\u62e5\u6709\u8005<\/li>\n<li>g&#xff1a;\u6240\u5c5e\u7ec4<\/li>\n<li>o&#xff1a;\u5176\u5b83\u7528\u6237<\/li>\n<li>a&#xff1a;\u6240\u6709\u7528\u6237<\/li>\n<li>&#043;&#xff1a;\u5411\u6743\u9650\u8303\u56f4\u589e\u52a0\u6743\u9650\u4ee3\u53f7\u6240\u8868\u793a\u7684\u6743\u9650<\/li>\n<li>-&#xff1a;\u5411\u6743\u9650\u8303\u56f4\u53d6\u6d88\u6743\u9650\u4ee3\u53f7\u6240\u8868\u793a\u7684\u6743\u9650<\/li>\n<li>&#061;&#xff1a;\u5411\u6743\u9650\u8303\u56f4\u8d4b\u4e88\u6743\u9650\u4ee3\u53f7\u6240\u8868\u793a\u7684\u6743\u9650<\/li>\n<\/ul>\n<p>eg&#xff1a;<\/p>\n<p>chmod u&#043;w test.txt &#xff1a;\u7ed9\u6587\u4ef6\u62e5\u6709\u8005\u589e\u52a0\u5199\u6743\u9650<\/p>\n<p>chmod o-x test.txt &#xff1a;\u53d6\u6d88\u5176\u4ed6\u7528\u6237\u7684\u6267\u884c\u6743\u9650<\/p>\n<p>chmod u&#043;w,g&#043;r,o&#043;r test.txt &#xff1a;\u589e\u52a0\u62e5\u6709\u8005\u5199\u6743\u9650&#xff0c;\u6240\u5c5e\u7ec4\u8bfb\u6743\u9650&#xff0c;\u5176\u4ed6\u7528\u6237\u8bfb\u6743\u9650<\/p>\n<h3>4.2 \u4e09\u4f4d8\u8fdb\u5236\u8868\u793a\u6587\u4ef6\u6743\u9650\u503c<\/h3>\n<table>\n<tr>\u6743\u9650\u7b26\u53f7\u4e8c\u8fdb\u5236\u516b\u8fdb\u5236\u6570\u503c<\/tr>\n<tbody>\n<tr>\n<td>\u2014<\/td>\n<td>000<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>\u2013x<\/td>\n<td>001<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>-w-<\/td>\n<td>010<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>-wx<\/td>\n<td>011<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>r\u2013<\/td>\n<td>100<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>r-x<\/td>\n<td>101<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>rw-<\/td>\n<td>110<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>rwx<\/td>\n<td>111<\/td>\n<td>7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>chmod 777 test.txt &#xff1a;\u5c06\u6240\u6709\u7528\u6237\u7684\u6743\u9650\u90fd\u8bbe\u7f6e\u6210rwx<\/p>\n<h3>4.3 chown<\/h3>\n<p>\u529f\u80fd&#xff1a;\u4fee\u6539\u6587\u4ef6\u7684\u62e5\u6709\u8005<br \/>\n\u683c\u5f0f&#xff1a;chown [\u53c2\u6570] \u7528\u6237\u540d \u6587\u4ef6\u540d<\/p>\n<p>\u628a\u4e1c\u897f\u7ed9\u522b\u4eba\u65f6&#xff0c;\u9700\u8981\u5f81\u5f97\u522b\u4eba\u540c\u610f&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u8f6c\u4ea4\u7ed9\u522b\u4eba&#xff0c;\u540c\u6837\u4e00\u4e2a\u8d26\u53f7\u7684\u6587\u4ef6\u4e0d\u80fd\u968f\u610f\u8f6c\u79fb\u5230\u53e6\u4e00\u4e2a\u8d26\u53f7\u4e2d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f8830e436.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f46root\u53ef\u4ee5\u628a\u4e00\u4e2a\u8d26\u53f7\u4e2d\u7684\u6587\u4ef6\u8f6c\u4ea4\u7ed9\u53e6\u5916\u4e00\u4e2a\u8d26\u53f7<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f883175a2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>chown aq test.txt &#xff1a;\u628atest.txt\u6587\u4ef6\u7684\u62e5\u6709\u8005\u6539\u6210aq<\/p>\n<p>chown aq:me test.txt &#xff1a;\u628atest.txt\u6587\u4ef6\u7684\u62e5\u6709\u8005\u6539\u6210aq&#xff0c;\u6240\u5c5e\u7ec4\u6539\u4e3ame<\/p>\n<h3>4.4 chgrp<\/h3>\n<p>\u529f\u80fd&#xff1a;\u4fee\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6240\u5c5e\u7ec4<br \/>\n\u683c\u5f0f&#xff1a;chgrp [\u53c2\u6570] \u7528\u6237\u7ec4\u540d \u6587\u4ef6\u540d<\/p>\n<p>\u5e38\u7528\u9009\u9879&#xff1a;<\/p>\n<p>-R \u9012\u5f52\u4fee\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6240\u5c5e\u7ec4<\/p>\n<p>\u5b9e\u4f8b&#xff1a;<\/p>\n<p>chgrp users \/abc\/f2&#xff1a;\u8868\u793a\u628af2\u6587\u4ef6\u7684\u6240\u5c5e\u7ec4\u6539\u6210users<\/p>\n<h3>4.5 umask\u63a9\u7801<\/h3>\n<p>Linux\u4e2d\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55\u7684\u9ed8\u8ba4\u6743\u9650\u662f777&#xff0c;\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u9ed8\u8ba4\u6743\u9650\u662f666&#xff0c;\u4f46\u5b9e\u9645\u4e0a\u521b\u5efa\u540e\u5f80\u5f80\u4e0d\u662f\u8fd9\u4e2a\u503c&#xff0c;\u539f\u56e0\u662f\u53d7\u63a9\u7801umask\u7684\u5f71\u54cd<\/p>\n<p>\u9ed8\u8ba4\u6743\u9650\u63a9\u7801&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f88321861.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8d85\u7ea7\u7528\u6237\u4e3a0022&#xff0c;\u666e\u901a\u7528\u6237\u4e3a0002<\/p>\n<p>\u6240\u4ee5\u6700\u7ec8\u6743\u9650 &#061; \u5176\u5b9e\u6743\u9650&amp;&#xff08;~umask&#xff09;<\/p>\n<p>umask 755 \u8868\u793a\u4fee\u6539\u9ed8\u8ba4\u63a9\u7801\u4e3a755<\/p>\n<h3>4.6 \u76ee\u5f55\u7684\u6743\u9650<\/h3>\n<ul>\n<li>\u53ef\u6267\u884c\u6743\u9650&#xff1a;\u5982\u679c\u76ee\u5f55\u6ca1\u6709\u53ef\u6267\u884c\u6743\u9650&#xff0c;\u5219\u65e0\u6cd5cd\u5230\u76ee\u5f55\u4e2d<\/li>\n<li>\u53ef\u8bfb\u6743\u9650&#xff1a;\u5982\u679c\u76ee\u5f55\u6ca1\u6709\u53ef\u8bfb\u6743\u9650&#xff0c;\u5219\u65e0\u6cd5\u7528ls\u7b49\u547d\u4ee4\u67e5\u770b\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u5185\u5bb9<\/li>\n<li>\u53ef\u5199\u6743\u9650&#xff1a;\u5982\u679c\u76ee\u5f55\u6ca1\u6709\u53ef\u5199\u6743\u9650&#xff0c;\u5219\u65e0\u6cd5\u5728\u76ee\u5f55\u4e2d\u521b\u5efa\u6587\u4ef6&#xff0c;\u4e5f\u65e0\u6cd5\u5728\u76ee\u5f55\u4e2d\u5220\u9664\u6587\u4ef6<\/li>\n<\/ul>\n<p>\u5220\u9664lesson2\u7684x\u6743\u9650&#xff0c;\u65e0\u6cd5\u8fdb\u5165lesson2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f8832a29e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5220\u9664lesson1\u7684r\u6743\u9650&#xff0c;\u65e0\u6cd5\u67e5\u770blesson1\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f883335f1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5220\u9664lesson1\u7684w\u6743\u9650&#xff0c;\u65e0\u6cd5\u5728\u76ee\u5f55\u4e2d\u5220\u9664\u6216\u521b\u5efa\u6587\u4ef6<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f8833d11a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>4.7 \u7c98\u6ede\u4f4d<\/h3>\n<p>\u5982\u679c\u4e24\u4e2a\u7528\u6237\u60f3\u5171\u4eab\u4e00\u4e2a\u6587\u4ef6&#xff0c;\u4f46\u662f\u5176\u4ed6\u7528\u6237\u65e0\u6cd5\u8fdb\u5165\u53e6\u4e00\u4e2a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u6765\u67e5\u770b\u6587\u4ef6&#xff0c;\u8fd9\u65f6\u9700\u8981\u901a\u8fc7root\u8d85\u7ea7\u7528\u6237\u5efa\u7acb\u4e00\u4e2a\u5171\u4eab\u6587\u4ef6<\/p>\n<p>\u4f46\u5982\u679c\u76ee\u5f55\u6709w\u5199\u6743\u9650&#xff0c;\u90a3\u4e48\u522b\u7684\u7528\u6237\u53ef\u4ee5\u5728\u76ee\u5f55\u4e0b\u521b\u5efa\u3001\u5220\u9664\u3001\u4fee\u6539\u6587\u4ef6&#xff0c;\u8fd9\u65f6\u5982\u679c\u60f3\u4fdd\u7559w\u6743\u9650\u5e76\u89e3\u51b3\u7528\u6237\u4e92\u5220\u6587\u4ef6\u7684\u64cd\u4f5c&#xff0c;\u9700\u8981\u7528\u5230\u7c98\u6ede\u4f4d<\/p>\n<p>chmod o&#043;t shared &#xff1a;\u7ed9\u5171\u4eab\u76ee\u5f55\u7684other\u52a0\u4e0a\u7c98\u6ede\u4f4d\u6743\u9650<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234259-6a63f8834746d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>t\u662f\u4e00\u79cd\u7279\u6b8a\u7684x\u6743\u9650&#xff0c;\u53ea\u5141\u8bb8\u6587\u4ef6\u62e5\u6709\u8005\u6216root\u80fd\u5220\u9664\u8fd9\u4e2a\u6587\u4ef6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u6743\u9650<br \/>\n1\u3001Linux\u6743\u9650\u7684\u6982\u5ff5<br \/>\nLinux\u4e0b\u6709\u4e24\u79cd\u7528\u6237&#xff1a;<br \/>\n\u8d85\u7ea7\u7528\u6237&#xff1a;\u53ef\u4ee5\u518dlinux\u7cfb\u7edf\u4e0b\u505a\u4efb\u4f55\u4e8b\u60c5&#xff0c;\u4e0d\u53d7\u9650\u5236\u666e\u901a\u7528\u6237&#xff1a;\u5728linux\u4e0b\u505a\u6709\u9650\u7684\u4e8b\u60c5\u8d85\u7ea7\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c#\u201d&#xff0c;\u666e\u901a\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c$\u201d<br \/>\n\u8d85\u7ea7\u7528\u6237\u7684\u7528\u6237\u540d\u4e3aroot&#xff0c;\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u65e0\u969c\u788d\u5207\u6362\u5230\u666e\u901a\u7528\u6237&#xff0c;\u666e\u901a\u7528\u6237\u5207\u6362\u5230\u8d85\u7ea7\u7528\u6237\u9700\u8981\u8f93\u5165\u8d85\u7ea7\u7528\u6237\u7684\u5bc6\u7801&#xff0c;\u5982\u679c\u666e\u901a\u7528\u6237\u5728\u8fdb\u884c\u64cd\u4f5c\u65f6\u53d7\u9650&#xff0c;<\/p>\n","protected":false},"author":2,"featured_media":82236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58],"topic":[],"class_list":["post-82255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u3011\u6743\u9650 - \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\/82255.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u3011\u6743\u9650 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Linux\u6743\u9650 1\u3001Linux\u6743\u9650\u7684\u6982\u5ff5 Linux\u4e0b\u6709\u4e24\u79cd\u7528\u6237&#xff1a; \u8d85\u7ea7\u7528\u6237&#xff1a;\u53ef\u4ee5\u518dlinux\u7cfb\u7edf\u4e0b\u505a\u4efb\u4f55\u4e8b\u60c5&#xff0c;\u4e0d\u53d7\u9650\u5236\u666e\u901a\u7528\u6237&#xff1a;\u5728linux\u4e0b\u505a\u6709\u9650\u7684\u4e8b\u60c5\u8d85\u7ea7\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c#\u201d&#xff0c;\u666e\u901a\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c$\u201d \u8d85\u7ea7\u7528\u6237\u7684\u7528\u6237\u540d\u4e3aroot&#xff0c;\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u65e0\u969c\u788d\u5207\u6362\u5230\u666e\u901a\u7528\u6237&#xff0c;\u666e\u901a\u7528\u6237\u5207\u6362\u5230\u8d85\u7ea7\u7528\u6237\u9700\u8981\u8f93\u5165\u8d85\u7ea7\u7528\u6237\u7684\u5bc6\u7801&#xff0c;\u5982\u679c\u666e\u901a\u7528\u6237\u5728\u8fdb\u884c\u64cd\u4f5c\u65f6\u53d7\u9650&#xff0c;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/82255.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T23:43:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882840a7.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82255.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/82255.html\",\"name\":\"\u3010Linux\u3011\u6743\u9650 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T23:43:00+00:00\",\"dateModified\":\"2026-07-24T23:43:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/82255.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/82255.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82255.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u3011\u6743\u9650\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Linux\u3011\u6743\u9650 - \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\/82255.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u3011\u6743\u9650 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Linux\u6743\u9650 1\u3001Linux\u6743\u9650\u7684\u6982\u5ff5 Linux\u4e0b\u6709\u4e24\u79cd\u7528\u6237&#xff1a; \u8d85\u7ea7\u7528\u6237&#xff1a;\u53ef\u4ee5\u518dlinux\u7cfb\u7edf\u4e0b\u505a\u4efb\u4f55\u4e8b\u60c5&#xff0c;\u4e0d\u53d7\u9650\u5236\u666e\u901a\u7528\u6237&#xff1a;\u5728linux\u4e0b\u505a\u6709\u9650\u7684\u4e8b\u60c5\u8d85\u7ea7\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c#\u201d&#xff0c;\u666e\u901a\u7528\u6237\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u662f\u201c$\u201d \u8d85\u7ea7\u7528\u6237\u7684\u7528\u6237\u540d\u4e3aroot&#xff0c;\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u65e0\u969c\u788d\u5207\u6362\u5230\u666e\u901a\u7528\u6237&#xff0c;\u666e\u901a\u7528\u6237\u5207\u6362\u5230\u8d85\u7ea7\u7528\u6237\u9700\u8981\u8f93\u5165\u8d85\u7ea7\u7528\u6237\u7684\u5bc6\u7801&#xff0c;\u5982\u679c\u666e\u901a\u7528\u6237\u5728\u8fdb\u884c\u64cd\u4f5c\u65f6\u53d7\u9650&#xff0c;","og_url":"https:\/\/www.wsisp.com\/helps\/82255.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T23:43:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724234258-6a63f882840a7.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/82255.html","url":"https:\/\/www.wsisp.com\/helps\/82255.html","name":"\u3010Linux\u3011\u6743\u9650 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T23:43:00+00:00","dateModified":"2026-07-24T23:43:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/82255.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/82255.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/82255.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u3011\u6743\u9650"}]},{"@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\/82255","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=82255"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82255\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/82236"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=82255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=82255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=82255"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=82255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}