\u547d\u4ee4<\/a><\/b><\/p>\n\u660e\u786e\u4e86\u6587\u4ef6\u6267\u884c\u6743\u9650\u7684\u6982\u5ff5\u540e\uff0c\u63a5\u4e0b\u6765\u8bb2\u89e3\u5982\u4f55\u914d\u7f6e\u3002\u5728Linux\u4e2d\uff0c\u5173\u952e\u547d\u4ee4\u4fbf\u662f`chmod`\u3002\u8be5\u547d\u4ee4\u5168\u540d\u4e3achangemode\uff0c\u6838\u5fc3\u529f\u80fd\u5373\u4e3a\u8c03\u6574\u6587\u4ef6\u6743\u9650\u6a21\u5f0f\u3002\u901a\u8fc7`chmod`\uff0c\u60a8\u53ef\u589e\u6dfb\u6216\u79fb\u9664\u6587\u4ef6\u7684\u6267\u884c\u6743\u9650\u3002\u64cd\u4f5c\u76f4\u89c2\uff1f\u8bda\u7136\uff0c\u6b64\u547d\u4ee4\u867d\u7b80\uff0c\u5374\u662f\u7ba1\u7406\u6587\u4ef6\u6743\u9650\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u3002<\/p>\n
chmod\u547d\u4ee4\u770b\u4f3c\u7e41\u590d\uff0c\u6570\u5b57\u4e0e\u5b57\u6bcd\u4ea4\u7ec7\uff0c\u4ee4\u4eba\u56f0\u60d1\u3002\u5b9e\u5219\u638c\u63e1\u5176\u57fa\u7840\u64cd\u4f5c\u540e\uff0c\u4f1a\u53d1\u73b0\u5176\u7b80\u6d01\u6613\u7528\u3002\u4f8b\u5982\uff0c\u82e5\u8981\u6388\u4e88\u6587\u4ef6\u6267\u884c\u6743\uff0c\u53ea\u9700\u8f93\u5165\u201cchmod+x\u6587\u4ef6\u540d\u201d\u3002\u82e5\u9700\u64a4\u9500\u6267\u884c\u6743\uff0c\u5c06\u201c+\u201d\u66f4\u6539\u4e3a\u201c-\u201d\u5373\u53ef\u3002\u64cd\u4f5c\u5982\u6b64\u7b80\u4fbf\uff0cLinux\u662f\u5426\u663e\u5f97\u6613\u4e0a\u624b\uff1f<\/p>\n
<\/p>\n
\u6743\u9650\u7684\u7ee7\u627f\uff1a\u76ee\u5f55\u548c\u5b50\u6587\u4ef6<\/b><\/p>\n
\u5728Linux\u73af\u5883\u4e2d\uff0c\u76ee\u5f55\u6743\u9650\u5e76\u975e\u72ec\u7acb\u5b58\u5728\uff0c\u800c\u662f\u5177\u6709\u7ee7\u627f\u6027\u3002\u4e00\u65e6\u8d4b\u4e88\u4e00\u4e2a\u76ee\u5f55\u6267\u884c\u6743\uff0c\u5176\u4e0b\u5c5e\u6240\u6709\u6587\u4ef6\u53ca\u5b50\u76ee\u5f55\u5747\u5c06\u9075\u5faa\u8fd9\u4e00\u8bbe\u7f6e\u3002\u636e\u6b64\uff0c\u901a\u8fc7\u8c03\u8282\u76ee\u5f55\u6743\u9650\uff0c\u53ef\u9ad8\u6548\u5730\u96c6\u4e2d\u7ba1\u7406\u5927\u91cf\u6587\u4ef6\u7684\u6743\u9650\u3002<\/p>\n
\u60a8\u6216\u8bb8\u4f1a\u8ba4\u4e3a\u6b64\u4e3e\u4fbf\u5229\uff0c\u7136\u6743\u9650\u4f20\u627f\u4ea6\u53ef\u80fd\u81f4\u56f0\u6270\u3002\u8b6c\u5982\uff0c\u82e5\u65e0\u610f\u95f4\u8d4b\u4e88\u67d0\u76ee\u5f55\u4e0d\u5f53\u6743\u9650\uff0c\u5176\u4e0b\u5c5e\u6587\u4ef6\u4e0e\u5b50\u76ee\u5f55\u4ea6\u5c06\u53d7\u7275\u8fde\u3002\u56e0\u6b64\uff0c\u914d\u7f6e\u6743\u9650\u65f6\u52a1\u5fc5\u4ed4\u7ec6\uff0c\u4ee5\u514d\u7cfb\u7edf\u5931\u5e8f\u3002<\/p>\n
<\/p>\n
\u6743\u9650\u7684\u67e5\u770b\uff1als-l\u547d\u4ee4<\/b><\/p>\n
\u6b32\u67e5\u8be2\u6587\u4ef6\u6743\u9650linux\u8bfe\u7a0b\uff0c\u6267\u884cls-l\u6307\u4ee4\u5373\u53ef\u3002ls-l\uff0c\u53c8\u79f0\u8be6\u5217\uff0c\u65e8\u5728\u5c55\u793a\u6587\u4ef6\u8be6\u5c3d\u4fe1\u606f\u3002\u6267\u884c\u540e\uff0c\u7cfb\u7edf\u5c06\u8f93\u51fa\u4e00\u4e32\u6570\u636e\uff0c\u5176\u4e2d\u6db5\u76d6\u6587\u4ef6\u6743\u9650\u3002\u4f8b\u5982\uff0c\u201c-rwxr-xr-x\u201d\u6b64\u7c7b\u5e8f\u5217\u5373\u8868\u793a\u6587\u4ef6\u6743\u9650\u3002<\/p>\n
\u60a8\u53ef\u80fd\u8bef\u4ee5\u4e3a\u8fd9\u4e9b\u5b57\u7b26\u4e32\u96be\u4ee5\u7406\u89e3\uff0c\u7136\u800c\uff0c\u5b83\u4eec\u7684\u8bbe\u8ba1\u5b9e\u5219\u76f4\u89c2\u3002\u9996\u4e2a\u5b57\u7b26\u754c\u5b9a\u6587\u4ef6\u7c7b\u522b\uff0c\u540e\u7eed\u4e5d\u5b57\u7b26\u5219\u8be6\u7ec6\u9610\u8ff0\u6587\u4ef6\u6743\u9650\u5206\u914d\u3002\u6743\u9650\u4ee5\u6bcf\u4e09\u4f4d\u4e00\u7ec4\u5448\u73b0\uff0c\u5206\u522b\u9488\u5bf9\u6240\u6709\u8005\u3001\u7ec4\u5f52\u5c5e\u53ca\u4ed6\u4eba\u7c7b\u522b\u3002\u4f8b\u5982\uff0c\u201crwx\u201d\u6307\u4ee3\u8bfb\u3001\u5199\u3001\u6267\u884c\u5168\u90e8\u6743\u9650\uff0c\u201cr-x\u201d\u5219\u6307\u53ef\u8bfb\u4e0e\u6267\u884c\uff0c\u4f46\u7f3a\u4e4f\u5199\u5165\u6743\u9650\u3002\u8fd9\u672a\u5c1d\u4e0d\u4ee4\u4eba\u611f\u5230\u597d\u5947\u3002<\/p>\n
<\/p>\n
\u6743\u9650\u7684\u7279\u6b8a\u60c5\u51b5\uff1asetuid\u548csetgid<\/b><\/p>\n
\u5728Linux\u67b6\u6784\u4e2d\uff0c\u5b58\u5728\u7279\u5b9a\u7684\u6743\u9650\u8bbe\u7f6e\uff0c\u8bf8\u5982setuid\u548csetgid\u3002setuid\uff0c\u5373\u8bbe\u7f6e\u7528\u6237ID\uff0c\u8d4b\u4e88\u6587\u4ef6\u5728\u6267\u884c\u65f6\u4ee5\u6240\u6709\u8005\u8eab\u4efd\u800c\u975e\u6267\u884c\u8005\u8eab\u4efd\u6267\u884c\u7684\u80fd\u529b\u3002\u6b64\u529f\u80fd\u4f7f\u666e\u901a\u7528\u6237\u80fd\u591f\u6267\u884c\u901a\u5e38\u4ec5\u5bf9\u8d85\u7ea7\u7528\u6237\u5f00\u653e\u7684\u64cd\u4f5c\u3002setgid\u7684\u4f5c\u7528\u4e0e\u4e4b\u76f8\u4f3c\uff0c\u4f46\u5176\u5728\u6267\u884c\u65f6\u6a21\u62df\u6587\u4ef6\u6240\u5c5e\u7ec4\u7684\u6743\u9650\u3002<\/p>\n
\u60a8\u6216\u8bb8\u4f1a\u611f\u5230\u60ca\u8bb6\uff0c\u7136\u800csetuid\u548csetgid\u914d\u7f6e\u786e\u5b9e\u53ef\u80fd\u5f15\u5165\u5b89\u5168\u98ce\u9669\u3002\u4f8b\u5982\uff0c\u82e5\u6076\u610f\u7a0b\u5e8f\u542f\u7528\u4e86setuid\uff0c\u5219\u53ef\u4e8e\u6267\u884c\u671f\u95f4\u83b7\u5f97root\u6743\u9650\uff0c\u5bf9\u7cfb\u7edf\u6784\u6210\u91cd\u5927\u5a01\u80c1\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u65bdsetuid\u548csetgid\u65f6\uff0c\u52a1\u5fc5\u8c28\u614e\u64cd\u4f5c\uff0c\u5e76\u4ec5\u9650\u5fc5\u8981\u60c5\u5f62\u4f7f\u7528\u3002<\/p>\n
<\/p>\n
\u6743\u9650\u7684\u65e5\u5e38\u5e94\u7528\uff1a\u4fdd\u62a4\u4f60\u7684\u7cfb\u7edf<\/b><\/p>\n
\u63a2\u8ba8\u6743\u9650\u5728\u65e5\u5e38\u5e94\u7528\u4e2d\u7684\u5173\u952e\u4f5c\u7528\u3002\u5728Linux\u4f53\u7cfb\u7ed3\u6784\u4e2d\uff0c\u6743\u9650\u7ba1\u63a7\u4e0d\u4ec5\u6d89\u53ca\u6280\u672f\u5c42\u9762\uff0c\u66f4\u5173\u4e4e\u4fe1\u606f\u5b89\u5168\u3002\u59a5\u5584\u914d\u7f6e\u6587\u4ef6\u6743\u9650\uff0c\u53ef\u6709\u6548\u52a0\u56fa\u7cfb\u7edflinux \u6587\u4ef6\u6267\u884c\u6743\u9650<\/strong>\uff0c\u9632\u8303\u672a\u6388\u6743\u8bbf\u95ee\u4e0e\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5bf9\u5173\u952e\u914d\u7f6e\u6587\u4ef6\u65bd\u4ee5\u53ea\u8bfb\u6743\u9650\uff0c\u907f\u514d\u5176\u610f\u5916\u53d8\u66f4\uff1b\u5bf9\u654f\u611f\u811a\u672c\u6587\u4ef6\u65bd\u52a0\u53d7\u9650\u6267\u884c\u6743\uff0c\u963b\u6b62\u5176\u88ab\u4e0d\u5f53\u5229\u7528\u3002<\/p>\n\u60a8\u6216\u8bb8\u8ba4\u4e3a\u8fd9\u4e9b\u6b65\u9aa4\u9887\u4e3a\u7e41\u7410\uff0c\u7136\u800c\uff0c\u9700\u77e5\u6743\u9650\u8bbe\u7f6e\u5b9e\u5219\u5982\u540c\u4e3a\u7cfb\u7edf\u62ab\u4e0a\u9632\u5fa1\u94e0\u7532\uff0c\u867d\u7565\u611f\u4e0d\u4fbf\uff0c\u5374\u663e\u8457\u589e\u5f3a\u7cfb\u7edf\u5b89\u5168\u3002\u6545\u6b64\uff0c\u8bf7\u52ff\u8f7b\u89c6\u7e41\u7410\uff0c\u7cbe\u5fc3\u7ba1\u7406\u6587\u4ef6\u6743\u9650\uff0c\u786e\u4fdd\u7cfb\u7edf\u7a33\u56fa\u4e0e\u53ef\u4fe1\u3002<\/p>\n
\u540c\u4faa\u4eec\uff0c\u4eca\u65e5\u6211\u4eec\u5df2\u6df1\u5165\u63a2\u8ba8\u4e86Linux\u6587\u4ef6\u6267\u884c\u6743\u9650\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf8\u4f4d\u662f\u5426\u5bf9\u4e4b\u6709\u66f4\u900f\u5f7b\u7684\u8ba4\u8bc6\uff1f\u5728\u65e5\u5e38\u5e94\u7528\u4e2d\uff0c\u5173\u4e8e\u6743\u9650\u7ba1\u7406android linux\uff0c\u8fd8\u6709\u54ea\u4e9b\u8981\u70b9\u9700\u7559\u610f\uff1f\u656c\u8bf7\u4e8e\u8bc4\u8bba\u533a\u5206\u4eab\u4f60\u7684\u89c1\u89e3\uff0c\u5e76\u8bf7\u70b9\u8d5e\u53ca\u8f6c\u53d1\u672c\u7bc7\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5373\u4fbf\u4f60\u7ecf\u5e38\u4f7f\u7528Linux\u7cfb\u7edf\uff0c\u53ef\u80fd\u8fd8\u662f\u4e0d\u6e05\u695a\u6587\u4ef6\u6267\u884c\u6743\u9650\u7684\u672c\u8d28\u3002\u56e0\u6b64\uff0c\u867d\u4e3a\u5fae\u5c0f\u7684\u6267\u884c\u6743\u9650\uff0c\u5b9e\u5219\u5173\u4e4e\u7cfb\u7edf\u5b89\u5168\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6587\u4ef6\u6743\u9650\u5206\u4e3a\u4e09\u79cd\uff1a\u8bfb\u53d6\u3001\u5199\u5165\u548c\u6267\u884c\u3002\u6267\u884c\u540e\uff0c\u7cfb\u7edf\u5c06\u8f93\u51fa\u4e00\u4e32\u6570\u636e\uff0c\u5176\u4e2d\u6db5\u76d6\u6587\u4ef6\u6743\u9650\u3002\u5728Linux\u4f53\u7cfb\u7ed3\u6784\u4e2d\uff0c\u6743\u9650\u7ba1\u63a7\u4e0d\u4ec5\u6d89\u53ca\u6280\u672f\u5c42\u9762\uff0c\u66f4\u5173\u4e4e\u4fe1\u606f\u5b89\u5168\u3002<\/p>\n","protected":false},"author":1,"featured_media":293374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[1261,3350,3351,3349,1568],"class_list":["post-293373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-lwjqx","tag-wjzxqx","tag-qxjc","tag-qxpz","tag-xtaq"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293373","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=293373"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293374"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}