\u547d\u4ee4<\/a>\uff0c\u4e0b\u8fb9\u6211\u6765\u5206\u4eab\u4e0b\u6211\u8fd9\u4e00\u5757\u7684\u5b66\u4e60\u6210\u679c<\/p>\n1.\u521b\u5efa\u7528\u6237\u7ec4<\/p>\n
\u7528\u6237\u7ec4\u7684\u521b\u5efa\u8fd8\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0c\u53ea\u987b\u8981\u4f7f\u7528\u547d\u4ee4sudogroupadd\u540d\u79f0\u6216\u5219sudogroupadd-g\u7ec4ID\u540d\u79f0\uff0c\u7b2c\u4e00\u4e2a\u547d\u4ee4\u5f88\u7b80\u5355\u5c31\u4e0d\u591a\u8bf4\u4e86\uff0c\u5bf9\u4e8e\u7b2c\u4e8c\u4e2a\u547d\u4ee4\u6211\u4eec\u987b\u8981\u6653\u5f97\u7528\u6237\u7ec4\u5728linux\u91cc\u4e3b\u8981\u5b58\u5728\u4e8e\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e\u662f\/etc\/group,\u4f7f\u7528vi\u67e5\u770b\u80fd\u591f\u770b\u89c1\u7cfb\u7edf\u4e0a\u9762\u521b\u5efa\u7684\u7528\u6237\u7ec4<\/p>\n
\u7528\u6237\u7ec4\u7684\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\u5982\u540c\u4e0b\u8fb9\u8fd9\u6837<\/p>\n
<\/p>\n
\u8fd9\u4e2a\u56fe\u6211\u4eec\u8fd8\u5e94\u5f53\u6653\u5f97\u50cf117\u3001118\u3001119\u3001700\u30011006\u8fd9\u6837\u7684\u6570\u5b57\u5c31\u4ee3\u8868\u7528\u6237\u7ec4\u7684\u60df\u4e00ID,\u8fd9\u6837\u5b50\u5bf9\u4e8e\u7b2c\u4e8c\u4e2a\u547d\u4ee4\u5c31\u4e0d\u96be\u7406\u89e3\u4e86\u5047\u5982\u6ca1\u6709-g\u548c\u524d\u9762\u7684\u53c2\u6570\uff0clinux\u4f1a\u7ed9\u6211\u4eec\u5206\u914d\u4e00\u4e2a\u7528\u6237\u7ec4ID<\/p>\n
2.\u7528\u6237\u7ec4\u7684\u66f4\u6539\u64cd\u4f5c<\/p>\n
\u5728\u4e2a\u522b\u65f6\u4faf\u6211\u4eec\u53ef\u80fd\u8981\u5bf9\u7528\u6237\u7ec4\u8fdb\u884c\u66f4\u6539\uff0c\u4e3b\u8981\u662f\u66f4\u6539\u7528\u6237\u7ec4ID\u548c\u66f4\u6539\u7ec4\u540d\u79f02\u4e2a\u64cd\u4f5c\uff0c\u66f4\u6539\u7528\u6237\u7ec4\u540d\u79f0\u7684\u547d\u4ee4\u662fsudogroupmod-n\u65b0\u540d\u79f0\u65e7\u540d\u79f0\uff0c\u5982\u4e0b\u6240\u793a<\/p>\n
\u5047\u5982\u662f\u66f4\u6539\u7528\u6237\u7ec4id\u53ef\u4ee5\u4f7f\u7528sudogroupmod-g\u65b0\u7684\u7ec4ID\u7ec4\u540d\u79f0<\/p>\n
\u66f4\u6539\u540e\u7684\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b\u6240\u793a<\/p>\n
3.\u7528\u6237\u7684\u521b\u5efa\u548c\u66f4\u6539<\/p>\n
\u7528\u6237\u7684\u521b\u5efa\u4e5f\u662f\u6bd4\u8f83\u57fa\u7840\u7684\u4e00\u5757\uff0c\u521b\u5efa\u7528\u6237\u67092\u4e2a\u547d\u4ee4\uff0c\u7b2c\u4e00\u4e2a\u662fsudouseradd\u7528\u6237\u540d\uff1b\u7b2c\u4e8c\u4e2a\u662fsudouseradd-g\u8981\u5206\u914d\u7684\u7ec4\u7528\u6237\u540d\u3002\u6211\u63a8\u8350\u4f7f\u7528\u524d\u8005linux\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5\uff0c\u7b2c\u4e00\u4e2a\u547d\u4ee4\u4ed6\u9664\u4e86\u521b\u5efa\u4e86\u65b0\u7528\u6237\u8fd8\u521b\u5efa\u4e86\u4e00\u4e2a\u548c\u7528\u6237\u540d\u540d\u79f0\u76f8\u540c\u7684\u7ec4<\/p>\n
\u8fd9\u4e2a\u547d\u4ee4\u7684\u610f\u601d\u5c31\u662f\u521b\u5efa\u4e00\u4e2a\u53ebxiaofei\u7684\u7528\u6237\u5e76\u6dfb\u52a0\u5230administrator\u7ec4\u91cc\uff0c\u5230\u8fd9\u513f\u6211\u4eec\u8fd8\u5fc5\u987b\u6653\u5f97linux\u4e5f\u628a\u7528\u6237\u653e\u5728\u4e86\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u91cc\uff0c\u6587\u4ef6\u4f4d\u7f6e\u662f\/etc\/passwd.\u53ea\u521b\u5efa\u7528\u6237\u800c\u6ca1\u7ed9\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801\uff0clinux\u662f\u4e0d\u5bb9\u8bb8\u8fd9\u6837\u7684\u7528\u6237\u767b\u5165\u7cfb\u7edf\u7684\uff0c\u4e0b\u8fb9\u63a5\u7740\u6765\u7ed9\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801\uff0c\u547d\u4ee4\u662fsudopasswd\u7528\u6237\u540d<\/p>\n
<\/p>\n
\u63a5\u51fa\u6765\u662f\u7528\u6237\u7684\u7ec4\u7684\u5220\u6389\uff0c\u5220\u6389\u7ec4\u7684\u547d\u4ee4\u662fsudogroupdel\u7ec4\u540d\u79f0\uff1b\u5220\u6389\u7528\u6237\u7684\u547d\u4ee4\u662fsudouserdel\u7528\u6237\u540d\uff0c\u5220\u6389\u7528\u6237\u9ed8\u8ba4\u4e0d\u5220\u6389\u8be5\u7528\u6237\u7684\u76ee\u5f55linux\u4e0bsocket\u7f16\u7a0b\uff0c\u5047\u5982\u8981\u4e00\u8d77\u5220\u9664\u7528\u6237\u7684\u76ee\u5f55\u5219\u5e94\u5f53\u4f7f\u7528sudouserdel-r\u7528\u6237\u540d<\/p>\n
\u7ec4\u7684\u5220\u6389\u6211\u5c31\u4e0d\u622a\u56fe\u4e86<\/p>\n
\u63a5\u51fa\u6765\u8fd8\u6709\u51e0\u4e2a\u64cd\u4f5c\uff0c\u5148\u6765\u8c08\u8c08\u66f4\u6539\u7528\u6237\u540d\u7684\u64cd\u4f5c\uff0c\u66f4\u6539\u7528\u6237\u540d\u987b\u8981\u4f7f\u7528\u547d\u4ee4sudousermod-l\u65b0\u7528\u6237\u540d\u8001\u7528\u6237\u540d\uff0c\u5982\u53f3\u56fe\u6240\u793a<\/p>\n
\u8fd8\u6709\u4e00\u4e2a\u7528\u7684\u4e0d\u662f\u975e\u5e38\u591a\u7684\u66f4\u6539\u7528\u6237\u7684\u547d\u4ee4sudousermod-c\u8bf4\u660e\u6216\u6ce8\u91ca\u7528\u6237\u540dlinux\u7528\u6237\u7ec4\u7ba1\u7406<\/strong>\uff0c\u8fd9\u4e2a\u547d\u4ee4\u7684\u610f\u601d\u662f\u7ed9\u7528\u6237\u52a0\u4e00\u4e2a\u6ce8\u91ca\u6216\u8bf4\u660e<\/p>\n<\/p>\n
\u6700\u540e\u8fd8\u6709\u4e00\u4e2a\u64cd\u4f5c\u4e5f\u5f88\u91cd\u8981\uff0c\u90a3\u5c31\u662f\u7ed9\u7528\u6237\u6307\u5b9a\u4e00\u4e2a\u53ef\u64cd\u4f5c\u7684\u76ee\u5f55\uff0c\u547d\u4ee4\u662fsudousermod-d\u8def\u5f84\u7528\u6237\u540d<\/p>\n
\u6709\u5173\u7528\u6237\u7684\u64cd\u4f5c\u57fa\u672c\u5c31\u5982\u6b64\u591a\u4e86<\/p>\n
3.linux\u9650\u5236\u4e2a\u522b\u7528\u6237\u767b\u5165\u7cfb\u7edf<\/p>\n
\u6709\u65f6\u4e3a\u4e86\u6392\u9519\u7684\u987b\u8981\u53ef\u80fd\u8981\u6682\u65f6\u9650\u5236\u4e2a\u522b\u7528\u6237\u767b\u5165\u7cfb\u7edf\uff0clinux\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u6837\u7684\u9650\u5236\uff0c\u524d\u63d0\u662f\u6211\u4eec\u7406\u89e3linux\u628a\u7528\u6237\u7684\u5bc6\u7801\u653e\u5728\u4e86\u90a3\u79cd\u914d\u7f6e\u6587\u4ef6\u91cc\uff0c\u8fd9\u4e2a\u663e\u7136\u4e5f\u7b80\u5355\u7528\u6237\u5bc6\u7801\u7684\u914d\u7f6e\u6587\u4ef6\u6240\u5728\u8def\u5f84\u662f\/etc\/shadow,\u6211\u4eec\u53ea\u9700\u627e\u5230\u7528\u6237\u5bf9\u5e94\u7684\u5bc6\u7801\u4ee5\u540e\u6253\u5f00vi\u7f16\u8f91\u5668\u5728\u5bc6\u7801\u7684\u540e\u9762\u52a0\u4e00\u4e2a!\u5c31\u53ef\u4ee5\u4e86linux\u7528\u6237\u7ec4\u7ba1\u7406<\/strong>\uff0c\u66f4\u6539\u8fd9\u4e2a\u6587\u4ef6\u987b\u8981\u7ba1\u7406\u5458\u6743\u9650,\u7531\u4e8e\u6211\u4eec\u66f4\u6539\u7684\u662f\u53ea\u8bfb\u6587\u4ef6\uff0c\u6240\u4ee5\u5e94\u5f53\u5f3a\u5236\u5199\u5165\uff0c\u5728wq\u7684\u65c1\u8fb9\u52a0\u4e0a\u4e00\u4e2a\u53f9\u53f7\u5c31\u53ef\u4ee5<\/p>\n<\/p>\n
\u8fd9\u513f\u7684\u5bc6\u7801\u662f\u7528MD5\u52a0\u5bc6\u7684\uff0c\u4f4d\u7f6e\u662f\u7528\u6237\u540d\uff1a\u7684\u65c1\u8fb9\uff0c\u5982\u540c\u4e0a\u56fe\u6240\u793a\u7684\u5012\u6570\u7b2c\u4e09\u884c\uff0c\u4e0b\u8fb9\u6765\u77a7\u77a7xiaofeifei\u8fd9\u4e2a\u7528\u6237\u80fd\u591f\u6b63\u5e38\u767b\u5f55<\/p>\n
4.\u4e25\u7981\u9664root\u7528\u6237\u4e4b\u5916\u7684\u5176\u4ed6\u7528\u6237\u767b\u5f55<\/p>\n
\u8fd9\u4e2a\u64cd\u4f5c\u867d\u7136\u6700\u7b80\u5355\uff0c\u76f4\u63a5\u5728etc\u76ee\u5f55\u4e0b\u8fb9\u521b\u5efa\u4e00\u4e2anologin\u7684\u6587\u4ef6\u5939\u5c31\u53ef\u4ee5\uff0c\u547d\u4ee4\u662fsudomkdir\/etc\/nologin<\/p>\n","protected":false},"excerpt":{"rendered":"
1.\u521b\u5efa\u7528\u6237\u7ec4\u540d\u79f0\uff0c\u7b2c\u4e00\u4e2a\u547d\u4ee4\u5f88\u7b80\u5355\u5c31\u4e0d\u591a\u8bf4\u4e86\uff0c\u5bf9\u4e8e\u7b2c\u4e8c\u4e2a\u547d\u4ee4\u6211\u4eec\u9700\u8981\u77e5\u9053\u7528\u6237\u7ec4\u5728linux\u91cc\u4e3b\u8981\u5b58\u5728\u4e8e\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e\u662f\/etc\/group,\u4f7f\u7528vi\u67e5\u770b\u5c31\u80fd\u770b\u5230\u7cfb\u7edf\u91cc\u9762\u521b\u5efa\u7684\u7528\u6237\u7ec4\u7528\u6237\u7ec4\u7684\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\u5c31\u50cf\u4e0b\u9762\u8fd9\u68372.\u7528\u6237\u7ec4\u7684\u4fee\u6539\u64cd\u4f5c3.linux\u9650\u5236\u67d0\u4e9b\u7528\u6237\u767b\u5f55\u7cfb\u7edf<\/p>\n","protected":false},"author":1,"featured_media":295332,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[613,3471,5349,5348,5347],"class_list":["post-295331","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-linux","tag-vbjq-2","tag-mmpzwj","tag-pcxz","tag-yhzi"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/295331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=295331"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/295331\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/295332"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=295331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=295331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=295331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}