{"id":294444,"date":"2024-11-19T12:11:04","date_gmt":"2024-11-19T04:11:04","guid":{"rendered":"https:\/\/lrxjmw.cn\/zwlczxtzwjqx.html"},"modified":"2024-11-19T12:11:04","modified_gmt":"2024-11-19T04:11:04","slug":"zwlczxtzwjqx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/zwlczxtzwjqx.html","title":{"rendered":"\u638c\u63e1 Linux \u64cd\u4f5c\u7cfb\u7edf\u4e2d\u6587\u4ef6\u6743\u9650\u7684\u6388\u4e88\u65b9\u6cd5\uff0c\u786e\u4fdd\u7cfb\u7edf\u5b89\u5168\u4e0e\u6570\u636e\u4fdd\u62a4"},"content":{"rendered":"

\u5728Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf<\/a>\u4e2d\uff0c\u8d4b\u4e88\u7528\u6237\u6587\u4ef6\u6743\u9650\u662f\u4e00\u9879\u81f3\u5173\u91cd\u8981\u7684\u64cd\u4f5c\u3002\u8fd9\u4e00\u884c\u4e3a\u5173\u4e4e\u7cfb\u7edf\u7684\u6574\u4f53\u5b89\u5168\uff0c\u4ee5\u53ca\u7528\u6237\u5bf9\u6587\u4ef6\u7684\u4f7f\u7528\u6743\u9650\u3002\u638c\u63e1\u5982\u4f55\u51c6\u786e\u8fdb\u884c\u6587\u4ef6\u6388\u6743\uff0c\u5bf9\u4e8e\u6709\u6548\u7ba1\u7406\u6587\u4ef6\u8d44\u6e90\u53ca\u786e\u4fdd\u6570\u636e\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002<\/p>\n

\u6587\u4ef6\u6743\u9650\u57fa\u7840\u6982\u5ff5<\/b><\/p>\n

Linux<\/a>\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u6743\u9650\u4e3b\u8981\u5206\u4e3a\u4e09\u7c7b\uff1a\u8bfb\u53d6\u3001\u5199\u5165\u548c\u6267\u884c\u3002\u8bfb\u53d6\u6743\u9650\u8ba9\u7528\u6237\u80fd\u591f\u67e5\u770b\u6587\u4ef6\u7684\u5177\u4f53\u5185\u5bb9\uff0c\u5982\u679c\u662f\u76ee\u5f55\uff0c\u5219\u53ef\u4ee5\u6d4f\u89c8\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002\u5199\u5165\u6743\u9650\u5219\u8d4b\u4e88\u7528\u6237\u4fee\u6539\u6587\u4ef6\u5185\u5bb9\u6216\u589e\u5220\u76ee\u5f55\u5185\u6587\u4ef6\u7684\u80fd\u529b\u3002\u800c\u6267\u884c\u6743\u9650\u5219\u5e94\u7528\u4e8e\u53ef\u6267\u884c\u6587\u4ef6\u6216\u5141\u8bb8\u7528\u6237\u8fdb\u5165\u76ee\u5f55\u3002\u6bd4\u5982\uff0c\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5982\u679c\u7528\u6237\u62e5\u6709\u8bfb\u53d6\u6743\u9650\uff0c\u4fbf\u80fd\u6d4f\u89c8\u5176\u4e2d\u7684\u6587\u5b57\u3002\u82e5\u8981\u7f16\u8f91\u8be5\u6587\u4ef6\uff0c\u5219\u5fc5\u987b\u5177\u5907\u5199\u5165\u6743\u9650\u3002\u81f3\u4e8e\u811a\u672c\u6587\u4ef6\uff0c\u53ea\u6709\u5728\u62e5\u6709\u6267\u884c\u6743\u9650\u7684\u60c5\u51b5\u4e0b\uff0c\u624d\u80fd\u6210\u529f\u8fd0\u884c\u3002<\/p>\n

\u7528\u6237\u53ef\u4ee5\u5206\u4e3a\u6587\u4ef6\u7684\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u7684\u6210\u5458\u4ee5\u53ca\u5176\u4ed6\u666e\u901a\u7528\u6237\u4e09\u5927\u7c7b\u3002\u5bf9\u4e8e\u6587\u4ef6\uff0c\u4e0d\u540c\u7c7b\u522b\u7684\u7528\u6237\u62e5\u6709\u4e0d\u540c\u7684\u6743\u9650\u3002\u4f8b\u5982\uff0c\u82e5\u67d0\u7528\u6237\u81ea\u5df1\u521b\u5efa\u4e86\u4e00\u4e2a\u6587\u4ef6\uff0c\u90a3\u4e48\u4f5c\u4e3a\u6240\u6709\u8005\uff0c\u4ed6\u5c06\u62e5\u6709\u5168\u90e8\u7684\u6743\u9650\uff1b\u800c\u6240\u5c5e\u7ec4\u7684\u6210\u5458\u548c\u5176\u5b83\u7528\u6237\u53ef\u80fd\u53ea\u4eab\u6709\u90e8\u5206\u6743\u9650\uff0c\u8fd9\u4e9b\u6743\u9650\u7684\u8bbe\u5b9a\u90fd\u662f\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u6765\u7075\u6d3b\u8c03\u6574\u7684\u3002<\/p>\n

\u6388\u6743linux\u6587\u4ef6\u6267\u884c\u6743\u9650_linux\u6587\u4ef6\u5939\u6388\u6743\u7528\u6237_linux \u6587\u4ef6\u6388\u6743\u7ed9\u7528\u6237<\/p>\n

\u4f7f\u7528chmod\u547d\u4ee4<\/a>\u6388\u6743<\/b><\/p>\n

chmod\u547d\u4ee4\uff0c\u4f5c\u4e3a\u57fa\u7840\u7684\u6587\u4ef6\u6743\u9650\u8bbe\u7f6e\u5de5\u5177\uff0c\u5177\u5907\u4e24\u79cd\u64cd\u4f5c\u5f62\u5f0f\u3002\u5176\u4e2d\u4e4b\u4e00\u662f\u7b26\u53f7\u6a21\u5f0f\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u82e5\u8981\u5728\u6587\u4ef6a.txt\u4e0a\u4e3a\u6240\u6709\u8005\u6dfb\u52a0\u5199\u6743\u9650\uff0c\u53ef\u4ee5\u8f93\u5165\u201cchmodu+wa.txt\u201d\u8fd9\u4e00\u547d\u4ee4\u3002\u5728\u8fd9\u5176\u4e2d\uff0c\u201cu\u201d\u6307\u7684\u662f\u6240\u6709\u8005\uff0c\u201c+\u201d\u7b26\u53f7\u610f\u5473\u7740\u6dfb\u52a0\u6743\u9650\uff0c\u800c\u201cw\u201d\u5219\u4ee3\u8868\u5199\u6743\u9650\u3002<\/p>\n

\u6570\u5b57\u6a21\u5f0f\u4e2d\uff0c\u6743\u9650\u7ec4\u5408\u901a\u8fc7\u6570\u5b57\u6765\u8868\u793a\u3002\u6bd4\u5982\uff0c\u8bfb\u3001\u5199\u3001\u6267\u884c\u6743\u9650\u5206\u522b\u75284\u30012\u30011\u8fd9\u4e09\u4e2a\u6570\u5b57\u6765\u6807\u8bc6\u3002\u82e5\u8981\u8d4b\u4e88\u6587\u4ef6\u6240\u6709\u8005\u5168\u90e8\u6743\u9650\uff0c\u6240\u5c5e\u7ec4\u8bfb\u548c\u6267\u884c\u6743\u9650linux \u6587\u4ef6\u6388\u6743\u7ed9\u7528\u6237<\/strong>\uff0c\u5176\u4ed6\u7528\u6237\u4ec5\u8bfb\u6743\u9650\uff0c\u90a3\u4e48\u6570\u5b57\u7ec4\u5408\u5c31\u662f754\u3002\u53ea\u9700\u8f93\u5165\u201cchmod754a.txt\u201d\u8fd9\u4e00\u547d\u4ee4\uff0c\u64cd\u4f5c\u65e2\u7b80\u5355\u53c8\u5feb\u6377\u3002\u7136\u800c\uff0c\u8981\u719f\u7ec3\u8fd0\u7528\u8fd9\u4e00\u547d\u4ee4\uff0c\u5fc5\u987b\u5bf9\u6570\u5b57\u7ec4\u5408\u7684\u542b\u4e49\u6709\u6df1\u523b\u7684\u7406\u89e3\u3002<\/p>\n

linux\u6587\u4ef6\u5939\u6388\u6743\u7528\u6237_linux \u6587\u4ef6\u6388\u6743\u7ed9\u7528\u6237_\u6388\u6743linux\u6587\u4ef6\u6267\u884c\u6743\u9650<\/p>\n

\u6743\u9650\u66f4\u6539\u7684\u5e38\u89c1\u573a\u666f<\/b><\/p>\n

\u5728\u534f\u540c\u5de5\u4f5c\u7684\u73af\u5883\u4e2d\uff0c\u6587\u4ef6\u6388\u6743\u64cd\u4f5c\u5341\u5206\u666e\u904d\u3002\u6bd4\u5982\uff0c\u67d0\u4e2a\u9879\u76ee\u6587\u6863\u901a\u5e38\u7531\u5f00\u53d1\u56e2\u961f\u5171\u540c\u62e5\u6709\u3002\u56e2\u961f\u6210\u5458\u5fc5\u987b\u5177\u5907\u8bfb\u5199\u6743\u9650\uff0c\u4ee5\u4fbf\u5171\u540c\u5b8c\u6210\u6587\u6863\u7684\u5b8c\u5584\u5de5\u4f5c\u3002\u800c\u5176\u4ed6\u56e2\u961f\u6216\u65e0\u5173\u4eba\u5458\uff0c\u4ed6\u4eec\u53ef\u80fd\u4ec5\u6709\u9605\u8bfb\u6743\u9650\uff0c\u6216\u8005\u751a\u81f3\u6ca1\u6709\u4efb\u4f55\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n

\u5728\u670d\u52a1\u5668\u7ef4\u62a4\u8fc7\u7a0b\u4e2d\uff0c\u67d0\u4e9b\u914d\u7f6e\u6587\u4ef6\u7684\u7ba1\u7406\u6743\u9650\u4ec5\u9650\u4e8e\u7ba1\u7406\u5458\u3002\u4ed6\u4eec\u62e5\u6709\u5168\u9762\u63a7\u5236\u6743\uff0c\u800c\u666e\u901a\u7528\u6237\u4ec5\u80fd\u9605\u8bfb\u76f8\u5173\u914d\u7f6e\u4fe1\u606f\u3002\u4ee5Nginx\u914d\u7f6e\u6587\u4ef6\u4e3a\u4f8b\uff0c\u82e5\u6587\u4ef6\u6388\u6743\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u80fd\u4f1a\u5f15\u53d1\u4e25\u91cd\u7684\u5b89\u5168\u9690\u60a3\u3002\u4f8b\u5982\uff0c\u914d\u7f6e\u88ab\u975e\u6cd5\u7be1\u6539linux\u5f00\u53d1\u57f9\u8bad\uff0c\u8fdb\u800c\u5bfc\u81f4\u7f51\u7ad9\u670d\u52a1\u5d29\u6e83\u3002<\/p>\n

linux\u6587\u4ef6\u5939\u6388\u6743\u7528\u6237_\u6388\u6743linux\u6587\u4ef6\u6267\u884c\u6743\u9650_linux \u6587\u4ef6\u6388\u6743\u7ed9\u7528\u6237<\/p>\n

\u7279\u6b8a\u6743\u9650\u76f8\u5173<\/b><\/p>\n

\u7279\u6b8a\u6743\u9650\u91cc\u7684SUID\u3001SGID\u548cSticky\u4f4d\uff0c\u540c\u6837\u662f\u6587\u4ef6\u6388\u6743\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002SUID\u6743\u9650\u5141\u8bb8\u7528\u6237\u4ee5\u6587\u4ef6\u6240\u6709\u8005\u7684\u8eab\u4efd\u6267\u884c\u53ef\u6267\u884c\u6587\u4ef6\u3002\u4ee5passwd\u547d\u4ee4\u4e3a\u4f8blinux \u6587\u4ef6\u6388\u6743\u7ed9\u7528\u6237<\/strong>\uff0c\u666e\u901a\u7528\u6237\u5728\u6267\u884c\u6b64\u547d\u4ee4\u65f6\uff0c\u5b9e\u9645\u4e0a\u662f\u4ee5\u6839\u7528\u6237\u8eab\u4efd\u8fd0\u884c\u7684\u3002\u8fd9\u662f\u56e0\u4e3a\u8be5\u6587\u4ef6\u5177\u6709SUID\u6743\u9650\uff0c\u4ece\u800c\u786e\u4fdd\u4e86\u5bc6\u7801\u4fee\u6539\u80fd\u591f\u6b63\u786e\u5199\u5165\u5230\u5e95\u5c42\u6587\u4ef6\u7cfb\u7edf\u4e2d\u3002<\/p>\n

SGID\u5728\u76ee\u5f55\u4e2d\u7684\u5e94\u7528\uff0c\u4f7f\u5f97\u65b0\u5efa\u6587\u4ef6\u4f1a\u81ea\u52a8\u7ee7\u627f\u6240\u5728\u76ee\u5f55\u7684\u7ec4\u5c5e\u6027\uff0c\u8fd9\u4e00\u7279\u6027\u5728\u591a\u4eba\u5171\u540c\u4f7f\u7528\u7684\u76ee\u5f55\u4e2d\u5c24\u4e3a\u5b9e\u7528\u3002\u800cSticky\u4f4d\uff0c\u5f53\u5e94\u7528\u4e8e\u516c\u5171\u53ef\u5199\u76ee\u5f55\u65f6\uff0c\u80fd\u786e\u4fdd\u53ea\u6709\u6587\u4ef6\u7684\u6240\u6709\u8005\u624d\u6709\u6743\u9650\u5220\u9664\u81ea\u5df1\u7684\u6587\u4ef6\uff0c\u6709\u6548\u9632\u6b62\u4e86\u5176\u4ed6\u7528\u6237\u4e0d\u5c0f\u5fc3\u5220\u9664\u4ed6\u4eba\u6587\u4ef6\u7684\u60c5\u51b5\u53d1\u751f\u3002<\/p>\n

linux \u6587\u4ef6\u6388\u6743\u7ed9\u7528\u6237_\u6388\u6743linux\u6587\u4ef6\u6267\u884c\u6743\u9650_linux\u6587\u4ef6\u5939\u6388\u6743\u7528\u6237<\/p>\n

\u6743\u9650\u68c0\u67e5\u4e0e\u6392\u67e5\u6545\u969c<\/b><\/p>\n

\u4f7f\u7528\u201cls-l\u201d\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u6587\u4ef6\u6743\u9650\uff0c\u8be5\u547d\u4ee4\u4f1a\u660e\u786e\u663e\u793a\u6587\u4ef6\u7684\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u548c\u6743\u9650\u8be6\u60c5\u3002\u9047\u5230\u6587\u4ef6\u8bbf\u95ee\u95ee\u9898\uff0c\u6bd4\u5982\u7528\u6237\u62a5\u544a\u65e0\u6cd5\u8bfb\u5199\u67d0\u4e2a\u6587\u4ef6\u65f6\uff0c\u5e94\u5148\u68c0\u67e5\u6743\u9650\u8bbe\u7f6e\u662f\u5426\u6070\u5f53\u3002\u82e5\u6743\u9650\u770b\u8d77\u6765\u6ca1\u95ee\u9898\uff0c\u4f46\u8bbf\u95ee\u4ecd\u4e0d\u6b63\u5e38\uff0c\u53ef\u80fd\u6d89\u53ca\u66f4\u590d\u6742\u7684\u56e0\u7d20\uff0c\u6bd4\u5982SELinux\u7684\u5f3a\u5236\u8bbf\u95ee\u63a7\u5236\u3002\u8fd9\u65f6\uff0c\u9700\u6df1\u5165\u68c0\u67e5SELinux\u7684\u89c4\u5219\u548c\u65e5\u5fd7\uff0c\u4ee5\u5b9a\u4f4d\u771f\u6b63\u7684\u6545\u969c\u70b9\u3002<\/p>\n

\u6743\u9650\u7ba1\u7406\u6700\u4f73\u5b9e\u8df5<\/b><\/p>\n

linux\u6587\u4ef6\u5939\u6388\u6743\u7528\u6237_\u6388\u6743linux\u6587\u4ef6\u6267\u884c\u6743\u9650_linux \u6587\u4ef6\u6388\u6743\u7ed9\u7528\u6237<\/p>\n

\u6743\u9650\u7ba1\u7406\u7684\u6700\u4f73\u505a\u6cd5\u662f\u5c3d\u91cf\u7f29\u5c0f\u6743\u9650\u8303\u56f4\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u53ea\u7ed9\u7528\u6237\u5206\u914d\u4ed6\u4eec\u5b8c\u6210\u5de5\u4f5c\u6240\u5fc5\u9700\u7684\u6700\u5c0f\u6743\u9650\u3002\u5c24\u5176\u5728\u591a\u4eba\u4f7f\u7528\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd9\u6837\u505a\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u6743\u9650\u88ab\u6ee5\u7528\u7684\u53ef\u80fd\u6027\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5bf9\u4e8e\u90a3\u4e9b\u53ea\u9700\u67e5\u9605\u7279\u5b9a\u65e5\u5fd7\u6587\u4ef6\u7684\u7528\u6237\uff0c\u6211\u4eec\u53ea\u9700\u6388\u4e88\u4ed6\u4eec\u8bfb\u53d6\u6743\u9650\uff0c\u800c\u65e0\u9700\u8d4b\u4e88\u4ed6\u4eec\u5199\u5165\u6216\u6267\u884c\u6743\u9650\u3002<\/p>\n

\u5b9a\u671f\u5bf9\u6743\u9650\u8bbe\u7f6e\u8fdb\u884c\u5ba1\u67e5\uff0c\u8fd9\u662f\u4e00\u4e2a\u826f\u597d\u7684\u4e60\u60ef\u3002\u56e0\u4e3a\u4e1a\u52a1\u9700\u6c42\u6216\u7528\u6237\u89d2\u8272\u53ef\u80fd\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u6743\u9650\u8bbe\u7f6e\u4e5f\u5e94\u968f\u4e4b\u4f5c\u51fa\u8c03\u6574\u3002\u6bd4\u5982\uff0c\u5f53\u4e00\u540d\u5458\u5de5\u4ece\u5f00\u53d1\u7ec4\u79bb\u804c\u540e\uff0c\u6211\u4eec\u5e94\u53ca\u65f6\u5bf9\u4ed6\u7684\u539f\u6709\u9879\u76ee\u6587\u4ef6\u6743\u9650\u8fdb\u884c\u76f8\u5e94\u7684\u8c03\u6574\u3002<\/p>\n

\u5f00\u59cb\u4f7f\u7528Linux\u8fdb\u884c\u6587\u4ef6\u6743\u9650\u8c03\u6574\u65f6\uff0c\u4f60\u662f\u5426\u601d\u8003\u8fc7\u5982\u4f55\u9632\u6b62\u56e0\u6743\u9650\u914d\u7f6e\u5931\u8bef\u800c\u5bfc\u81f4\u7684\u8fde\u9501\u95ee\u9898\uff1f\u671f\u5f85\u5927\u5bb6\u5728\u8bc4\u8bba\u533a\u53d1\u8868\u89c1\u89e3linux\u662f\u4ec0\u4e48\uff0c\u540c\u65f6\u4e5f\u6b22\u8fce\u70b9\u8d5e\u5e76\u8f6c\u53d1\u672c\u6587\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8fd9\u4e00\u884c\u4e3a\u5173\u4e4e\u7cfb\u7edf\u7684\u6574\u4f53\u5b89\u5168\uff0c\u4ee5\u53ca\u7528\u6237\u5bf9\u6587\u4ef6\u7684\u4f7f\u7528\u6743\u9650\u3002\u638c\u63e1\u5982\u4f55\u51c6\u786e\u8fdb\u884c\u6587\u4ef6\u6388\u6743\uff0c\u5bf9\u4e8e\u6709\u6548\u7ba1\u7406\u6587\u4ef6\u8d44\u6e90\u53ca\u786e\u4fdd\u6570\u636e\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002chmod\u547d\u4ee4\uff0c\u4f5c\u4e3a\u57fa\u7840\u7684\u6587\u4ef6\u6743\u9650\u8bbe\u7f6e\u5de5\u5177\uff0c\u5177\u5907\u4e24\u79cd\u64cd\u4f5c\u5f62\u5f0f\u3002\u8fd9\u662f\u56e0\u4e3a\u8be5\u6587\u4ef6\u5177\u6709SUID\u6743\u9650\uff0c\u4ece\u800c\u786e\u4fdd\u4e86\u5bc6\u7801\u4fee\u6539\u80fd\u591f\u6b63\u786e\u5199\u5165\u5230\u5e95\u5c42\u6587\u4ef6\u7cfb\u7edf\u4e2d\u3002<\/p>\n","protected":false},"author":1,"featured_media":294445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[109,4354,145,155,3202],"class_list":["post-294444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-linux","tag-SGID","tag-suid","tag-155","tag-wjqx"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=294444"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294444\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294445"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}