{"id":49,"date":"2019-02-04T19:00:16","date_gmt":"2019-02-04T11:00:16","guid":{"rendered":""},"modified":"2020-10-08T13:38:01","modified_gmt":"2020-10-08T05:38:01","slug":"%e5%88%86%e4%ba%ab%ef%bc%9a%e3%80%8alinux%e5%b0%b1%e8%af%a5%e8%bf%99%e4%b9%88%e5%ad%a6-%e3%80%8b%e7%ac%ac5%e7%ab%a0-%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e4%b8%8e%e6%96%87%e4%bb%b6%e6%9d%83%e9%99%90","status":"publish","type":"post","link":"https:\/\/www.fatesky.com\/?p=49","title":{"rendered":"\u5206\u4eab\uff1a\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66 \u300b\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650"},"content":{"rendered":"<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\">\u63a8\u8350\u7b80\u8ff0\uff1a<\/h2>\n<p style=\"margin-top: 0px; margin-bottom: 10px; white-space: normal; box-sizing: border-box; line-height: 23px; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; text-indent: 2em; background-color: rgb(255, 255, 255);\"><span style=\"text-indent: 1em;\">\u8bf4\u5230Linux\u7cfb\u7edf\u4ece01\u5e74\u5f00\u59cb\u6211\u5c31\u4e00\u76f4\u5728\u63a5\u89e6\uff0c\u76f4\u523003\u5e74\u8fd8\u662f04\u5e74\u7684\u65f6\u5019\u5728\u60e0\u5dde\u65b0\u534e\u4e66\u5e97\u4e70\u4e86\u4e00\u672c\u300a<\/span><span style=\"font-size: 13.3333px; text-indent: 13.3333px;\">\u9e1f\u54e5\u7684\u79c1\u623f\u83dc<\/span><span style=\"text-indent: 1em;\">\u300b\uff0c\u81ea\u6b64\u6211\u7684LINUX\u8d77\u6b65\u624d\u7b97\u662f\u771f\u6b63\u7684\u5f00\u59cb\uff0c\u4eca\u5929\u5ffd\u7136\u5728\u7f51\u4e0a\u53d1\u73b0\u4e86\u4e00\u672c\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b<\/span><span style=\"font-size: 13.3333px; text-indent: 13.3333px;\">\u5fcd\u4e0d\u4f4f\u770b\u4e86\u4e8c\u7ae0\uff0c<\/span><span style=\"text-indent: 1em;\">\u89c9\u5f97\u8fd9\u672c\u4e66\u5728\u73b0\u65f6\u7684Linux\u73af\u5883\u4e0b\u66f4\u9002\u5408\u65b0\u624b\u5165\u95e8\uff0c\u4e0d\u7531\u5f3a\u70c8\u63a8\u8350\u4e00\u4e0b\uff0c\u5e76\u4e14\u81ea\u5df1\u4e5f\u51b3\u5b9a\u4e09\u6708\u4efd\u91cc\u6bcf\u5929\u5fc5\u770b\u4e00\u7ae0\u8282\uff0c\u5728\u770b\u7684\u540c\u65f6\u4e5f\u8f6c\u8f7d\u5728\u535a\u5ba2\u91cc\u3002<\/span><span style=\"text-indent: 1em; color: #FF0000;\">\u6e29\u6545\u77e5\u65b0\uff0c\u5b66\u4e60\u8fd9\u4e2a\u4e8b\u60c5\u6c38\u8fdc\u5e94\u8be5\u5728\u8def\u4e0a\uff01<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 10px; white-space: normal; box-sizing: border-box; line-height: 23px; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; text-indent: 2em; background-color: rgb(255, 255, 255);\"><span style=\"text-indent: 1em; color: #FF0000;\"><br \/><\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 10px; white-space: normal; box-sizing: border-box; line-height: 23px; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; text-indent: 2em; background-color: rgb(255, 255, 255);\"><span style=\"text-indent: 1em; color: #FF0000;\"><br \/><\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 10px; white-space: normal; box-sizing: border-box; line-height: 23px; text-indent: 1em; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/ss2.bdstatic.com\/70cFvnSh_Q1YnxGkpoWK1HF6hhy\/it\/u=246279818,2032250538&#038;fm=26&#038;gp=0.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/ss2.bdstatic.com\/70cFvnSh_Q1YnxGkpoWK1HF6hhy\/it\/u=246279818,2032250538&#038;fm=26&#038;gp=0.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\"\/><\/div><\/p>\n<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\">\u672c\u4e66\u76f8\u6bd4\u300a\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u300b\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/h2>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u5766\u767d\u6765\u8bb2\uff0c\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u4e5f\u662f\u6211\u7684linux\u5165\u95e8\u4e66\u7c4d\uff0c\u6211\u7edd\u5bf9\u7684\u8ba4\u53ef\u9e1f\u54e5\u4e3a\u8fd9\u672c\u4e66\u7684\u4ed8\u51fa\uff0c\u5176\u4e66\u53d1\u884c\u91cf\u5de8\u5927\uff0c\u966a\u4f34\u4e86\u4e00\u4ee3\u7684\u8fd0\u7ef4\u4eba\u5458\uff0c\u751a\u81f3\u88ab\u5c01\u4e3a\u201clinux\u5165\u95e8\u795e\u4e66\u201d\uff0c\u6e10\u6e10\u7684\u4ece\u4e00\u672clinux\u6280\u672f\u4e66\u7c4d\uff0c\u4e0a\u5347\u81f3\u7cbe\u795e\u7684\u9ad8\u5ea6\uff0c\u4e0d\u5141\u8bb8\u518d\u6709\u4e00\u70b9\u53cd\u9a73\u4e4b\u58f0\uff0c\u4f46\u601d\u7d22\u518d\u4e09\uff0c\u8fd8\u662f\u51b3\u5b9a\u9610\u660e\u6211\u7684\u89c2\u70b9\uff0c\u4e0e\u521d\u5b66\u8005\u5206\u4eab\u4e0b\u8fd9\u4e0d\u540c\u7684\u770b\u6cd5\uff1a<br style=\"margin: 0px; padding: 0px;\"\/>\u9996\u5148\u9e1f\u54e5\u5728\u5f00\u7bc7\u5373\u63d0\u5230\u4e86\u5199\u4e66\u7684\u7f18\u7531\u662f\u56e0\u4e3a\u8bb0\u6027\u4e0d\u597d\uff0c\u6240\u4ee5\u60f3\u5199\u51fa\u4e00\u672c\u80fd\u591f\u653e\u5728\u6848\u5934\u7684\u5907\u5fd8\u5f55\uff0c\u5bf9\u4e66\u7c4d\u7684\u5185\u5bb9\u81ea\u7136\u5c31\u6ca1\u6709\u4e86\u592a\u591a\u7684\u7b5b\u9009\uff0c\u53cd\u800c\u4e00\u518d\u7684\u6269\u5927\u77e5\u8bc6\u8303\u56f4\uff0c\u6700\u7ec8\u5199\u51fa\u7684\u4e24\u672c\u4e66\u539a\u5ea6\u8db3\u8db3\u8d85\u8fc7\u5341\u5398\u7c73\uff0c\u6562\u95ee\u8fd9\u79cd\u201c\u5907\u5fd8\u5f55\u5f0f\u7684\u5165\u95e8\u4e66\u7c4d\u201d\u771f\u7684\u9002\u5408\u65b0\u624b\u6765\u8bfb\uff1f\u6211\u8ba4\u4e3a\u4e66\u7c4d\u65e2\u7136\u53d1\u884c\u4e86\uff0c\u5c31\u4e0d\u80fd\u518d\u662f\u4e2a\u5907\u5fd8\u5f55\uff0c\u800c\u5e94\u8be5\u662f\u901a\u8fc7\u4f5c\u8005\u7684\u7ecf\u9a8c\u5c06\u77e5\u8bc6\u4e0d\u65ad\u63d0\u70bc\uff0c\u771f\u6b63\u8ba9\u6367\u8d77\u4e66\u7684\u8bfb\u8005\u770b\u5b8c\u6709\u6536\u83b7\u624d\u53ef\u4ee5\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u5176\u6b21\u662f\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u7684\u4e66\u7c4d\u66f4\u65b0\u5468\u671f\u8fc7\u957f\uff0c2014\u5e74\u672b\u65f6RHEL7\u4e0eCentos7\u5c31\u5df2\u7ecf\u516c\u5e03\uff0c\u7ecf\u8fc7\u4e86\u4e00\u5e74\u591a\u7684\u8fed\u4ee3\uff0c\u5df2\u7ecf\u5f88\u7a33\u5b9a\u5e76\u88ab\u5e7f\u6cdb\u4f7f\u7528\u4e86\uff0c\u5982\u679c\u5185\u5bb9\u6ca1\u6709\u5b9a\u671f\u66f4\u65b0\uff0c\u4f7f\u5f97\u6280\u672f\u8131\u79bb\u4e86\u751f\u4ea7\u73af\u5883\uff0c\u8fd8\u600e\u4e48\u79f0\u4f5c\u662f\u771f\u6b63\u5b9e\u7528\u7684linux\u6280\u672f\uff1f\u800c\u4e14\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u7f3a\u5c11\u4e86\u5bf9\u65b0\u624b\u975e\u5e38\u91cd\u8981\u7684\u7b54\u7591\u4e0e\u5e2e\u52a9\uff0c\u5982\u679c\u9047\u5230\u4e86\u5b9e\u9a8c\u51fa\u9519\uff0c\u6216\u8005\u6709\u77e5\u8bc6\u70b9\u609f\u4e0d\u900f\uff0c\u8fd9\u4e9b\u90fd\u53ef\u80fd\u8ba9\u521d\u5b66\u8005\u4e27\u5931\u6389\u5bf9linux\u6280\u672f\u7684\u5174\u8da3\u3002<\/p>\n<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\">RHEL\u4e0eCentos\u7cfb\u7edf\u533a\u522b\uff1a<\/h2>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u73b0\u5728\u56fd\u5185\u7684\u5f88\u591a\u4e66\u7c4d\u662f\u4ee5Centos\u7cfb\u7edf\u4e3a\u5e73\u53f0\u7f16\u5199\u7684\uff0c\u5f53\u7136\u4f5c\u8005\u5927\u591a\u4f1a\u5217\u51fa\u6765\u8bf8\u591a\u7684\u7406\u7531\uff0c\u4f46\u5f88\u591a\u90fd\u662f\u4ee5\u8bb9\u4f20\u8bb9\u7684\u6b6a\u66f2\u9053\u7406\uff0c\u6839\u672c\u6ca1\u6709\u5256\u6790\u5230RedHat\u516c\u53f8\u7684\u8fd0\u4f5c\u65b9\u6cd5\u548cCentos\u7cfb\u7edf\u7684\u672c\u8d28\uff0cCentos\u7cfb\u7edf\u662f\u901a\u8fc7\u5c06RHEL\u7cfb\u7edf\u91ca\u653e\u51fa\u7684\u6e90\u4ee3\u7801\u4e8c\u6b21\u7f16\u8bd1\u7684Linux\u7cfb\u7edf\u4e4b\u4e00\uff0c\u547d\u4ee4\u64cd\u4f5c\u548c\u670d\u52a1\u914d\u7f6e\u65b9\u6cd5\u81ea\u7136\u90fd\u662f\u5b8c\u5168\u76f8\u540c\uff0c\u53bb\u6389\u4e86\u5f88\u591a\u7ea2\u5e3d\u6536\u8d39\u7684\u670d\u52a1\u5957\u4ef6\u529f\u80fd\uff0c\u5e76\u4e14\u4e0d\u63d0\u4f9b\u4efb\u4f55\u5f62\u5f0f\u7684\u6280\u672f\u652f\u6301\uff0c\u90a3\u4e48\u9009\u62e9\u7684\u7406\u7531\u53ea\u6709\u4e00\u4e2a\u2014\u2014\u514d\u8d39\uff01\uff0c\u5f53\u201c\u9ad8\u624b\u4eec\u201d\u5927\u4e3e\u514d\u8d39\u3001\u5f00\u6e90\u3001\u6b63\u4e49\u7684\u65d7\u5e1c\u6765\u5ba3\u626cCentos\u7cfb\u7edf\u7684\u65f6\u5019\uff0c\u8bf8\u4e0d\u77e5Centos\u7cfb\u7edf\u5176\u5b9e\u65e9\u57282014\u5e74\u521d\u5c31\u5df2\u7ecf\u88ab\u7ea2\u5e3d\u516c\u53f8\u6536\u8d2d\uff0c\u53ea\u662f\u6218\u7565\u6027\u7684\u514d\u8d39\u800c\u5df2\uff0c\u800c\u6839\u636eGnu GPL\u8bb8\u53ef\u534f\u8bae\uff0c\u6211\u4eec\u540c\u6837\u4e5f\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528RHEL\u7cfb\u7edf\uff0c\u751a\u81f3\u662f\u4fee\u6539\u4ee3\u7801\u540e\u521b\u5efa\u51fa\u884d\u751f\u4ea7\u54c1\uff0c\u81ea\u7531\u7a0b\u5ea6\u662f\u6ca1\u6709\u4efb\u4f55\u7684\u5dee\u5f02\uff0c\u66f4\u65e0\u5173\u9053\u5fb7\u95ee\u9898\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u60a8\u6b63\u5728\u9605\u8bfb\u7684\u8fd9\u672c\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u4fbf\u662f\u57fa\u4e8e\u6700\u65b0\u7684RHEL7\u7cfb\u7edf\u7f16\u5199\u7684\uff0c\u77e5\u8bc6\u53ca\u5b9e\u9a8c\u5b8c\u5168\u7684\u76f8\u901a\u4e8eCentos,fedora\u7b49\u7cfb\u7edf\uff0c\u56e0\u6b64\u5f53\u60a8\u5b66\u4e60\u5b8c\u672c\u5957\u8bfe\u7a0b\u540e\uff0c\u5373\u4fbf\u516c\u53f8\u5185\u7684\u751f\u4ea7\u73af\u5883\u662fCentos\u7cfb\u7edf\u4e5f\u4e00\u6837\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u5e76\u4e14\u672c\u4e66\u914d\u5957\u8d44\u6599\u4e2d\u7684iso\u955c\u50cf\u4e0e\u7ea2\u5e3dRHCSA\u53caRHCE\u8003\u8bd5\u7cfb\u7edf\u4e00\u81f4\uff0c\u5c24\u5176\u9002\u5408\u51c6\u5907\u8003\u53d6\u7ea2\u5e3d\u8ba4\u8bc1\u7684\u5b66\u5458\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 10px; text-indent: 0em; white-space: normal; box-sizing: border-box; line-height: 23px; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"><\/span><\/p>\n<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\"><strong style=\"color: rgb(61, 68, 80); font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;; font-size: 18px; line-height: 23px;\">\u6b63\u6587\u5f00\u59cb\uff1a<\/strong><\/h2>\n<p><strong style=\"color: rgb(61, 68, 80); font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;; font-size: 18px; line-height: 23px;\"><br \/><\/strong><\/p>\n<p>\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650<\/p>\n<p><span style=\"color: #92D050;\">5.1 \u7528\u6237\u8eab\u4efd\u4e0e\u80fd\u529b<\/span><\/p>\n<p><span style=\"color: #92D050;\">5.2 \u6587\u4ef6\u6743\u9650\u4e0e\u5f52\u5c5e<\/span><\/p>\n<p><span style=\"color: #92D050;\">5.3 \u6587\u4ef6\u7684\u7279\u6b8a\u6743\u9650<\/span><\/p>\n<p><span style=\"color: #92D050;\">5.4 \u6587\u4ef6\u7684\u9690\u85cf\u5c5e\u6027<\/span><\/p>\n<p><span style=\"color: #92D050;\">5.5 \u6587\u4ef6\u8bbf\u95ee\u63a7\u5236\u5217\u8868<\/span><\/p>\n<p><span style=\"color: #92D050;\">5.6 su\u547d\u4ee4\u4e0esudo\u670d\u52a1<\/span><\/p>\n<p><\/p>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"51\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">5.1 \u7528\u6237\u8eab\u4efd\u4e0e\u80fd\u529b<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u8bbe\u8ba1Linux\u7cfb\u7edf\u7684\u521d\u8877\u4e4b\u4e00\u5c31\u662f\u4e3a\u4e86\u6ee1\u8db3\u591a\u4e2a\u7528\u6237\u540c\u65f6\u5de5\u4f5c\u7684\u9700\u6c42\uff0c\u56e0\u6b64Linux\u7cfb\u7edf\u5fc5\u987b\u5177\u5907\u5f88\u597d\u7684\u5b89\u5168\u6027\u3002\u7b2c1\u7ae0\u5728\u5b89\u88c5RHEL 7\u64cd\u4f5c\u7cfb\u7edf\u65f6\uff0c\u7279\u522b\u8981\u6c42\u8bbe\u7f6eroot\u7ba1\u7406\u5458\u5bc6\u7801\uff0c\u8fd9\u4e2aroot\u7ba1\u7406\u5458\u5c31\u662f\u5b58\u5728\u4e8e\u6240\u6709\u7c7bUNIX\u7cfb\u7edf\u4e2d\u7684\u8d85\u7ea7\u7528\u6237\u3002\u5b83\u62e5\u6709\u6700\u9ad8\u7684\u7cfb\u7edf\u6240\u6709\u6743\uff0c\u80fd\u591f\u7ba1\u7406\u7cfb\u7edf\u7684\u5404\u9879\u529f\u80fd\uff0c\u5982\u6dfb\u52a0\/\u5220\u9664\u7528\u6237\u3001\u542f\u52a8\/\u5173\u95ed\u670d\u52a1\u8fdb\u7a0b\u3001\u5f00\u542f\/\u7981\u7528\u786c\u4ef6\u8bbe\u5907\u7b49\u3002\u867d\u7136\u4ee5root\u7ba1\u7406\u5458\u7684\u8eab\u4efd\u5de5\u4f5c\u65f6\u4e0d\u4f1a\u53d7\u5230\u7cfb\u7edf\u7684\u9650\u5236\uff0c\u4f46\u4fd7\u8bed\u8bb2\u201c\u80fd\u529b\u8d8a\u5927\uff0c\u8d23\u4efb\u5c31\u8d8a\u5927\u201d\uff0c\u56e0\u6b64\u4e00\u65e6\u4f7f\u7528\u8fd9\u4e2a\u9ad8\u80fd\u7684root\u7ba1\u7406\u5458\u6743\u9650\u6267\u884c\u4e86\u9519\u8bef\u7684\u547d\u4ee4\u53ef\u80fd\u4f1a\u76f4\u63a5\u6bc1\u6389\u6574\u4e2a\u7cfb\u7edf\u3002\u4f7f\u7528\u4e0e\u5426\uff0c\u786e\u5b9e\u9700\u8981\u597d\u597d\u6743\u8861\u4e00\u4e0b\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u5b66\u4e60\u65f6\u662f\u5426\u8981\u4f7f\u7528root\u7ba1\u7406\u5458\u6743\u9650\u6765\u63a7\u5236\u6574\u4e2a\u7cfb\u7edf\u5462\uff1f\u9762\u5bf9\u8fd9\u4e2a\u95ee\u9898\uff0c\u7f51\u7edc\u4e0a\u6709\u5f88\u591a\u6587\u7ae0\u5efa\u8bae\u4ee5\u666e\u901a\u7528\u6237\u7684\u8eab\u4efd\u6765\u64cd\u4f5c\u2014\u8fd9\u662f\u4e00\u4e2a\u66f4\u5b89\u5168\u4e5f\u66f4\u201c\u65e0\u8d23\u4efb\u201d\u7684\u56de\u7b54\u3002\u4eca\u5929\uff0c<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"\u5218\u9044\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">\u5218\u9044<\/a>\u8001\u5e08\u5c31\u8981\u5192\u5929\u4e0b\u4e4b\u5927\u4e0d\u97ea\u7ed9\u51fa\u81ea\u5df1\u7684\u5fc3\u5f97\u2014\u5f3a\u70c8\u63a8\u8350\u5927\u5bb6\u5728\u5b66\u4e60\u65f6\u4f7f\u7528root\u7ba1\u7406\u5458\u6743\u9650\uff01<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u8fd9\u79cd\u4e3aroot\u7ba1\u7406\u5458\u6b63\u540d\u7684\u51b3\u7edd\u6001\u5ea6\u5728\u7f51\u7edc\u4e2d\u5e94\u8be5\u8fd8\u662f\u5f88\u5c11\u89c1\u7684\uff0c\u6211\u4e4b\u6240\u4ee5\u529b\u8350root\u7ba1\u7406\u5458\u6743\u9650\uff0c\u539f\u56e0\u5f88\u7b80\u5355\u3002\u56e0\u4e3a\u5728Linux\u7684\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u5982\u679c\u4f7f\u7528\u666e\u901a\u7528\u6237\u8eab\u4efd\u8fdb\u884c\u64cd\u4f5c\uff0c\u5219\u5728\u914d\u7f6e\u670d\u52a1\u4e4b\u540e\u51fa\u73b0\u9519\u8bef\u65f6\u5f88\u96be\u5224\u65ad\u662f\u7cfb\u7edf\u81ea\u8eab\u7684\u95ee\u9898\u8fd8\u662f\u56e0\u4e3a\u6743\u9650\u4e0d\u8db3\u800c\u5bfc\u81f4\u7684\uff1b\u8fd9\u65e0\u7591\u4f1a\u7ed9\u5927\u5bb6\u7684\u5b66\u4e60\u8fc7\u7a0b\u5f92\u589e\u574e\u5777\u3002\u66f4\u4f55\u51b5\u6211\u4eec\u7684\u5b9e\u9a8c\u73af\u5883\u662f\u4f7f\u7528VMware\u865a\u62df\u673a\u8f6f\u4ef6\u642d\u5efa\u7684\uff0c\u53ef\u4ee5\u5c06\u5b89\u88c5\u597d\u7684\u7cfb\u7edf\u8bbe\u7f6e\u4e3a\u4e00\u6b21\u5feb\u7167\uff0c\u8fd9\u5373\u4fbf\u7cfb\u7edf\u5f7b\u5e95\u5d29\u6e83\u4e86\uff0c\u60a8\u4e5f\u53ef\u4ee5\u57285\u79d2\u949f\u7684\u65f6\u95f4\u5185\u5feb\u901f\u8fd8\u539f\u51fa\u4e00\u53f0\u5168\u65b0\u7684\u7cfb\u7edf\uff0c\u800c\u4e0d\u7528\u62c5\u5fc3\u6570\u636e\u4e22\u5931\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u603b\u4e4b\uff0c<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"\u5218\u9044\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">\u5218\u9044<\/a>\u8001\u5e08\u5728\u57f9\u8bad\u65f6\u90fd\u63a8\u8350\u6bcf\u4f4d\u5b66\u751f\u4f7f\u7528root\u7ba1\u7406\u5458\u6743\u9650\u6765\u5b66\u4e60Linux\u7cfb\u7edf\uff0c\u7b49\u5230\u5de5\u4f5c\u65f6\u518d\u6839\u636e\u751f\u4ea7\u73af\u5883\u51b3\u5b9a\u4f7f\u7528\u54ea\u4e2a\u7528\u6237\u6743\u9650\uff1b\u8fd9\u4e9b\u4ec5\u4e0e\u9009\u62e9\u76f8\u5173\uff0c\u800c\u975e\u6280\u672f\u6027\u95ee\u9898\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u53e6\u5916\uff0c\u5f88\u591a\u56fe\u4e66\u6216\u57f9\u8bad\u673a\u6784\u7684\u8001\u5e08\u4f1a\u8bb2\u5230\uff0cLinux\u7cfb\u7edf\u4e2d\u7684\u7ba1\u7406\u5458\u5c31\u662froot\u3002\u8fd9\u5176\u5b9e\u662f\u9519\u8bef\u7684\uff0cLinux\u7cfb\u7edf\u7684\u7ba1\u7406\u5458\u4e4b\u6240\u4ee5\u662froot\uff0c\u5e76\u4e0d\u662f\u56e0\u4e3a\u5b83\u7684\u540d\u5b57\u53ebroot\uff0c\u800c\u662f\u56e0\u4e3a\u8be5\u7528\u6237\u7684\u8eab\u4efd\u53f7\u7801\u5373UID\uff08User IDentification\uff09\u7684\u6570\u503c\u4e3a0\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0cUID\u5c31\u76f8\u5f53\u4e8e\u6211\u4eec\u7684\u8eab\u4efd\u8bc1\u53f7\u7801\u4e00\u6837\u5177\u6709\u552f\u4e00\u6027\uff0c\u56e0\u6b64\u53ef\u901a\u8fc7\u7528\u6237\u7684UID\u503c\u6765\u5224\u65ad\u7528\u6237\u8eab\u4efd\u3002\u5728RHEL 7\u7cfb\u7edf\u4e2d\uff0c\u7528\u6237\u8eab\u4efd\u6709\u4e0b\u9762\u8fd9\u4e9b\u3002<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u7ba1\u7406\u5458UID\u4e3a0\uff1a\u7cfb\u7edf\u7684\u7ba1\u7406\u5458\u7528\u6237\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u7cfb\u7edf\u7528\u6237UID\u4e3a1\uff5e999\uff1a Linux\u7cfb\u7edf\u4e3a\u4e86\u907f\u514d\u56e0\u67d0\u4e2a\u670d\u52a1\u7a0b\u5e8f\u51fa\u73b0\u6f0f\u6d1e\u800c\u88ab\u9ed1\u5ba2\u63d0\u6743\u81f3\u6574\u53f0\u670d\u52a1\u5668\uff0c\u9ed8\u8ba4\u670d\u52a1\u7a0b\u5e8f\u4f1a\u6709\u72ec\u7acb\u7684\u7cfb\u7edf\u7528\u6237\u8d1f\u8d23\u8fd0\u884c\uff0c\u8fdb\u800c\u6709\u6548\u63a7\u5236\u88ab\u7834\u574f\u8303\u56f4\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u666e\u901a\u7528\u6237UID\u4ece1000\u5f00\u59cb\uff1a\u662f\u7531\u7ba1\u7406\u5458\u521b\u5efa\u7684\u7528\u4e8e\u65e5\u5e38\u5de5\u4f5c\u7684\u7528\u6237\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cUID\u662f\u4e0d\u80fd\u51b2\u7a81\u7684\uff0c\u800c\u4e14\u7ba1\u7406\u5458\u521b\u5efa\u7684\u666e\u901a\u7528\u6237\u7684UID\u9ed8\u8ba4\u662f\u4ece1000\u5f00\u59cb\u7684\uff08\u5373\u4f7f\u524d\u9762\u6709\u95f2\u7f6e\u7684\u53f7\u7801\uff09\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e3a\u4e86\u65b9\u4fbf\u7ba1\u7406\u5c5e\u4e8e\u540c\u4e00\u7ec4\u7684\u7528\u6237\uff0cLinux\u7cfb\u7edf\u4e2d\u8fd8\u5f15\u5165\u4e86\u7528\u6237\u7ec4\u7684\u6982\u5ff5\u3002\u901a\u8fc7\u4f7f\u7528\u7528\u6237\u7ec4\u53f7\u7801\uff08GID\uff0cGroup IDentification\uff09\uff0c\u6211\u4eec\u53ef\u4ee5\u628a\u591a\u4e2a\u7528\u6237\u52a0\u5165\u5230\u540c\u4e00\u4e2a\u7ec4\u4e2d\uff0c\u4ece\u800c\u65b9\u4fbf\u4e3a\u7ec4\u4e2d\u7684\u7528\u6237\u7edf\u4e00\u89c4\u5212\u6743\u9650\u6216\u6307\u5b9a\u4efb\u52a1\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u516c\u53f8\u4e2d\u6709\u591a\u4e2a\u90e8\u95e8\uff0c\u6bcf\u4e2a\u90e8\u95e8\u4e2d\u53c8\u6709\u5f88\u591a\u5458\u5de5\u3002\u5982\u679c\u53ea\u60f3\u8ba9\u5458\u5de5\u8bbf\u95ee\u672c\u90e8\u95e8\u5185\u7684\u8d44\u6e90\uff0c\u5219\u53ef\u4ee5\u9488\u5bf9\u90e8\u95e8\u800c\u975e\u5177\u4f53\u7684\u5458\u5de5\u6765\u8bbe\u7f6e\u6743\u9650\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7\u5bf9\u6280\u672f\u90e8\u95e8\u8bbe\u7f6e\u6743\u9650\uff0c\u4f7f\u5f97\u53ea\u6709\u6280\u672f\u90e8\u95e8\u7684\u5458\u5de5\u53ef\u4ee5\u8bbf\u95ee\u516c\u53f8\u7684\u6570\u636e\u5e93\u4fe1\u606f\u7b49\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u53e6\u5916\uff0c\u5728Linux\u7cfb\u7edf\u4e2d\u521b\u5efa\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c\u5c06\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u4e0e\u5176\u540c\u540d\u7684\u57fa\u672c\u7528\u6237\u7ec4\uff0c\u800c\u4e14\u8fd9\u4e2a\u57fa\u672c\u7528\u6237\u7ec4\u53ea\u6709\u8be5\u7528\u6237\u4e00\u4e2a\u4eba\u3002\u5982\u679c\u8be5\u7528\u6237\u4ee5\u540e\u88ab\u5f52\u7eb3\u5165\u5176\u4ed6\u7528\u6237\u7ec4\uff0c\u5219\u8fd9\u4e2a\u5176\u4ed6\u7528\u6237\u7ec4\u79f0\u4e4b\u4e3a\u6269\u5c55\u7528\u6237\u7ec4\u3002\u4e00\u4e2a\u7528\u6237\u53ea\u6709\u4e00\u4e2a\u57fa\u672c\u7528\u6237\u7ec4\uff0c\u4f46\u662f\u53ef\u4ee5\u6709\u591a\u4e2a\u6269\u5c55\u7528\u6237\u7ec4\uff0c\u4ece\u800c\u6ee1\u8db3\u65e5\u5e38\u7684\u5de5\u4f5c\u9700\u8981\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">1. &nbsp;useradd\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">useradd\u547d\u4ee4\u7528\u4e8e\u521b\u5efa\u65b0\u7684\u7528\u6237\uff0c\u683c\u5f0f\u4e3a\u201cuseradd [\u9009\u9879] \u7528\u6237\u540d\u201d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u53ef\u4ee5\u4f7f\u7528useradd\u547d\u4ee4\u521b\u5efa\u7528\u6237\u8d26\u6237\u3002\u4f7f\u7528\u8be5\u547d\u4ee4\u521b\u5efa\u7528\u6237\u8d26\u6237\u65f6\uff0c\u9ed8\u8ba4\u7684\u7528\u6237\u5bb6\u76ee\u5f55\u4f1a\u88ab\u5b58\u653e\u5728\/home\u76ee\u5f55\u4e2d\uff0c\u9ed8\u8ba4\u7684Shell\u89e3\u91ca\u5668\u4e3a\/bin\/bash\uff0c\u800c\u4e14\u9ed8\u8ba4\u4f1a\u521b\u5efa\u4e00\u4e2a\u4e0e\u8be5\u7528\u6237\u540c\u540d\u7684\u57fa\u672c\u7528\u6237\u7ec4\u3002\u8fd9\u4e9b\u9ed8\u8ba4\u8bbe\u7f6e\u53ef\u4ee5\u6839\u636e\u88685-1\u4e2d\u7684useradd\u547d\u4ee4\u53c2\u6570\u81ea\u884c\u4fee\u6539\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u88685-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; useradd\u547d\u4ee4\u4e2d\u7684\u7528\u6237\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n<div style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<div style=\"box-sizing: border-box;\">\n<table id=\"tablepress-18\" class=\"tablepress tablepress-id-18\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53c2\u6570<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f5c\u7528<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-d<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u6307\u5b9a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\uff08\u9ed8\u8ba4\u4e3a\/home\/username\uff09<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-e<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u8d26\u6237\u7684\u5230\u671f\u65f6\u95f4\uff0c\u683c\u5f0f\u4e3aYYYY-MM-DD.<\/td>\n<\/tr>\n<tr class=\"row-4 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-u<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u6307\u5b9a\u8be5\u7528\u6237\u7684\u9ed8\u8ba4UID<\/td>\n<\/tr>\n<tr class=\"row-5 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-g<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u6307\u5b9a\u4e00\u4e2a\u521d\u59cb\u7684\u7528\u6237\u57fa\u672c\u7ec4\uff08\u5fc5\u987b\u5df2\u5b58\u5728\uff09<\/td>\n<\/tr>\n<tr class=\"row-6 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-G<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u6307\u5b9a\u4e00\u4e2a\u6216\u591a\u4e2a\u6269\u5c55\u7528\u6237\u7ec4<\/td>\n<\/tr>\n<tr class=\"row-7 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-N<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4e0d\u521b\u5efa\u4e0e\u7528\u6237\u540c\u540d\u7684\u57fa\u672c\u7528\u6237\u7ec4<\/td>\n<\/tr>\n<tr class=\"row-8 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-s<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u6307\u5b9a\u8be5\u7528\u6237\u7684\u9ed8\u8ba4Shell\u89e3\u91ca\u5668<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><\/p>\n<\/div>\n<\/div>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e0b\u9762\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u666e\u901a\u7528\u6237\u5e76\u6307\u5b9a\u5bb6\u76ee\u5f55\u7684\u8def\u5f84\u3001\u7528\u6237\u7684UID\u4ee5\u53caShell\u89e3\u91ca\u5668\u3002\u5728\u4e0b\u9762\u7684\u547d\u4ee4\u4e2d\uff0c\u8bf7\u6ce8\u610f\/sbin\/nologin\uff0c\u5b83\u662f\u7ec8\u7aef\u89e3\u91ca\u5668\u4e2d\u7684\u4e00\u5458\uff0c\u4e0eBash\u89e3\u91ca\u5668\u6709\u7740\u5929\u58e4\u4e4b\u522b\u3002\u4e00\u65e6\u7528\u6237\u7684\u89e3\u91ca\u5668\u88ab\u8bbe\u7f6e\u4e3anologin\uff0c\u5219\u4ee3\u8868\u8be5\u7528\u6237\u4e0d\u80fd\u767b\u5f55\u5230\u7cfb\u7edf\u4e2d\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;useradd&nbsp;-d&nbsp;\/home\/linux&nbsp;-u&nbsp;8888&nbsp;-s&nbsp;\/sbin\/nologin&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;id&nbsp;linuxprobe\r\nuid=8888(linuxprobe)&nbsp;gid=8888(linuxprobe)&nbsp;groups=8888(linuxprobe)<\/pre>\n<div style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">2. &nbsp;groupadd\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">groupadd\u547d\u4ee4\u7528\u4e8e\u521b\u5efa\u7528\u6237\u7ec4\uff0c\u683c\u5f0f\u4e3a\u201cgroupadd [\u9009\u9879] \u7fa4\u7ec4\u540d\u201d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u4e3a\u4e86\u80fd\u591f\u66f4\u52a0\u9ad8\u6548\u5730\u6307\u6d3e\u7cfb\u7edf\u4e2d\u5404\u4e2a\u7528\u6237\u7684\u6743\u9650\uff0c\u5728\u5de5\u4f5c\u4e2d\u5e38\u5e38\u4f1a\u628a\u51e0\u4e2a\u7528\u6237\u52a0\u5165\u5230\u540c\u4e00\u4e2a\u7ec4\u91cc\u9762\uff0c\u8fd9\u6837\u4fbf\u53ef\u4ee5\u9488\u5bf9\u4e00\u7c7b\u7528\u6237\u7edf\u4e00\u5b89\u6392\u6743\u9650\u3002\u521b\u5efa\u7528\u6237\u7ec4\u7684\u6b65\u9aa4\u975e\u5e38\u7b80\u5355\uff0c\u4f8b\u5982\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u7ec4ronny\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;groupadd&nbsp;ronny<\/pre>\n<\/div>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">3. &nbsp;usermod\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">usermod\u547d\u4ee4\u7528\u4e8e\u4fee\u6539\u7528\u6237\u7684\u5c5e\u6027\uff0c\u683c\u5f0f\u4e3a\u201cusermod [\u9009\u9879] \u7528\u6237\u540d\u201d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u524d\u6587\u66fe\u53cd\u590d\u5f3a\u8c03\uff0cLinux\u7cfb\u7edf\u4e2d\u7684\u4e00\u5207\u90fd\u662f\u6587\u4ef6\uff0c\u56e0\u6b64\u5728\u7cfb\u7edf\u4e2d\u521b\u5efa\u7528\u6237\u4e5f\u5c31\u662f\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u7684\u8fc7\u7a0b\u3002\u7528\u6237\u7684\u4fe1\u606f\u4fdd\u5b58\u5728\/etc\/passwd\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u6587\u672c\u7f16\u8f91\u5668\u6765\u4fee\u6539\u5176\u4e2d\u7684\u7528\u6237\u53c2\u6570\u9879\u76ee\uff0c\u4e5f\u53ef\u4ee5\u7528usermod\u547d\u4ee4\u4fee\u6539\u5df2\u7ecf\u521b\u5efa\u7684\u7528\u6237\u4fe1\u606f\uff0c\u8bf8\u5982\u7528\u6237\u7684UID\u3001\u57fa\u672c\/\u6269\u5c55\u7528\u6237\u7ec4\u3001\u9ed8\u8ba4\u7ec8\u7aef\u7b49\u3002usermod\u547d\u4ee4\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528\u5982\u88685-2\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u88685-2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; usermod\u547d\u4ee4\u4e2d\u7684\u53c2\u6570\u53ca\u4f5c\u7528<\/p>\n<table id=\"tablepress-20\" class=\"tablepress tablepress-id-20\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53c2\u6570<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f5c\u7528<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-c<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u586b\u5199\u7528\u6237\u8d26\u6237\u7684\u5907\u6ce8\u4fe1\u606f<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-d -m<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53c2\u6570-m\u4e0e\u53c2\u6570-d\u8fde\u7528\uff0c\u53ef\u91cd\u65b0\u6307\u5b9a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u5e76\u81ea\u52a8\u628a\u65e7\u7684\u6570\u636e\u8f6c\u79fb\u8fc7\u53bb<\/td>\n<\/tr>\n<tr class=\"row-4 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-e<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u8d26\u6237\u7684\u5230\u671f\u65f6\u95f4\uff0c\u683c\u5f0f\u4e3aYYYY-MM-DD<\/td>\n<\/tr>\n<tr class=\"row-5 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-g<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53d8\u66f4\u6240\u5c5e\u7528\u6237\u7ec4<\/td>\n<\/tr>\n<tr class=\"row-6 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-G<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u53d8\u66f4\u6269\u5c55\u7528\u6237\u7ec4<\/td>\n<\/tr>\n<tr class=\"row-7 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-L<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u9501\u5b9a\u7528\u6237\u7981\u6b62\u5176\u767b\u5f55\u7cfb\u7edf<\/td>\n<\/tr>\n<tr class=\"row-8 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-U<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u89e3\u9501\u7528\u6237\uff0c\u5141\u8bb8\u5176\u767b\u5f55\u7cfb\u7edf<\/td>\n<\/tr>\n<tr class=\"row-9 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-s<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53d8\u66f4\u9ed8\u8ba4\u7ec8\u7aef<\/td>\n<\/tr>\n<tr class=\"row-10 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-u<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u4fee\u6539\u7528\u6237\u7684UID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5927\u5bb6\u4e0d\u8981\u88ab\u8fd9\u4e48\u591a\u53c2\u6570\u5413\u574f\u4e86\u3002\u6211\u4eec\u5148\u6765\u770b\u4e00\u4e0b\u8d26\u6237linuxprobe\u7684\u9ed8\u8ba4\u4fe1\u606f\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;id&nbsp;linuxprobe\r\nuid=1000(linuxprobe)&nbsp;gid=1000(linuxprobe)&nbsp;groups=1000(linuxprobe)<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u7136\u540e\u5c06\u7528\u6237linuxprobe\u52a0\u5165\u5230root\u7528\u6237\u7ec4\u4e2d\uff0c\u8fd9\u6837\u6269\u5c55\u7ec4\u5217\u8868\u4e2d\u5219\u4f1a\u51fa\u73b0root\u7528\u6237\u7ec4\u7684\u5b57\u6837\uff0c\u800c\u57fa\u672c\u7ec4\u4e0d\u4f1a\u53d7\u5230\u5f71\u54cd\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;usermod&nbsp;-G&nbsp;root&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;id&nbsp;linuxprobe\r\nuid=1000(linuxprobe)&nbsp;gid=1000(linuxprobe)&nbsp;groups=1000(linuxprobe),0(root)<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u518d\u6765\u8bd5\u8bd5\u7528-u\u53c2\u6570\u4fee\u6539linuxprobe\u7528\u6237\u7684UID\u53f7\u7801\u503c\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u7528-g\u53c2\u6570\u4fee\u6539\u7528\u6237\u7684\u57fa\u672c\u7ec4ID\uff0c\u7528-G\u53c2\u6570\u4fee\u6539\u7528\u6237\u6269\u5c55\u7ec4ID\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;usermod&nbsp;-u&nbsp;8888&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;id&nbsp;linuxprobe\r\nuid=8888(linuxprobe)&nbsp;gid=1000(linuxprobe)&nbsp;groups=1000(linuxprobe),0(root)<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">4. &nbsp;passwd\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">passwd\u547d\u4ee4\u7528\u4e8e\u4fee\u6539\u7528\u6237\u5bc6\u7801\u3001\u8fc7\u671f\u65f6\u95f4\u3001\u8ba4\u8bc1\u4fe1\u606f\u7b49\uff0c\u683c\u5f0f\u4e3a\u201cpasswd [\u9009\u9879] [\u7528\u6237\u540d]\u201d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u666e\u901a\u7528\u6237\u53ea\u80fd\u4f7f\u7528passwd\u547d\u4ee4\u4fee\u6539\u81ea\u8eab\u7684\u7cfb\u7edf\u5bc6\u7801\uff0c\u800croot\u7ba1\u7406\u5458\u5219\u6709\u6743\u9650\u4fee\u6539\u5176\u4ed6\u6240\u6709\u4eba\u7684\u5bc6\u7801\u3002\u66f4\u9177\u7684\u662f\uff0croot\u7ba1\u7406\u5458\u5728Linux\u7cfb\u7edf\u4e2d\u4fee\u6539\u81ea\u5df1\u6216\u4ed6\u4eba\u7684\u5bc6\u7801\u65f6\u4e0d\u9700\u8981\u9a8c\u8bc1\u65e7\u5bc6\u7801\uff0c\u8fd9\u4e00\u70b9\u7279\u522b\u65b9\u4fbf\u3002\u65e2\u7136root\u7ba1\u7406\u5458\u53ef\u4ee5\u4fee\u6539\u5176\u4ed6\u7528\u6237\u7684\u5bc6\u7801\uff0c\u5c31\u8868\u793a\u5b8c\u5168\u62e5\u6709\u8be5\u7528\u6237\u7684\u7ba1\u7406\u6743\u9650\u3002passwd\u547d\u4ee4\u4e2d\u53ef\u7528\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528\u5982\u88685-3\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u88685-3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; passwd\u547d\u4ee4\u4e2d\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n<div style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<table id=\"tablepress-19\" class=\"tablepress tablepress-id-19\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53c2\u6570<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f5c\u7528<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-l<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u9501\u5b9a\u7528\u6237\uff0c\u7981\u6b62\u5176\u767b\u5f55<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-u<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u89e3\u9664\u9501\u5b9a\uff0c\u5141\u8bb8\u7528\u6237\u767b\u5f55<\/td>\n<\/tr>\n<tr class=\"row-4 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">&#8211;stdin<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u5141\u8bb8\u901a\u8fc7\u6807\u51c6\u8f93\u5165\u4fee\u6539\u7528\u6237\u5bc6\u7801\uff0c\u5982echo &quot;NewPassWord&quot; | passwd &#8211;stdin Username<\/td>\n<\/tr>\n<tr class=\"row-5 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-d<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f7f\u8be5\u7528\u6237\u53ef\u7528\u7a7a\u5bc6\u7801\u767b\u5f55\u7cfb\u7edf<\/td>\n<\/tr>\n<tr class=\"row-6 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-e<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u5f3a\u5236\u7528\u6237\u5728\u4e0b\u6b21\u767b\u5f55\u65f6\u4fee\u6539\u5bc6\u7801<\/td>\n<\/tr>\n<tr class=\"row-7 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-S<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u663e\u793a\u7528\u6237\u7684\u5bc6\u7801\u662f\u5426\u88ab\u9501\u5b9a\uff0c\u4ee5\u53ca\u5bc6\u7801\u6240\u91c7\u7528\u7684\u52a0\u5bc6\u7b97\u6cd5\u540d\u79f0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><\/p>\n<\/div>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u63a5\u4e0b\u6765\u5218\u9044\u8001\u5e08\u5c06\u6f14\u793a\u5982\u4f55\u4fee\u6539\u7528\u6237\u81ea\u5df1\u7684\u5bc6\u7801\uff0c\u4ee5\u53ca\u5982\u4f55\u4fee\u6539\u5176\u4ed6\u4eba\u7684\u5bc6\u7801\uff08\u4fee\u6539\u4ed6\u4eba\u5bc6\u7801\u65f6\uff0c\u9700\u8981\u5177\u6709root\u7ba1\u7406\u5458\u6743\u9650\uff09\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;passwd\r\nChanging&nbsp;password&nbsp;for&nbsp;user&nbsp;root.\r\nNew&nbsp;password:\u6b64\u5904\u8f93\u5165\u5bc6\u7801\u503cRetype&nbsp;new&nbsp;password:&nbsp;\u518d\u6b21\u8f93\u5165\u8fdb\u884c\u786e\u8ba4passwd:&nbsp;all&nbsp;authentication&nbsp;tokens&nbsp;updated&nbsp;successfully.\r\n[root@linuxprobe&nbsp;~]#&nbsp;passwd&nbsp;linuxprobe\r\nChanging&nbsp;password&nbsp;for&nbsp;user&nbsp;linuxprobe.\r\nNew&nbsp;password:\u6b64\u5904\u8f93\u5165\u5bc6\u7801\u503cRetype&nbsp;new&nbsp;password:&nbsp;\u518d\u6b21\u8f93\u5165\u8fdb\u884c\u786e\u8ba4passwd:&nbsp;all&nbsp;authentication&nbsp;tokens&nbsp;updated&nbsp;successfully.<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5047\u8bbe\u60a8\u6709\u4f4d\u540c\u4e8b\u6b63\u5728\u5ea6\u5047\uff0c\u800c\u4e14\u5047\u671f\u5f88\u957f\uff0c\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528passwd\u547d\u4ee4\u7981\u6b62\u8be5\u7528\u6237\u767b\u5f55\u7cfb\u7edf\uff0c\u7b49\u5047\u671f\u7ed3\u675f\u56de\u5f52\u5de5\u4f5c\u5c97\u4f4d\u65f6\uff0c\u518d\u4f7f\u7528\u8be5\u547d\u4ee4\u5141\u8bb8\u7528\u6237\u767b\u5f55\u7cfb\u7edf\uff0c\u800c\u4e0d\u662f\u5c06\u5176\u5220\u9664\u3002\u8fd9\u6837\u65e2\u4fdd\u8bc1\u4e86\u8fd9\u6bb5\u65f6\u95f4\u5185\u7cfb\u7edf\u7684\u5b89\u5168\uff0c\u4e5f\u907f\u514d\u4e86\u9891\u7e41\u6dfb\u52a0\u3001\u5220\u9664\u7528\u6237\u5e26\u6765\u7684\u9ebb\u70e6\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;passwd&nbsp;-l&nbsp;linuxprobe\r\nLocking&nbsp;password&nbsp;for&nbsp;user&nbsp;linuxprobe.\r\npasswd:&nbsp;Success\r\n[root@linuxprobe&nbsp;~]#&nbsp;passwd&nbsp;-S&nbsp;linuxprobe\r\nlinuxprobe&nbsp;LK&nbsp;2017-12-26&nbsp;0&nbsp;99999&nbsp;7&nbsp;-1&nbsp;(Password&nbsp;locked.)\r\n[root@linuxprobe&nbsp;~]#&nbsp;passwd&nbsp;-u&nbsp;linuxprobe\r\nUnlocking&nbsp;password&nbsp;for&nbsp;user&nbsp;linuxprobe.\r\npasswd:&nbsp;Success\r\n[root@linuxprobe&nbsp;~]#&nbsp;passwd&nbsp;-S&nbsp;linuxprobe\r\nlinuxprobe&nbsp;PS&nbsp;2017-12-26&nbsp;0&nbsp;99999&nbsp;7&nbsp;-1&nbsp;(Password&nbsp;set,&nbsp;SHA512&nbsp;crypt.)<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">5. &nbsp;userdel\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">userdel\u547d\u4ee4\u7528\u4e8e\u5220\u9664\u7528\u6237\uff0c\u683c\u5f0f\u4e3a\u201cuserdel [\u9009\u9879] \u7528\u6237\u540d\u201d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5982\u679c\u6211\u4eec\u786e\u8ba4\u67d0\u4f4d\u7528\u6237\u540e\u7eed\u4e0d\u518d\u4f1a\u767b\u5f55\u5230\u7cfb\u7edf\u4e2d\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7userdel\u547d\u4ee4\u5220\u9664\u8be5\u7528\u6237\u7684\u6240\u6709\u4fe1\u606f\u3002\u5728\u6267\u884c\u5220\u9664\u64cd\u4f5c\u65f6\uff0c\u8be5\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u9ed8\u8ba4\u4f1a\u4fdd\u7559\u4e0b\u6765\uff0c\u6b64\u65f6\u53ef\u4ee5\u4f7f\u7528-r\u53c2\u6570\u5c06\u5176\u5220\u9664\u3002userdel\u547d\u4ee4\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528\u5982\u88685-4\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u88685-4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; userdel\u547d\u4ee4\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n<table id=\"tablepress-21\" class=\"tablepress tablepress-id-21\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53c2\u6570<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f5c\u7528<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-f<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u5f3a\u5236\u5220\u9664\u7528\u6237<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-r<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u540c\u65f6\u5220\u9664\u7528\u6237\u53ca\u7528\u6237\u5bb6\u76ee\u5f55<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e0b\u9762\u4f7f\u7528userdel\u547d\u4ee4\u5c06linuxprobe\u7528\u6237\u5220\u9664\uff0c\u5176\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;id&nbsp;linuxprobe\r\nuid=8888(linuxprobe)&nbsp;gid=1000(linuxprobe)&nbsp;groups=1000(linuxprobe),0(root)\r\n[root@linuxprobe&nbsp;~]#&nbsp;userdel&nbsp;-r&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;id&nbsp;linuxprobe\r\nid:&nbsp;linuxprobe:&nbsp;no&nbsp;such&nbsp;user<\/pre>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"52\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">5.2&nbsp;\u6587\u4ef6\u6743\u9650\u4e0e\u5f52\u5c5e<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5c3d\u7ba1\u5728Linux\u7cfb\u7edf\u4e2d\u4e00\u5207\u90fd\u662f\u6587\u4ef6\uff0c\u4f46\u662f\u6bcf\u4e2a\u6587\u4ef6\u7684\u7c7b\u578b\u4e0d\u5c3d\u76f8\u540c\uff0c\u56e0\u6b64Linux\u7cfb\u7edf\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u5b57\u7b26\u6765\u52a0\u4ee5\u533a\u5206\uff0c\u5e38\u89c1\u7684\u5b57\u7b26\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">&nbsp;-\uff1a\u666e\u901a\u6587\u4ef6\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">d\uff1a\u76ee\u5f55\u6587\u4ef6\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">l\uff1a\u94fe\u63a5\u6587\u4ef6\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">b\uff1a\u5757\u8bbe\u5907\u6587\u4ef6\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">c\uff1a\u5b57\u7b26\u8bbe\u5907\u6587\u4ef6\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">p\uff1a\u7ba1\u9053\u6587\u4ef6\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6bcf\u4e2a\u6587\u4ef6\u90fd\u6709\u6240\u5c5e\u7684\u6240\u6709\u8005\u548c\u6240\u6709\u7ec4\uff0c\u5e76\u4e14\u89c4\u5b9a\u4e86\u6587\u4ef6\u7684\u6240\u6709\u8005\u3001\u6240\u6709\u7ec4\u4ee5\u53ca\u5176\u4ed6\u4eba\u5bf9\u6587\u4ef6\u6240\u62e5\u6709\u7684\u53ef\u8bfb\uff08r\uff09\u3001\u53ef\u5199\uff08w\uff09\u3001\u53ef\u6267\u884c\uff08x\uff09\u7b49\u6743\u9650\u3002\u5bf9\u4e8e\u4e00\u822c\u6587\u4ef6\u6765\u8bf4\uff0c\u6743\u9650\u6bd4\u8f83\u5bb9\u6613\u7406\u89e3\uff1a\u201c\u53ef\u8bfb\u201d\u8868\u793a\u80fd\u591f\u8bfb\u53d6\u6587\u4ef6\u7684\u5b9e\u9645\u5185\u5bb9\uff1b\u201c\u53ef\u5199\u201d\u8868\u793a\u80fd\u591f\u7f16\u8f91\u3001\u65b0\u589e\u3001\u4fee\u6539\u3001\u5220\u9664\u6587\u4ef6\u7684\u5b9e\u9645\u5185\u5bb9\uff1b\u201c\u53ef\u6267\u884c\u201d\u5219\u8868\u793a\u80fd\u591f\u8fd0\u884c\u4e00\u4e2a\u811a\u672c\u7a0b\u5e8f\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u76ee\u5f55\u6587\u4ef6\u6765\u8bf4\uff0c\u7406\u89e3\u5176\u6743\u9650\u8bbe\u7f6e\u6765\u5c31\u4e0d\u90a3\u4e48\u5bb9\u6613\u4e86\u3002\u5f88\u591a\u8d44\u6df1Linux\u7528\u6237\u5176\u5b9e\u4e5f\u6ca1\u6709\u771f\u6b63\u641e\u660e\u767d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5218\u9044\u8001\u5e08\u5728\u8fd9\u91cc\u7ed9\u5927\u5bb6\u8be6\u7ec6\u8bb2\u89e3\u4e00\u4e0b\u76ee\u5f55\u6587\u4ef6\u7684\u6743\u9650\u8bbe\u7f6e\u3002\u5bf9\u76ee\u5f55\u6587\u4ef6\u6765\u8bf4\uff0c\u201c\u53ef\u8bfb\u201d\u8868\u793a\u80fd\u591f\u8bfb\u53d6\u76ee\u5f55\u5185\u7684\u6587\u4ef6\u5217\u8868\uff1b\u201c\u53ef\u5199\u201d\u8868\u793a\u80fd\u591f\u5728\u76ee\u5f55\u5185\u65b0\u589e\u3001\u5220\u9664\u3001\u91cd\u547d\u540d\u6587\u4ef6\uff1b\u800c\u201c\u53ef\u6267\u884c\u201d\u5219\u8868\u793a\u80fd\u591f\u8fdb\u5165\u8be5\u76ee\u5f55\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6587\u4ef6\u7684\u8bfb\u3001\u5199\u3001\u6267\u884c\u6743\u9650\u53ef\u4ee5\u7b80\u5199\u4e3arwx\uff0c\u4ea6\u53ef\u5206\u522b\u7528\u6570\u5b574\u30012\u30011\u6765\u8868\u793a\uff0c\u6587\u4ef6\u6240\u6709\u8005\uff0c\u6240\u5c5e\u7ec4\u53ca\u5176\u4ed6\u7528\u6237\u6743\u9650\u4e4b\u95f4\u65e0\u5173\u8054\uff0c\u5982\u88685-5\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u88685-5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6587\u4ef6\u6743\u9650\u7684\u5b57\u7b26\u4e0e\u6570\u5b57\u8868\u793a<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/02\/%E6%9D%83%E9%99%90%E5%80%BC.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-269 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/02\/%E6%9D%83%E9%99%90%E5%80%BC.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\" width=\"593\" height=\"117\"  sizes=\"auto, (max-width: 593px) 100vw, 593px\" title=\"\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6587\u4ef6\u6743\u9650\u7684\u6570\u5b57\u6cd5\u8868\u793a\u57fa\u4e8e\u5b57\u7b26\u8868\u793a\uff08rwx\uff09\u7684\u6743\u9650\u8ba1\u7b97\u800c\u6765\uff0c\u5176\u76ee\u7684\u662f\u7b80\u5316\u6743\u9650\u7684\u8868\u793a\u3002\u4f8b\u5982\uff0c\u82e5\u67d0\u4e2a\u6587\u4ef6\u7684\u6743\u9650\u4e3a<strong style=\"box-sizing: border-box;\">7<\/strong>\u5219\u4ee3\u8868\u53ef\u8bfb\u3001\u53ef\u5199\u3001\u53ef\u6267\u884c\uff084+2+1\uff09\uff1b\u82e5\u6743\u9650\u4e3a6\u5219\u4ee3\u8868\u53ef\u8bfb\u3001\u53ef\u5199\uff084+2\uff09\u3002\u6211\u4eec\u6765\u770b\u8fd9\u6837\u4e00\u4e2a\u4f8b\u5b50\u3002\u73b0\u5728\u6709\u8fd9\u6837\u4e00\u4e2a\u6587\u4ef6\uff0c\u5176\u6240\u6709\u8005\u62e5\u6709\u53ef\u8bfb\u3001\u53ef\u5199\u3001\u53ef\u6267\u884c\u7684\u6743\u9650\uff0c\u5176\u6587\u4ef6\u6240\u5c5e\u7ec4\u62e5\u6709\u53ef\u8bfb\u3001\u53ef\u5199\u7684\u6743\u9650\uff1b\u800c\u4e14\u5176\u4ed6\u4eba\u53ea\u6709\u53ef\u8bfb\u7684\u6743\u9650\u3002\u90a3\u4e48\uff0c\u8fd9\u4e2a\u6587\u4ef6\u7684\u6743\u9650\u5c31\u662frwxrw-r&#8211;\uff0c\u6570\u5b57\u6cd5\u8868\u793a\u5373\u4e3a764\u3002\u4e0d\u8fc7\u5927\u5bb6\u5343\u4e07\u522b\u518d\u5c06\u8fd9\u4e09\u4e2a\u6570\u5b57\u76f8\u52a0\uff0c\u8ba1\u7b97\u51fa7+6+4=17\u7684\u7ed3\u679c\uff0c\u8fd9\u662f\u5c0f\u5b66\u7684\u6570\u5b66\u52a0\u51cf\u6cd5\uff0c\u4e0d\u662fLinux\u7cfb\u7edf\u7684\u6743\u9650\u6570\u5b57\u8868\u793a\u6cd5\uff0c\u4e09\u8005\u4e4b\u95f4\u6ca1\u6709\u4e92\u901a\u5173\u7cfb\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">Linux\u7cfb\u7edf\u7684\u6587\u4ef6\u6743\u9650\u76f8\u5f53\u590d\u6742\uff0c\u4f46\u662f\u7528\u9014\u5f88\u5e7f\u6cdb\uff0c\u5efa\u8bae\u5927\u5bb6\u628a\u5b83\u5f7b\u5e95\u641e\u6e05\u695a\u4e4b\u540e\u518d\u5b66\u4e60\u4e0b\u4e00\u8282\u7684\u5185\u5bb9\u3002\u73b0\u5728\u6765\u7ec3\u4e60\u4e00\u4e0b\u3002\u8bf7\u5404\u4f4d\u8bfb\u8005\u5206\u522b\u8ba1\u7b97\u6570\u5b57\u8868\u793a\u6cd5764\u3001642\u3001153\u3001731\u6240\u5bf9\u5e94\u7684\u5b57\u7b26\u8868\u793a\u6cd5\uff0c\u7136\u540e\u518d\u628arwxrw-r&#8211;\u3001rw&#8211;w&#8211;wx\u3001rw-r&#8211;r&#8211;\u8f6c\u6362\u6210\u6570\u5b57\u8868\u793a\u6cd5\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e0b\u9762\u6211\u4eec\u5229\u7528\u4e0a\u6587\u8bb2\u89e3\u7684\u77e5\u8bc6\uff0c\u4e00\u8d77\u5206\u6790\u56fe5-1\u4e2d\u6240\u793a\u7684\u6587\u4ef6\u4fe1\u606f\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/02\/%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-270 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/02\/%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\" width=\"575\" height=\"107\"  sizes=\"auto, (max-width: 575px) 100vw, 575px\" title=\"\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\u7b2c5\u7ae0 \u7528\u6237\u8eab\u4efd\u4e0e\u6587\u4ef6\u6743\u9650\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe5-1 \u901a\u8fc7ls\u547d\u4ee4\u67e5\u770b\u5230\u7684\u6587\u4ef6\u5c5e\u6027\u4fe1\u606f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u56fe5-1\u4e2d\uff0c\u5305\u542b\u4e86\u6587\u4ef6\u7684\u7c7b\u578b\u3001\u8bbf\u95ee\u6743\u9650\u3001\u6240\u6709\u8005\uff08\u5c5e\u4e3b\uff09\u3001\u6240\u5c5e\u7ec4\uff08\u5c5e\u7ec4\uff09\u3001\u5360\u7528\u7684\u78c1\u76d8\u5927\u5c0f\u3001\u4fee\u6539\u65f6\u95f4\u548c\u6587\u4ef6\u540d\u79f0\u7b49\u4fe1\u606f\u3002\u901a\u8fc7\u5206\u6790\u53ef\u77e5\uff0c\u8be5\u6587\u4ef6\u7684\u7c7b\u578b\u4e3a\u666e\u901a\u6587\u4ef6\uff0c\u6240\u6709\u8005\u6743\u9650\u4e3a\u53ef\u8bfb\u3001\u53ef\u5199\uff08rw-\uff09\uff0c\u6240\u5c5e\u7ec4\u6743\u9650\u4e3a\u53ef\u8bfb\uff08r&#8211;\uff09\uff0c\u9664\u6b64\u4ee5\u5916\u7684\u5176\u4ed6\u4eba\u4e5f\u53ea\u6709\u53ef\u8bfb\u6743\u9650\uff08r&#8211;\uff09\uff0c\u6587\u4ef6\u7684\u78c1\u76d8\u5360\u7528\u5927\u5c0f\u662f34298\u5b57\u8282\uff0c\u6700\u8fd1\u4e00\u6b21\u7684\u4fee\u6539\u65f6\u95f4\u4e3a4\u67082\u65e5\u7684\u51cc\u666823\u5206\uff0c\u6587\u4ef6\u7684\u540d\u79f0\u4e3ainstall.log\u3002<\/p>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"53\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">5.3 \u6587\u4ef6\u7684\u7279\u6b8a\u6743\u9650<\/span><\/strong><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u590d\u6742\u591a\u53d8\u7684\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5355\u7eaf\u8bbe\u7f6e\u6587\u4ef6\u7684rwx\u6743\u9650\u65e0\u6cd5\u6ee1\u8db3\u6211\u4eec\u5bf9\u5b89\u5168\u548c\u7075\u6d3b\u6027\u7684\u9700\u6c42\uff0c\u56e0\u6b64\u4fbf\u6709\u4e86SUID\u3001SGID\u4e0eSBIT\u7684\u7279\u6b8a\u6743\u9650\u4f4d\u3002\u8fd9\u662f\u4e00\u79cd\u5bf9\u6587\u4ef6\u6743\u9650\u8fdb\u884c\u8bbe\u7f6e\u7684\u7279\u6b8a\u529f\u80fd\uff0c\u53ef\u4ee5\u4e0e\u4e00\u822c\u6743\u9650\u540c\u65f6\u4f7f\u7528\uff0c\u4ee5\u5f25\u8865\u4e00\u822c\u6743\u9650\u4e0d\u80fd\u5b9e\u73b0\u7684\u529f\u80fd\u3002\u4e0b\u9762\u5177\u4f53\u89e3\u91ca\u8fd93\u4e2a\u7279\u6b8a\u6743\u9650\u4f4d\u7684\u529f\u80fd\u4ee5\u53ca\u7528\u6cd5\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">1. &nbsp;SUID<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">SUID\u662f\u4e00\u79cd\u5bf9\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u8fdb\u884c\u8bbe\u7f6e\u7684\u7279\u6b8a\u6743\u9650\uff0c\u53ef\u4ee5\u8ba9\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u7684\u6267\u884c\u8005\u4e34\u65f6\u62e5\u6709\u5c5e\u4e3b\u7684\u6743\u9650\uff08\u4ec5\u5bf9\u62e5\u6709\u6267\u884c\u6743\u9650\u7684\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u6709\u6548\uff09\u3002\u4f8b\u5982\uff0c\u6240\u6709\u7528\u6237\u90fd\u53ef\u4ee5\u6267\u884cpasswd\u547d\u4ee4\u6765\u4fee\u6539\u81ea\u5df1\u7684\u7528\u6237\u5bc6\u7801\uff0c\u800c\u7528\u6237\u5bc6\u7801\u4fdd\u5b58\u5728\/etc\/shadow\u6587\u4ef6\u4e2d\u3002\u4ed4\u7ec6\u67e5\u770b\u8fd9\u4e2a\u6587\u4ef6\u5c31\u4f1a\u53d1\u73b0\u5b83\u7684\u9ed8\u8ba4\u6743\u9650\u662f000\uff0c\u4e5f\u5c31\u662f\u8bf4\u9664\u4e86root\u7ba1\u7406\u5458\u4ee5\u5916\uff0c\u6240\u6709\u7528\u6237\u90fd\u6ca1\u6709\u67e5\u770b\u6216\u7f16\u8f91\u8be5\u6587\u4ef6\u7684\u6743\u9650\u3002\u4f46\u662f\uff0c\u5728\u4f7f\u7528passwd\u547d\u4ee4\u65f6\u5982\u679c\u52a0\u4e0aSUID\u7279\u6b8a\u6743\u9650\u4f4d\uff0c\u5c31\u53ef\u8ba9\u666e\u901a\u7528\u6237\u4e34\u65f6\u83b7\u5f97\u7a0b\u5e8f\u6240\u6709\u8005\u7684\u8eab\u4efd\uff0c\u628a\u53d8\u66f4\u7684\u5bc6\u7801\u4fe1\u606f\u5199\u5165\u5230shadow\u6587\u4ef6\u4e2d\u3002\u8fd9\u5f88\u50cf\u6211\u4eec\u5728\u53e4\u88c5\u5267\u4e2d\u89c1\u5230\u7684\u624b\u6301\u5c1a\u65b9\u5b9d\u5251\u7684\u94a6\u5dee\u5927\u81e3\uff0c\u4ed6\u624b\u6301\u7684\u5c1a\u65b9\u5b9d\u5251\u4ee3\u8868\u7684\u662f\u7687\u4e0a\u7684\u6743\u5a01\uff0c\u56e0\u6b64\u53ef\u4ee5\u60e9\u6212\u8d2a\u5b98\uff0c\u4f46\u8fd9\u5e76\u4e0d\u610f\u5473\u7740\u4ed6\u6c38\u4e45\u6210\u4e3a\u4e86\u7687\u4e0a\u3002\u56e0\u6b64\u8fd9\u53ea\u662f\u4e00\u79cd\u6709\u6761\u4ef6\u7684\u3001\u4e34\u65f6\u7684\u7279\u6b8a\u6743\u9650\u6388\u6743\u65b9\u6cd5\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u67e5\u770bpasswd\u547d\u4ee4\u5c5e\u6027\u65f6\u53d1\u73b0\u6240\u6709\u8005\u7684\u6743\u9650\u7531rwx\u53d8\u6210\u4e86rws\uff0c\u5176\u4e2dx\u6539\u53d8\u6210s\u5c31\u610f\u5473\u7740\u8be5\u6587\u4ef6\u88ab\u8d4b\u4e88\u4e86SUID\u6743\u9650\u3002\u53e6\u5916\u6709\u8bfb\u8005\u4f1a\u597d\u5947\uff0c\u90a3\u4e48\u5982\u679c\u539f\u672c\u7684\u6743\u9650\u662frw-\u5462\uff1f\u5982\u679c\u539f\u5148\u6743\u9650\u4f4d\u4e0a\u6ca1\u6709x\u6267\u884c\u6743\u9650\uff0c\u90a3\u4e48\u88ab\u8d4b\u4e88\u7279\u6b8a\u6743\u9650\u540e\u5c06\u53d8\u6210\u5927\u5199\u7684S\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-l&nbsp;\/etc\/shadow----------.&nbsp;1&nbsp;root&nbsp;root&nbsp;1004&nbsp;Jan&nbsp;3&nbsp;06:23&nbsp;\/etc\/shadow\r\n[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-l&nbsp;\/bin\/passwd\r\n-rwsr-xr-x.&nbsp;1&nbsp;root&nbsp;root&nbsp;27832&nbsp;Jan&nbsp;29&nbsp;2017&nbsp;\/bin\/passwd<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">2. &nbsp;SGID<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">SGID\u4e3b\u8981\u5b9e\u73b0\u5982\u4e0b\u4e24\u79cd\u529f\u80fd\uff1a<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u8ba9\u6267\u884c\u8005\u4e34\u65f6\u62e5\u6709\u5c5e\u7ec4\u7684\u6743\u9650\uff08\u5bf9\u62e5\u6709\u6267\u884c\u6743\u9650\u7684\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u8fdb\u884c\u8bbe\u7f6e\uff09\uff1b<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u5728\u67d0\u4e2a\u76ee\u5f55\u4e2d\u521b\u5efa\u7684\u6587\u4ef6\u81ea\u52a8\u7ee7\u627f\u8be5\u76ee\u5f55\u7684\u7528\u6237\u7ec4\uff08\u53ea\u53ef\u4ee5\u5bf9\u76ee\u5f55\u8fdb\u884c\u8bbe\u7f6e\uff09\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">SGID\u7684\u7b2c\u4e00\u79cd\u529f\u80fd\u662f\u53c2\u8003SUID\u800c\u8bbe\u8ba1\u7684\uff0c\u4e0d\u540c\u70b9\u5728\u4e8e\u6267\u884c\u7a0b\u5e8f\u7684\u7528\u6237\u83b7\u53d6\u7684\u4e0d\u518d\u662f\u6587\u4ef6\u6240\u6709\u8005\u7684\u4e34\u65f6\u6743\u9650\uff0c\u800c\u662f\u83b7\u53d6\u5230\u6587\u4ef6\u6240\u5c5e\u7ec4\u7684\u6743\u9650\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5728\u65e9\u671f\u7684Linux\u7cfb\u7edf\u4e2d\uff0c\/dev\/kmem\u662f\u4e00\u4e2a\u5b57\u7b26\u8bbe\u5907\u6587\u4ef6\uff0c\u7528\u4e8e\u5b58\u50a8\u5185\u6838\u7a0b\u5e8f\u8981\u8bbf\u95ee\u7684\u6570\u636e\uff0c\u6743\u9650\u4e3a\uff1a<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">cr&#8211;r&#8212;&#8211;<\/strong>&nbsp;&nbsp; 1 root system 2,&nbsp; 1 Feb 11 2017 &nbsp;kmem<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5927\u5bb6\u770b\u51fa\u95ee\u9898\u4e86\u5417\uff1f\u9664\u4e86root\u7ba1\u7406\u5458\u6216\u5c5e\u4e8esystem\u7ec4\u6210\u5458\u5916\uff0c\u6240\u6709\u7528\u6237\u90fd\u6ca1\u6709\u8bfb\u53d6\u8be5\u6587\u4ef6\u7684\u6743\u9650\u3002\u7531\u4e8e\u5728\u5e73\u65f6\u6211\u4eec\u9700\u8981\u67e5\u770b\u7cfb\u7edf\u7684\u8fdb\u7a0b\u72b6\u6001\uff0c\u4e3a\u4e86\u80fd\u591f\u83b7\u53d6\u5230\u8fdb\u7a0b\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u53ef\u5728\u7528\u4e8e\u67e5\u770b\u7cfb\u7edf\u8fdb\u7a0b\u72b6\u6001\u7684ps\u547d\u4ee4\u6587\u4ef6\u4e0a\u589e\u52a0SGID\u7279\u6b8a\u6743\u9650\u4f4d\u3002\u67e5\u770bps\u547d\u4ee4\u6587\u4ef6\u7684\u5c5e\u6027\u4fe1\u606f\uff1a<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">-r-xr-<strong style=\"box-sizing: border-box;\">s<\/strong>r-x&nbsp;&nbsp; 1 bin system 59346 Feb 11&nbsp;2017 &nbsp;ps<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u8fd9\u6837\u4e00\u6765\uff0c\u7531\u4e8eps\u547d\u4ee4\u88ab\u589e\u52a0\u4e86SGID\u7279\u6b8a\u6743\u9650\u4f4d\uff0c\u6240\u4ee5\u5f53\u7528\u6237\u6267\u884c\u8be5\u547d\u4ee4\u65f6\uff0c\u4e5f\u5c31\u4e34\u65f6\u83b7\u53d6\u5230\u4e86system\u7528\u6237\u7ec4\u7684\u6743\u9650\uff0c\u4ece\u800c\u53ef\u4ee5\u987a\u5229\u5730\u8bfb\u53d6\u8bbe\u5907\u6587\u4ef6\u4e86\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u524d\u6587\u63d0\u5230\uff0c\u6bcf\u4e2a\u6587\u4ef6\u90fd\u6709\u5176\u5f52\u5c5e\u7684\u6240\u6709\u8005\u548c\u6240\u5c5e\u7ec4\uff0c\u5f53\u521b\u5efa\u6216\u4f20\u9001\u4e00\u4e2a\u6587\u4ef6\u540e\uff0c\u8fd9\u4e2a\u6587\u4ef6\u5c31\u4f1a\u81ea\u52a8\u5f52\u5c5e\u4e8e\u6267\u884c\u8fd9\u4e2a\u64cd\u4f5c\u7684\u7528\u6237\uff08\u5373\u8be5\u7528\u6237\u662f\u6587\u4ef6\u7684\u6240\u6709\u8005\uff09\u3002\u5982\u679c\u73b0\u5728\u9700\u8981\u5728\u4e00\u4e2a\u90e8\u95e8\u5185\u8bbe\u7f6e\u5171\u4eab\u76ee\u5f55\uff0c\u8ba9\u90e8\u95e8\u5185\u7684\u6240\u6709\u4eba\u5458\u90fd\u80fd\u591f\u8bfb\u53d6\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u521b\u5efa\u90e8\u95e8\u5171\u4eab\u76ee\u5f55\u540e\uff0c\u5728\u8be5\u76ee\u5f55\u4e0a\u8bbe\u7f6eSGID\u7279\u6b8a\u6743\u9650\u4f4d\u3002\u8fd9\u6837\uff0c\u90e8\u95e8\u5185\u7684\u4efb\u4f55\u4eba\u5458\u5728\u91cc\u9762\u521b\u5efa\u7684\u4efb\u4f55\u6587\u4ef6\u90fd\u4f1a\u5f52\u5c5e\u4e8e\u8be5\u76ee\u5f55\u7684\u6240\u5c5e\u7ec4\uff0c\u800c\u4e0d\u518d\u662f\u81ea\u5df1\u7684\u57fa\u672c\u7528\u6237\u7ec4\u3002\u6b64\u65f6\uff0c\u6211\u4eec\u7528\u5230\u7684\u5c31\u662fSGID\u7684\u7b2c\u4e8c\u4e2a\u529f\u80fd\uff0c\u5373\u5728\u67d0\u4e2a\u76ee\u5f55\u4e2d\u521b\u5efa\u7684\u6587\u4ef6\u81ea\u52a8\u7ee7\u627f\u8be5\u76ee\u5f55\u7684\u7528\u6237\u7ec4\uff08\u53ea\u53ef\u4ee5\u5bf9\u76ee\u5f55\u8fdb\u884c\u8bbe\u7f6e\uff09\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;cd&nbsp;\/tmp\r\n[root@linuxprobe&nbsp;tmp]#&nbsp;mkdir&nbsp;testdir\r\n[root@linuxprobe&nbsp;tmp]#&nbsp;ls&nbsp;-ald&nbsp;testdir\/\r\ndrwxr-xr-x.&nbsp;2&nbsp;root&nbsp;root&nbsp;6&nbsp;Feb&nbsp;11&nbsp;11:50&nbsp;testdir\/\r\n[root@linuxprobe&nbsp;tmp]#&nbsp;chmod&nbsp;-Rf&nbsp;777&nbsp;testdir\/\r\n[root@linuxprobe&nbsp;tmp]#&nbsp;chmod&nbsp;-Rf&nbsp;g+s&nbsp;testdir\/\r\n[root@linuxprobe&nbsp;tmp]#&nbsp;ls&nbsp;-ald&nbsp;testdir\/\r\ndrwxrwsrwx.&nbsp;2&nbsp;root&nbsp;root&nbsp;6&nbsp;Feb&nbsp;11&nbsp;11:50&nbsp;testdir\/<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u8bbe\u7f6e\u597d\u76ee\u5f55\u7684777\u6743\u9650\uff08\u786e\u4fdd\u666e\u901a\u7528\u6237\u53ef\u4ee5\u5411\u5176\u4e2d\u5199\u5165\u6587\u4ef6\uff09\uff0c\u5e76\u4e3a\u8be5\u76ee\u5f55\u8bbe\u7f6e\u4e86SGID\u7279\u6b8a\u6743\u9650\u4f4d\u540e\uff0c\u5c31\u53ef\u4ee5\u5207\u6362\u81f3\u4e00\u4e2a\u666e\u901a\u7528\u6237\uff0c\u7136\u540e\u5c1d\u8bd5\u5728\u8be5\u76ee\u5f55\u4e2d\u521b\u5efa\u6587\u4ef6\uff0c\u5e76\u67e5\u770b\u65b0\u521b\u5efa\u7684\u6587\u4ef6\u662f\u5426\u4f1a\u7ee7\u627f\u65b0\u521b\u5efa\u7684\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u7684\u6240\u5c5e\u7ec4\u540d\u79f0\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;tmp]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Wed&nbsp;Feb&nbsp;11&nbsp;11:49:16&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/0\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;cd&nbsp;\/tmp\/testdir\/\r\n[linuxprobe@linuxprobe&nbsp;testdir]$&nbsp;echo&nbsp;&quot;linuxprobe.com&quot;&nbsp;&gt;&nbsp;test\r\n[linuxprobe@linuxprobe&nbsp;testdir]$&nbsp;ls&nbsp;-al&nbsp;test\r\n-rw-rw-r--.&nbsp;1&nbsp;linuxprobe&nbsp;root&nbsp;15&nbsp;Feb&nbsp;11&nbsp;11:50&nbsp;test<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u9664\u4e86\u4e0a\u9762\u63d0\u5230\u7684SGID\u7684\u8fd9\u4e24\u4e2a\u529f\u80fd\uff0c\u6211\u4eec\u518d\u4ecb\u7ecd\u4e24\u4e2a\u4e0e\u672c\u5c0f\u8282\u5185\u5bb9\u76f8\u5173\u7684\u547d\u4ee4\uff1achmod\u548cchown\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">chmod\u547d\u4ee4\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u547d\u4ee4\uff0c\u80fd\u591f\u7528\u6765\u8bbe\u7f6e\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6743\u9650\uff0c\u683c\u5f0f\u4e3a\u201cchmod [\u53c2\u6570] \u6743\u9650 \u6587\u4ef6\u6216\u76ee\u5f55\u540d\u79f0\u201d\u3002\u5982\u679c\u8981\u628a\u4e00\u4e2a\u6587\u4ef6\u7684\u6743\u9650\u8bbe\u7f6e\u6210\u5176\u6240\u6709\u8005\u53ef\u8bfb\u53ef\u5199\u53ef\u6267\u884c\u3001\u6240\u5c5e\u7ec4\u53ef\u8bfb\u53ef\u5199\u3001\u5176\u4ed6\u4eba\u6ca1\u6709\u4efb\u4f55\u6743\u9650\uff0c\u5219\u76f8\u5e94\u7684\u5b57\u7b26\u6cd5\u8868\u793a\u4e3arwxrw&#8212;-\uff0c\u5176\u5bf9\u5e94\u7684\u6570\u5b57\u6cd5\u8868\u793a\u4e3a760\u3002\u901a\u8fc7\u524d\u9762\u7684\u57fa\u7840\u5b66\u4e60\u548c\u5f53\u524d\u7684\u7ec3\u4e60\u5b9e\u8df5\uff0c\u73b0\u5728\u5927\u5bb6\u53ef\u4ee5\u611f\u53d7\u5230\u4f7f\u7528\u6570\u5b57\u6cd5\u6765\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650\u7684\u4fbf\u6377\u6027\u4e86\u5427\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-al&nbsp;test\r\n-rw-rw-r--.&nbsp;1&nbsp;linuxprobe&nbsp;root&nbsp;15&nbsp;Feb&nbsp;11&nbsp;11:50&nbsp;test\r\n[root@linuxprobe&nbsp;~]#&nbsp;chmod&nbsp;760&nbsp;test\r\n[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-l&nbsp;test\r\n-rwxrw----.&nbsp;1&nbsp;linuxprobe&nbsp;root&nbsp;15&nbsp;Feb&nbsp;11&nbsp;11:50&nbsp;test<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u9664\u4e86\u8bbe\u7f6e\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6743\u9650\u5916\uff0c\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6240\u6709\u8005\u548c\u6240\u5c5e\u7ec4\uff0c\u8fd9\u91cc\u4f7f\u7528\u7684\u547d\u4ee4\u4e3achown\uff0c\u5176\u683c\u5f0f\u4e3a\u201cchown [\u53c2\u6570] \u6240\u6709\u8005:\u6240\u5c5e\u7ec4 \u6587\u4ef6\u6216\u76ee\u5f55\u540d\u79f0\u201d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">chmod\u548cchown\u547d\u4ee4\u662f\u7528\u4e8e\u4fee\u6539\u6587\u4ef6\u5c5e\u6027\u548c\u6743\u9650\u7684\u6700\u5e38\u7528\u547d\u4ee4\uff0c\u5b83\u4eec\u8fd8\u6709\u4e00\u4e2a\u7279\u522b\u7684\u5171\u6027\uff0c\u5c31\u662f\u9488\u5bf9\u76ee\u5f55\u8fdb\u884c\u64cd\u4f5c\u65f6\u9700\u8981\u52a0\u4e0a\u5927\u5199\u53c2\u6570-R\u6765\u8868\u793a\u9012\u5f52\u64cd\u4f5c\uff0c\u5373\u5bf9\u76ee\u5f55\u5185\u6240\u6709\u7684\u6587\u4ef6\u8fdb\u884c\u6574\u4f53\u64cd\u4f5c\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-l&nbsp;test\r\n-rwxrw----.&nbsp;1&nbsp;linuxprobe&nbsp;root&nbsp;15&nbsp;Feb&nbsp;11&nbsp;11:50&nbsp;test\r\n[root@linuxprobe&nbsp;~]#&nbsp;chown&nbsp;root:bin&nbsp;test\r\n[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-l&nbsp;test\r\n-rwxrw----.&nbsp;1&nbsp;root&nbsp;bin&nbsp;15&nbsp;Feb&nbsp;11&nbsp;11:50&nbsp;test<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">3. &nbsp;SBIT<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u73b0\u5728\uff0c\u5927\u5b66\u91cc\u7684\u5f88\u591a\u8001\u5e08\u90fd\u8981\u6c42\u5b66\u751f\u5c06\u4f5c\u4e1a\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u7279\u5b9a\u5171\u4eab\u76ee\u5f55\u4e2d\uff0c\u4f46\u603b\u662f\u6709\u51e0\u4e2a\u201c\u7834\u574f\u5206\u5b50\u201d\u559c\u6b22\u5220\u9664\u5176\u4ed6\u540c\u5b66\u7684\u4f5c\u4e1a\uff0c\u8fd9\u65f6\u5c31\u8981\u8bbe\u7f6eSBIT\uff08Sticky Bit\uff09\u7279\u6b8a\u6743\u9650\u4f4d\u4e86\uff08\u4e5f\u53ef\u4ee5\u79f0\u4e4b\u4e3a\u7279\u6b8a\u6743\u9650\u4f4d\u4e4b\u7c98\u6ede\u4f4d\uff09\u3002SBIT\u7279\u6b8a\u6743\u9650\u4f4d\u53ef\u786e\u4fdd\u7528\u6237\u53ea\u80fd\u5220\u9664\u81ea\u5df1\u7684\u6587\u4ef6\uff0c\u800c\u4e0d\u80fd\u5220\u9664\u5176\u4ed6\u7528\u6237\u7684\u6587\u4ef6\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5f53\u5bf9\u67d0\u4e2a\u76ee\u5f55\u8bbe\u7f6e\u4e86SBIT\u7c98\u6ede\u4f4d\u6743\u9650\u540e\uff0c\u90a3\u4e48\u8be5\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u5c31\u53ea\u80fd\u88ab\u5176\u6240\u6709\u8005\u6267\u884c\u5220\u9664\u64cd\u4f5c\u4e86\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6700\u521d\u4e0d\u77e5\u9053\u662f\u54ea\u4f4d\u975e\u8d44\u6df1\u6280\u672f\u4eba\u5458\u5c06Sticky Bit\u76f4\u8bd1\u6210\u4e86\u201c\u7c98\u6ede\u4f4d\u201d\uff0c\u5218\u9044\u8001\u5e08\u5efa\u8bae\u5c06\u5176\u79f0\u4e3a\u201c\u4fdd\u62a4\u4f4d\u201d\uff0c\u8fd9\u65e2\u597d\u8bb0\uff0c\u53c8\u80fd\u7acb\u523b\u8ba9\u4eba\u4e86\u89e3\u5b83\u7684\u4f5c\u7528\u3002RHEL 7\u7cfb\u7edf\u4e2d\u7684\/tmp\u4f5c\u4e3a\u4e00\u4e2a\u5171\u4eab\u6587\u4ef6\u7684\u76ee\u5f55\uff0c\u9ed8\u8ba4\u5df2\u7ecf\u8bbe\u7f6e\u4e86SBIT\u7279\u6b8a\u6743\u9650\u4f4d\uff0c\u56e0\u6b64\u9664\u975e\u662f\u8be5\u76ee\u5f55\u7684\u6240\u6709\u8005\uff0c\u5426\u5219\u65e0\u6cd5\u5220\u9664\u8fd9\u91cc\u9762\u7684\u6587\u4ef6\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e0e\u524d\u9762\u6240\u8bb2\u7684SUID\u548cSGID\u6743\u9650\u663e\u793a\u65b9\u6cd5\u4e0d\u540c\uff0c\u5f53\u76ee\u5f55\u88ab\u8bbe\u7f6eSBIT\u7279\u6b8a\u6743\u9650\u4f4d\u540e\uff0c\u6587\u4ef6\u7684\u5176\u4ed6\u4eba\u6743\u9650\u90e8\u5206\u7684x\u6267\u884c\u6743\u9650\u5c31\u4f1a\u88ab\u66ff\u6362\u6210t\u6216\u8005T\uff0c\u539f\u672c\u6709x\u6267\u884c\u6743\u9650\u5219\u4f1a\u5199\u6210t\uff0c\u539f\u672c\u6ca1\u6709x\u6267\u884c\u6743\u9650\u5219\u4f1a\u88ab\u5199\u6210T\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;tmp]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Wed&nbsp;Feb&nbsp;11&nbsp;12:41:20&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/0\r\n[linuxprobe@linuxprobe&nbsp;tmp]$&nbsp;ls&nbsp;-ald&nbsp;\/tmp\r\ndrwxrwxrwt.&nbsp;17&nbsp;root&nbsp;root&nbsp;4096&nbsp;Feb&nbsp;11&nbsp;13:03&nbsp;\/tmp\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;cd&nbsp;\/tmp\r\n[linuxprobe@linuxprobe&nbsp;tmp]$&nbsp;ls&nbsp;-ald\r\ndrwxrwxrwt.&nbsp;17&nbsp;root&nbsp;root&nbsp;4096&nbsp;Feb&nbsp;11&nbsp;13:03&nbsp;.\r\n[linuxprobe@linuxprobe&nbsp;tmp]$&nbsp;echo&nbsp;&quot;Welcome&nbsp;to&nbsp;linuxprobe.com&quot;&nbsp;&gt;&nbsp;test\r\n[linuxprobe@linuxprobe&nbsp;tmp]$&nbsp;chmod&nbsp;777&nbsp;test\r\n[linuxprobe@linuxprobe&nbsp;tmp]$&nbsp;ls&nbsp;-al&nbsp;test&nbsp;\r\n-rwxrwxrwx.&nbsp;1&nbsp;linuxprobe&nbsp;linuxprobe&nbsp;10&nbsp;Feb&nbsp;11&nbsp;12:59&nbsp;test<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5176\u5b9e\uff0c\u6587\u4ef6\u80fd\u5426\u88ab\u5220\u9664\u5e76\u4e0d\u53d6\u51b3\u4e8e\u81ea\u8eab\u7684\u6743\u9650\uff0c\u800c\u662f\u770b\u5176\u6240\u5728\u76ee\u5f55\u662f\u5426\u6709\u5199\u5165\u6743\u9650\uff08\u5176\u539f\u7406\u4f1a\u5728\u4e0b\u4e2a\u7ae0\u8282\u8bb2\u5230\uff09\u3002\u4e3a\u4e86\u907f\u514d\u73b0\u5728\u5f88\u591a\u8bfb\u8005\u4e0d\u653e\u5fc3\uff0c\u6240\u4ee5\u4e0a\u9762\u7684\u547d\u4ee4\u8fd8\u662f\u8d4b\u4e88\u4e86\u8fd9\u4e2atest\u6587\u4ef6\u6700\u5927\u7684777\u6743\u9650\uff08rwxrwxrwx\uff09\u3002\u6211\u4eec\u5207\u6362\u5230\u53e6\u5916\u4e00\u4e2a\u666e\u901a\u7528\u6237\uff0c\u7136\u540e\u5c1d\u8bd5\u5220\u9664\u8fd9\u4e2a\u5176\u4ed6\u4eba\u521b\u5efa\u7684\u6587\u4ef6\u5c31\u4f1a\u53d1\u73b0\uff0c\u5373\u4fbf\u8bfb\u3001\u5199\u3001\u6267\u884c\u6743\u9650\u5168\u5f00\uff0c\u4f46\u662f\u7531\u4e8eSBIT\u7279\u6b8a\u6743\u9650\u4f4d\u7684\u7f18\u6545\uff0c\u4f9d\u7136\u65e0\u6cd5\u5220\u9664\u8be5\u6587\u4ef6\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;tmp]#&nbsp;su&nbsp;-&nbsp;blackshield\r\nLast&nbsp;login:&nbsp;Wed&nbsp;Feb&nbsp;11&nbsp;12:41:29&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/1\r\n[blackshield@linuxprobe&nbsp;~]$&nbsp;cd&nbsp;\/tmp\r\n[blackshield@linuxprobe&nbsp;tmp]$&nbsp;rm&nbsp;-f&nbsp;test\r\nrm:&nbsp;cannot&nbsp;remove&nbsp;\u2018test\u2019:&nbsp;Operation&nbsp;not&nbsp;permitted<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5f53\u7136\uff0c\u8981\u662f\u4e5f\u60f3\u5bf9\u5176\u4ed6\u76ee\u5f55\u6765\u8bbe\u7f6eSBIT\u7279\u6b8a\u6743\u9650\u4f4d\uff0c\u7528chmod\u547d\u4ee4\u5c31\u53ef\u4ee5\u4e86\u3002\u5bf9\u5e94\u7684\u53c2\u6570o+t\u4ee3\u8868\u8bbe\u7f6eSBIT\u7c98\u6ede\u4f4d\u6743\u9650\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[blackshield@linuxprobe&nbsp;tmp]$&nbsp;exit\r\nLogout\r\n[root@linuxprobe&nbsp;tmp]#&nbsp;cd&nbsp;~\r\n[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;linux\r\n[root@linuxprobe&nbsp;~]#&nbsp;chmod&nbsp;-R&nbsp;o+t&nbsp;linux\/\r\n[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-ld&nbsp;linux\/\r\ndrwxr-xr-t.&nbsp;2&nbsp;root&nbsp;root&nbsp;6&nbsp;Feb&nbsp;11&nbsp;19:34&nbsp;linux\/<\/pre>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"54\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">5.4 \u6587\u4ef6\u7684\u9690\u85cf\u5c5e\u6027<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">Linux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u9664\u4e86\u5177\u5907\u4e00\u822c\u6743\u9650\u548c\u7279\u6b8a\u6743\u9650\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u79cd\u9690\u85cf\u6743\u9650\uff0c\u5373\u88ab\u9690\u85cf\u8d77\u6765\u7684\u6743\u9650\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0d\u80fd\u76f4\u63a5\u88ab\u7528\u6237\u53d1\u89c9\u3002\u6709\u7528\u6237\u66fe\u7ecf\u5728\u751f\u4ea7\u73af\u5883\u548c<a href=\"https:\/\/www.linuxprobe.com\/\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\">RHCE<\/a>\u8003\u8bd5\u9898\u76ee\u4e2d\u78b0\u5230\u8fc7\u660e\u660e\u6743\u9650\u5145\u8db3\u4f46\u5374\u65e0\u6cd5\u5220\u9664\u67d0\u4e2a\u6587\u4ef6\u7684\u60c5\u51b5\uff0c\u6216\u8005\u4ec5\u80fd\u5728\u65e5\u5fd7\u6587\u4ef6\u4e2d\u8ffd\u52a0\u5185\u5bb9\u800c\u4e0d\u80fd\u4fee\u6539\u6216\u5220\u9664\u5185\u5bb9\uff0c\u8fd9\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u963b\u6b62\u4e86\u9ed1\u5ba2\u7be1\u6539\u7cfb\u7edf\u65e5\u5fd7\u7684\u56fe\u8c0b\uff0c\u56e0\u6b64\u8fd9\u79cd\u201c\u5947\u602a\u201d\u7684\u6587\u4ef6\u4e5f\u4fdd\u969c\u4e86Linux\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">1. &nbsp;chattr\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">chattr\u547d\u4ee4\u7528\u4e8e\u8bbe\u7f6e\u6587\u4ef6\u7684\u9690\u85cf\u6743\u9650\uff0c\u683c\u5f0f\u4e3a\u201cchattr [\u53c2\u6570] \u6587\u4ef6\u201d\u3002\u5982\u679c\u60f3\u8981\u628a\u67d0\u4e2a\u9690\u85cf\u529f\u80fd\u6dfb\u52a0\u5230\u6587\u4ef6\u4e0a\uff0c\u5219\u9700\u8981\u5728\u547d\u4ee4\u540e\u9762\u8ffd\u52a0\u201c+\u53c2\u6570\u201d\uff0c\u5982\u679c\u60f3\u8981\u628a\u67d0\u4e2a\u9690\u85cf\u529f\u80fd\u79fb\u51fa\u6587\u4ef6\uff0c\u5219\u9700\u8981\u8ffd\u52a0\u201c-\u53c2\u6570\u201d\u3002chattr\u547d\u4ee4\u4e2d\u53ef\u4f9b\u9009\u62e9\u7684\u9690\u85cf\u6743\u9650\u53c2\u6570\u975e\u5e38\u4e30\u5bcc\uff0c\u5177\u4f53\u5982\u88685-6\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u88685-6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chattr\u547d\u4ee4\u4e2d\u7528\u4e8e\u9690\u85cf\u6743\u9650\u7684\u53c2\u6570\u53ca\u5176\u4f5c\u7528<\/p>\n<table id=\"tablepress-120\" class=\"tablepress tablepress-id-120\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53c2\u6570<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f5c\u7528<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">i<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u65e0\u6cd5\u5bf9\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\uff1b\u82e5\u5bf9\u76ee\u5f55\u8bbe\u7f6e\u4e86\u8be5\u53c2\u6570\uff0c\u5219\u4ec5\u80fd\u4fee\u6539\u5176\u4e2d\u7684\u5b50\u6587\u4ef6\u5185\u5bb9\u800c\u4e0d\u80fd\u65b0\u5efa\u6216\u5220\u9664\u6587\u4ef6<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">a<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4ec5\u5141\u8bb8\u8865\u5145\uff08\u8ffd\u52a0\uff09\u5185\u5bb9\uff0c\u65e0\u6cd5\u8986\u76d6\/\u5220\u9664\u5185\u5bb9\uff08Append Only\uff09<\/td>\n<\/tr>\n<tr class=\"row-4 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">S<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u6587\u4ef6\u5185\u5bb9\u5728\u53d8\u66f4\u540e\u7acb\u5373\u540c\u6b65\u5230\u786c\u76d8\uff08sync\uff09<\/td>\n<\/tr>\n<tr class=\"row-5 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">s<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u5f7b\u5e95\u4ece\u786c\u76d8\u4e2d\u5220\u9664\uff0c\u4e0d\u53ef\u6062\u590d\uff08\u75280\u586b\u5145\u539f\u6587\u4ef6\u6240\u5728\u786c\u76d8\u533a\u57df\uff09<\/td>\n<\/tr>\n<tr class=\"row-6 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">A<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u4e0d\u518d\u4fee\u6539\u8fd9\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u6700\u540e\u8bbf\u95ee\u65f6\u95f4\uff08atime\uff09<\/td>\n<\/tr>\n<tr class=\"row-7 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">b<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4e0d\u518d\u4fee\u6539\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u5b58\u53d6\u65f6\u95f4<\/td>\n<\/tr>\n<tr class=\"row-8 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">D<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u68c0\u67e5\u538b\u7f29\u6587\u4ef6\u4e2d\u7684\u9519\u8bef<\/td>\n<\/tr>\n<tr class=\"row-9 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">d<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f7f\u7528dump\u547d\u4ee4\u5907\u4efd\u65f6\u5ffd\u7565\u672c\u6587\u4ef6\/\u76ee\u5f55<\/td>\n<\/tr>\n<tr class=\"row-10 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">c<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u9ed8\u8ba4\u5c06\u6587\u4ef6\u6216\u76ee\u5f55\u8fdb\u884c\u538b\u7f29<\/td>\n<\/tr>\n<tr class=\"row-11 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">u<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u5f53\u5220\u9664\u8be5\u6587\u4ef6\u540e\u4f9d\u7136\u4fdd\u7559\u5176\u5728\u786c\u76d8\u4e2d\u7684\u6570\u636e\uff0c\u65b9\u4fbf\u65e5\u540e\u6062\u590d<\/td>\n<\/tr>\n<tr class=\"row-12 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">t<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u8ba9\u6587\u4ef6\u7cfb\u7edf\u652f\u6301\u5c3e\u90e8\u5408\u5e76\uff08tail-merging\uff09<\/td>\n<\/tr>\n<tr class=\"row-13 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">x<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u538b\u7f29\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e3a\u4e86\u8ba9\u8bfb\u8005\u80fd\u591f\u66f4\u597d\u5730\u89c1\u8bc6\u9690\u85cf\u6743\u9650\u7684\u6548\u679c\uff0c\u6211\u4eec\u5148\u6765\u521b\u5efa\u4e00\u4e2a\u666e\u901a\u6587\u4ef6\uff0c\u7136\u540e\u7acb\u5373\u5c1d\u8bd5\u5220\u9664\uff08\u8fd9\u4e2a\u64cd\u4f5c\u80af\u5b9a\u4f1a\u6210\u529f\uff09\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;for&nbsp;Test&quot;&nbsp;&gt;&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;rm&nbsp;linuxprobe\r\nrm:&nbsp;remove&nbsp;regular&nbsp;file&nbsp;\u2018linuxprobe\u2019?&nbsp;y<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5b9e\u8df5\u662f\u68c0\u9a8c\u771f\u7406\u7684\u552f\u4e00\u6807\u51c6\u3002\u5982\u679c\u60a8\u6ca1\u6709\u4eb2\u773c\u89c1\u8bc1\u8fc7\u9690\u85cf\u6743\u9650\u5f3a\u5927\u529f\u80fd\u7684\u7f8e\u5999\uff0c\u5c31\u4e00\u5b9a\u4e0d\u4f1a\u76f8\u4fe1\u539f\u6765Linux\u7cfb\u7edf\u4f1a\u5982\u6b64\u5b89\u5168\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u518d\u6b21\u65b0\u5efa\u4e00\u4e2a\u666e\u901a\u6587\u4ef6\uff0c\u5e76\u4e3a\u5176\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u5220\u9664\u4e0e\u8986\u76d6\uff08+a\u53c2\u6570\uff09\u6743\u9650\uff0c\u7136\u540e\u518d\u5c1d\u8bd5\u5c06\u8fd9\u4e2a\u6587\u4ef6\u5220\u9664\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;for&nbsp;Test&quot;&nbsp;&gt;&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;chattr&nbsp;+a&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;rm&nbsp;linuxprobe\r\nrm:&nbsp;remove&nbsp;regular&nbsp;file&nbsp;\u2018linuxprobe\u2019?&nbsp;y\r\nrm:&nbsp;cannot&nbsp;remove&nbsp;\u2018linuxprobe\u2019:&nbsp;Operation&nbsp;not&nbsp;permitted<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u53ef\u89c1\uff0c\u4e0a\u8ff0\u64cd\u4f5c\u5931\u8d25\u4e86\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">2. &nbsp;lsattr\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">lsattr\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u6587\u4ef6\u7684\u9690\u85cf\u6743\u9650\uff0c\u683c\u5f0f\u4e3a\u201clsattr [\u53c2\u6570] \u6587\u4ef6\u201d\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6587\u4ef6\u7684\u9690\u85cf\u6743\u9650\u5fc5\u987b\u4f7f\u7528lsattr\u547d\u4ee4\u6765\u67e5\u770b\uff0c\u5e73\u65f6\u4f7f\u7528\u7684ls\u4e4b\u7c7b\u7684\u547d\u4ee4\u5219\u770b\u4e0d\u51fa\u7aef\u502a\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-al&nbsp;linuxprobe\r\n-rw-r--r--.&nbsp;1&nbsp;root&nbsp;root&nbsp;9&nbsp;Feb&nbsp;12&nbsp;11:42&nbsp;linuxprobe<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e00\u65e6\u4f7f\u7528lsattr\u547d\u4ee4\u540e\uff0c\u6587\u4ef6\u4e0a\u88ab\u8d4b\u4e88\u7684\u9690\u85cf\u6743\u9650\u9a6c\u4e0a\u5c31\u4f1a\u539f\u5f62\u6bd5\u9732\u3002\u6b64\u65f6\u53ef\u4ee5\u6309\u7167\u663e\u793a\u7684\u9690\u85cf\u6743\u9650\u7684\u7c7b\u578b\uff08\u5b57\u6bcd\uff09\uff0c\u4f7f\u7528chattr\u547d\u4ee4\u5c06\u5176\u53bb\u6389\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;lsattr&nbsp;linuxprobe\r\n-----a----------&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;chattr&nbsp;-a&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;lsattr&nbsp;linuxprobe&nbsp;\r\n----------------&nbsp;linuxprobe\r\n[root@linuxprobe&nbsp;~]#&nbsp;rm&nbsp;linuxprobe&nbsp;\r\nrm:&nbsp;remove&nbsp;regular&nbsp;file&nbsp;\u2018linuxprobe\u2019?&nbsp;y<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"box-sizing: border-box; color: #800080;\"><strong style=\"box-sizing: border-box;\">\u51fa\u73b0\u95ee\u9898?\u5927\u80c6\u63d0\u95ee!<\/strong><\/span><\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u56e0\u8bfb\u8005\u4eec\u786c\u4ef6\u4e0d\u540c\u6216\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4\u5b9e\u9a8c\u914d\u7f6e\u51fa\u9519\uff0c\u8bf7\u8010\u5fc3\u518d\u4ed4\u7ec6\u770b\u770b\u64cd\u4f5c\u6b65\u9aa4\u5427\uff0c\u4e0d\u8981\u6c14\u9981~<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">Linux\u6280\u672f\u4ea4\u6d41\u8bf7\u52a0A\u7fa4\uff1a560843(<strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">\u6ee1<\/span><\/strong>)\uff0cB\u7fa4\uff1a340829(<span style=\"box-sizing: border-box; color: #008000;\">\u63a8\u8350<\/span>)\uff0cC\u7fa4\uff1a463590\uff08<strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">\u63a8\u8350<\/span><\/strong>\uff09\uff0c<a href=\"https:\/\/www.linuxprobe.com\/club\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\">\u70b9\u6b64\u67e5\u770b\u5168\u56fd\u7fa4<\/a>\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">*\u672c\u7fa4\u7279\u8272\uff1a\u901a\u8fc7\u53e3\u4ee4\u9a8c\u8bc1\u786e\u4fdd\u6bcf\u4e00\u4e2a\u7fa4\u5458\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u514d\u8d39\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p>\n<\/blockquote>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"55\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">5.5&nbsp;\u6587\u4ef6\u8bbf\u95ee\u63a7\u5236\u5217\u8868<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e0d\u77e5\u9053\u5927\u5bb6\u662f\u5426\u53d1\u73b0\uff0c\u524d\u6587\u8bb2\u89e3\u7684\u4e00\u822c\u6743\u9650\u3001\u7279\u6b8a\u6743\u9650\u3001\u9690\u85cf\u6743\u9650\u5176\u5b9e\u6709\u4e00\u4e2a\u5171\u6027\u2014\u6743\u9650\u662f\u9488\u5bf9\u67d0\u4e00\u7c7b\u7528\u6237\u8bbe\u7f6e\u7684\u3002\u5982\u679c\u5e0c\u671b\u5bf9\u67d0\u4e2a\u6307\u5b9a\u7684\u7528\u6237\u8fdb\u884c\u5355\u72ec\u7684\u6743\u9650\u63a7\u5236\uff0c\u5c31\u9700\u8981\u7528\u5230\u6587\u4ef6\u7684\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff08ACL\uff09\u4e86\u3002\u901a\u4fd7\u6765\u8bb2\uff0c\u57fa\u4e8e\u666e\u901a\u6587\u4ef6\u6216\u76ee\u5f55\u8bbe\u7f6eACL\u5176\u5b9e\u5c31\u662f\u9488\u5bf9\u6307\u5b9a\u7684\u7528\u6237\u6216\u7528\u6237\u7ec4\u8bbe\u7f6e\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u64cd\u4f5c\u6743\u9650\u3002\u53e6\u5916\uff0c\u5982\u679c\u9488\u5bf9\u67d0\u4e2a\u76ee\u5f55\u8bbe\u7f6e\u4e86ACL\uff0c\u5219\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u4f1a\u7ee7\u627f\u5176ACL\uff1b\u82e5\u9488\u5bf9\u6587\u4ef6\u8bbe\u7f6e\u4e86ACL\uff0c\u5219\u6587\u4ef6\u4e0d\u518d\u7ee7\u627f\u5176\u6240\u5728\u76ee\u5f55\u7684ACL\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e3a\u4e86\u66f4\u76f4\u89c2\u5730\u770b\u5230ACL\u5bf9\u6587\u4ef6\u6743\u9650\u63a7\u5236\u7684\u5f3a\u5927\u6548\u679c\uff0c\u6211\u4eec\u5148\u5207\u6362\u5230\u666e\u901a\u7528\u6237\uff0c\u7136\u540e\u5c1d\u8bd5\u8fdb\u5165root\u7ba1\u7406\u5458\u7684\u5bb6\u76ee\u5f55\u4e2d\u3002\u5728\u6ca1\u6709\u9488\u5bf9\u666e\u901a\u7528\u6237\u5bf9root\u7ba1\u7406\u5458\u7684\u5bb6\u76ee\u5f55\u8bbe\u7f6eACL\u4e4b\u524d\uff0c\u5176\u6267\u884c\u7ed3\u679c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Sat&nbsp;Mar&nbsp;21&nbsp;16:31:19&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/0\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;cd&nbsp;\/root\r\n-bash:&nbsp;cd:&nbsp;\/root:&nbsp;Permission&nbsp;denied[linuxprobe@linuxprobe&nbsp;root]$&nbsp;exit<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">1. &nbsp;setfacl\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">setfacl\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406\u6587\u4ef6\u7684ACL\u89c4\u5219\uff0c\u683c\u5f0f\u4e3a\u201csetfacl [\u53c2\u6570] \u6587\u4ef6\u540d\u79f0\u201d\u3002\u6587\u4ef6\u7684ACL\u63d0\u4f9b\u7684\u662f\u5728\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4\u3001\u5176\u4ed6\u4eba\u7684\u8bfb\/\u5199\/\u6267\u884c\u6743\u9650\u4e4b\u5916\u7684\u7279\u6b8a\u6743\u9650\u63a7\u5236\uff0c\u4f7f\u7528setfacl\u547d\u4ee4\u53ef\u4ee5\u9488\u5bf9\u5355\u4e00\u7528\u6237\u6216\u7528\u6237\u7ec4\u3001\u5355\u4e00\u6587\u4ef6\u6216\u76ee\u5f55\u6765\u8fdb\u884c\u8bfb\/\u5199\/\u6267\u884c\u6743\u9650\u7684\u63a7\u5236\u3002\u5176\u4e2d\uff0c\u9488\u5bf9\u76ee\u5f55\u6587\u4ef6\u9700\u8981\u4f7f\u7528-R\u9012\u5f52\u53c2\u6570\uff1b\u9488\u5bf9\u666e\u901a\u6587\u4ef6\u5219\u4f7f\u7528-m\u53c2\u6570\uff1b\u5982\u679c\u60f3\u8981\u5220\u9664\u67d0\u4e2a\u6587\u4ef6\u7684ACL\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528-b\u53c2\u6570\u3002\u4e0b\u9762\u6765\u8bbe\u7f6e\u7528\u6237\u5728\/root\u76ee\u5f55\u4e0a\u7684\u6743\u9650\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;setfacl&nbsp;-Rm&nbsp;u:linuxprobe:rwx&nbsp;\/root\r\n[root@linuxprobe&nbsp;~]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Sat&nbsp;Mar&nbsp;21&nbsp;15:45:03&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/1\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;cd&nbsp;\/root\r\n[linuxprobe@linuxprobe&nbsp;root]$&nbsp;ls\r\nanaconda-ks.cfg&nbsp;Downloads&nbsp;Pictures&nbsp;Public\r\n[linuxprobe@linuxprobe&nbsp;root]$&nbsp;cat&nbsp;anaconda-ks.cfg\r\n[linuxprobe@linuxprobe&nbsp;root]$&nbsp;exit<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u662f\u4e0d\u662f\u89c9\u5f97\u6548\u679c\u5f88\u9177\u5462\uff1f\u4f46\u662f\u73b0\u5728\u6709\u8fd9\u6837\u4e00\u4e2a\u5c0f\u95ee\u9898\u2014\u600e\u4e48\u53bb\u67e5\u770b\u6587\u4ef6\u4e0a\u6709\u90a3\u4e9bACL\u5462\uff1f\u5e38\u7528\u7684ls\u547d\u4ee4\u662f\u770b\u4e0d\u5230ACL\u8868\u4fe1\u606f\u7684\uff0c\u4f46\u662f\u5374\u53ef\u4ee5\u770b\u5230\u6587\u4ef6\u7684\u6743\u9650\u6700\u540e\u4e00\u4e2a\u70b9\uff08<strong style=\"box-sizing: border-box;\">.<\/strong>\uff09\u53d8\u6210\u4e86\u52a0\u53f7\uff08<strong style=\"box-sizing: border-box;\">+<\/strong>\uff09,\u8fd9\u5c31\u610f\u5473\u7740\u8be5\u6587\u4ef6\u5df2\u7ecf\u8bbe\u7f6e\u4e86ACL\u4e86\u3002\u73b0\u5728\u5927\u5bb6\u662f\u4e0d\u662f\u611f\u89c9\u5b66\u5f97\u8d8a\u591a\uff0c\u8d8a\u4e0d\u6562\u8bf4\u81ea\u5df1\u7cbe\u901aLinux\u7cfb\u7edf\u4e86\u5427\uff1f\u5c31\u8fd9\u4e48\u4e00\u4e2a\u4e0d\u8d77\u773c\u7684\u70b9\uff08.\uff09\uff0c\u7adf\u7136\u8fd8\u8868\u793a\u8fd9\u4e48\u4e00\u79cd\u91cd\u8981\u7684\u6743\u9650\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-ld&nbsp;\/root\r\ndr-xrwx---+&nbsp;14&nbsp;root&nbsp;root&nbsp;4096&nbsp;May&nbsp;4&nbsp;2017&nbsp;\/root<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">2. &nbsp;getfacl\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">getfacl\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u6587\u4ef6\u4e0a\u8bbe\u7f6e\u7684ACL\u4fe1\u606f\uff0c\u683c\u5f0f\u4e3a\u201cgetfacl \u6587\u4ef6\u540d\u79f0\u201d\u3002Linux\u7cfb\u7edf\u4e2d\u7684\u547d\u4ee4\u5c31\u662f\u8fd9\u4e48\u53c8\u53ef\u7231\u53c8\u597d\u8bb0\u3002\u60f3\u8981\u8bbe\u7f6eACL\uff0c\u7528\u7684\u662fsetfacl\u547d\u4ee4\uff1b\u8981\u60f3\u67e5\u770bACL\uff0c\u5219\u7528\u7684\u662fgetfacl\u547d\u4ee4\u3002\u4e0b\u9762\u4f7f\u7528getfacl\u547d\u4ee4\u663e\u793a\u5728root\u7ba1\u7406\u5458\u5bb6\u76ee\u5f55\u4e0a\u8bbe\u7f6e\u7684\u6240\u6709ACL\u4fe1\u606f\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;getfacl&nbsp;\/root\r\ngetfacl:&nbsp;Removing&nbsp;leading&nbsp;&#39;\/&#39;&nbsp;from&nbsp;absolute&nbsp;path&nbsp;names\r\n#&nbsp;file:&nbsp;root\r\n#&nbsp;owner:&nbsp;root\r\n#&nbsp;group:&nbsp;root\r\nuser::r-xuser:linuxprobe:rwxgroup::r-x\r\nmask::rwx\r\nother::---<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"box-sizing: border-box; color: #800080;\"><strong style=\"box-sizing: border-box;\">\u51fa\u73b0\u95ee\u9898?\u5927\u80c6\u63d0\u95ee!<\/strong><\/span><\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u56e0\u8bfb\u8005\u4eec\u786c\u4ef6\u4e0d\u540c\u6216\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4\u5b9e\u9a8c\u914d\u7f6e\u51fa\u9519\uff0c\u8bf7\u8010\u5fc3\u518d\u4ed4\u7ec6\u770b\u770b\u64cd\u4f5c\u6b65\u9aa4\u5427\uff0c\u4e0d\u8981\u6c14\u9981~<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">Linux\u6280\u672f\u4ea4\u6d41\u8bf7\u52a0A\u7fa4\uff1a560843(<strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">\u6ee1<\/span><\/strong>)\uff0cB\u7fa4\uff1a340829(<span style=\"box-sizing: border-box; color: #008000;\">\u63a8\u8350<\/span>)\uff0cC\u7fa4\uff1a463590\uff08<strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">\u63a8\u8350<\/span><\/strong>\uff09\uff0c<a href=\"https:\/\/www.linuxprobe.com\/club\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\">\u70b9\u6b64\u67e5\u770b\u5168\u56fd\u7fa4<\/a>\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">*\u672c\u7fa4\u7279\u8272\uff1a\u901a\u8fc7\u53e3\u4ee4\u9a8c\u8bc1\u786e\u4fdd\u6bcf\u4e00\u4e2a\u7fa4\u5458\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u514d\u8d39\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p>\n<\/blockquote>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"56_susudo\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">5.6 su\u547d\u4ee4\u4e0esudo\u670d\u52a1<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5404\u4f4d\u8bfb\u8005\u5728\u5b9e\u9a8c\u73af\u5883\u4e2d\u5f88\u5c11\u9047\u5230\u5b89\u5168\u95ee\u9898\uff0c\u5e76\u4e14\u4e3a\u4e86\u907f\u514d\u56e0\u6743\u9650\u56e0\u7d20\u5bfc\u81f4\u914d\u7f6e\u670d\u52a1\u5931\u8d25\uff0c\u4ece\u800c\u5efa\u8bae\u4f7f\u7528root\u7ba1\u7406\u5458\u6765\u5b66\u4e60\u672c\u4e66\uff0c\u4f46\u662f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u8fd8\u662f\u8981\u5bf9\u5b89\u5168\u591a\u4e00\u4efd\u656c\u754f\u4e4b\u5fc3\uff0c\u4e0d\u8981\u7528root\u7ba1\u7406\u5458\u53bb\u505a\u6240\u6709\u4e8b\u60c5\u3002\u56e0\u4e3a\u4e00\u65e6\u6267\u884c\u4e86\u9519\u8bef\u7684\u547d\u4ee4\uff0c\u53ef\u80fd\u4f1a\u76f4\u63a5\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83\uff0c\u8fd9\u6837\u4e00\u6765\uff0c\u4e0d\u4f46\u5ba2\u6237\u6307\u8d23\u3001\u9886\u5bfc\u6279\u8bc4\uff0c\u6ca1\u51c6\u5956\u91d1\u4e5f\u4f1a\u9e21\u98de\u86cb\u6253\u3002\u4f46\u8f6c\u5934\u4e00\u60f3\uff0c\u5c3d\u7ba1Linux\u7cfb\u7edf\u4e3a\u4e86\u5b89\u5168\u6027\u8003\u8651\uff0c\u4f7f\u5f97\u8bb8\u591a\u7cfb\u7edf\u547d\u4ee4\u548c\u670d\u52a1\u53ea\u80fd\u88abroot\u7ba1\u7406\u5458\u6765\u4f7f\u7528\uff0c\u4f46\u662f\u8fd9\u4e5f\u8ba9\u666e\u901a\u7528\u6237\u53d7\u5230\u4e86\u66f4\u591a\u7684\u6743\u9650\u675f\u7f1a\uff0c\u4ece\u800c\u5bfc\u81f4\u65e0\u6cd5\u987a\u5229\u5b8c\u6210\u7279\u5b9a\u7684\u5de5\u4f5c\u4efb\u52a1\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">su\u547d\u4ee4\u53ef\u4ee5\u89e3\u51b3\u5207\u6362\u7528\u6237\u8eab\u4efd\u7684\u9700\u6c42\uff0c\u4f7f\u5f97\u5f53\u524d\u7528\u6237\u5728\u4e0d\u9000\u51fa\u767b\u5f55\u7684\u60c5\u51b5\u4e0b\uff0c\u987a\u7545\u5730\u5207\u6362\u5230\u5176\u4ed6\u7528\u6237\uff0c\u6bd4\u5982\u4eceroot\u7ba1\u7406\u5458\u5207\u6362\u81f3\u666e\u901a\u7528\u6237\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;id&nbsp;\r\nuid=0(root)&nbsp;gid=0(root)&nbsp;groups=0(root)\r\n[root@linuxprobe&nbsp;~]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Wed&nbsp;Jan&nbsp;4&nbsp;01:17:25&nbsp;EST&nbsp;2017&nbsp;on&nbsp;pts\/0\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;id&nbsp;\r\nuid=1000(linuxprobe)&nbsp;gid=1000(linuxprobe)&nbsp;groups=1000(linuxprobe)&nbsp;context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u7ec6\u5fc3\u7684\u8bfb\u8005\u4e00\u5b9a\u4f1a\u53d1\u73b0\uff0c\u4e0a\u9762\u7684su\u547d\u4ee4\u4e0e\u7528\u6237\u540d\u4e4b\u95f4\u6709\u4e00\u4e2a\u51cf\u53f7\uff08-\uff09\uff0c\u8fd9\u610f\u5473\u7740\u5b8c\u5168\u5207\u6362\u5230\u65b0\u7684\u7528\u6237\uff0c\u5373\u628a\u73af\u5883\u53d8\u91cf\u4fe1\u606f\u4e5f\u53d8\u66f4\u4e3a\u65b0\u7528\u6237\u7684\u76f8\u5e94\u4fe1\u606f\uff0c\u800c\u4e0d\u662f\u4fdd\u7559\u539f\u59cb\u7684\u4fe1\u606f\u3002\u5f3a\u70c8\u5efa\u8bae\u5728\u5207\u6362\u7528\u6237\u8eab\u4efd\u65f6\u6dfb\u52a0\u8fd9\u4e2a\u51cf\u53f7\uff08-\uff09\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u53e6\u5916\uff0c\u5f53\u4eceroot\u7ba1\u7406\u5458\u5207\u6362\u5230\u666e\u901a\u7528\u6237\u65f6\u662f\u4e0d\u9700\u8981\u5bc6\u7801\u9a8c\u8bc1\u7684\uff0c\u800c\u4ece\u666e\u901a\u7528\u6237\u5207\u6362\u6210root\u7ba1\u7406\u5458\u5c31\u9700\u8981\u8fdb\u884c\u5bc6\u7801\u9a8c\u8bc1\u4e86\uff1b\u8fd9\u4e5f\u662f\u4e00\u4e2a\u5fc5\u8981\u7684\u5b89\u5168\u68c0\u67e5\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[linuxprobe@linuxprobe&nbsp;root]$&nbsp;su&nbsp;root\r\nPassword:\r\n[root@linuxprobe&nbsp;~]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Mon&nbsp;Aug&nbsp;24&nbsp;19:27:09&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/0\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;exit\r\nlogout\r\n[root@linuxprobe&nbsp;~]#<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5c3d\u7ba1\u50cf\u4e0a\u9762\u8fd9\u6837\u4f7f\u7528su\u547d\u4ee4\u540e\uff0c\u666e\u901a\u7528\u6237\u53ef\u4ee5\u5b8c\u5168\u5207\u6362\u5230root\u7ba1\u7406\u5458\u8eab\u4efd\u6765\u5b8c\u6210\u76f8\u5e94\u5de5\u4f5c\uff0c\u4f46\u8fd9\u5c06\u66b4\u9732root\u7ba1\u7406\u5458\u7684\u5bc6\u7801\uff0c\u4ece\u800c\u589e\u5927\u4e86\u7cfb\u7edf\u5bc6\u7801\u88ab\u9ed1\u5ba2\u83b7\u53d6\u7684\u51e0\u7387\uff1b\u8fd9\u5e76\u4e0d\u662f\u6700\u5b89\u5168\u7684\u65b9\u6848\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5218\u9044\u8001\u5e08\u63a5\u4e0b\u6765\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528sudo\u547d\u4ee4\u628a\u7279\u5b9a\u547d\u4ee4\u7684\u6267\u884c\u6743\u9650\u8d4b\u4e88\u7ed9\u6307\u5b9a\u7528\u6237\uff0c\u8fd9\u6837\u65e2\u53ef\u4fdd\u8bc1\u666e\u901a\u7528\u6237\u80fd\u591f\u5b8c\u6210\u7279\u5b9a\u7684\u5de5\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u907f\u514d\u6cc4\u9732root\u7ba1\u7406\u5458\u5bc6\u7801\u3002\u6211\u4eec\u8981\u505a\u7684\u5c31\u662f\u5408\u7406\u914d\u7f6esudo\u670d\u52a1\uff0c\u4ee5\u4fbf\u517c\u987e\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u548c\u7528\u6237\u7684\u4fbf\u6377\u6027\u3002sudo\u670d\u52a1\u7684\u914d\u7f6e\u539f\u5219\u4e5f\u5f88\u7b80\u5355\u2014\u5728\u4fdd\u8bc1\u666e\u901a\u7528\u6237\u5b8c\u6210\u76f8\u5e94\u5de5\u4f5c\u7684\u524d\u63d0\u4e0b\uff0c\u5c3d\u53ef\u80fd\u5c11\u5730\u8d4b\u4e88\u989d\u5916\u7684\u6743\u9650\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">sudo\u547d\u4ee4\u7528\u4e8e\u7ed9\u666e\u901a\u7528\u6237\u63d0\u4f9b\u989d\u5916\u7684\u6743\u9650\u6765\u5b8c\u6210\u539f\u672croot\u7ba1\u7406\u5458\u624d\u80fd\u5b8c\u6210\u7684\u4efb\u52a1\uff0c\u683c\u5f0f\u4e3a\u201csudo [\u53c2\u6570] \u547d\u4ee4\u540d\u79f0\u201d\u3002sudo\u670d\u52a1\u4e2d\u53ef\u7528\u7684\u53c2\u6570\u4ee5\u53ca\u76f8\u5e94\u7684\u4f5c\u7528\u5982\u88685-7\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u88685-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo\u670d\u52a1\u4e2d\u7684\u53ef\u7528\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n<table id=\"tablepress-111\" class=\"tablepress tablepress-id-111\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u53c2\u6570<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u4f5c\u7528<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-h<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u5217\u51fa\u5e2e\u52a9\u4fe1\u606f<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-l<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u5217\u51fa\u5f53\u524d\u7528\u6237\u53ef\u6267\u884c\u7684\u547d\u4ee4<\/td>\n<\/tr>\n<tr class=\"row-4 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-u \u7528\u6237\u540d\u6216UID\u503c<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u4ee5\u6307\u5b9a\u7684\u7528\u6237\u8eab\u4efd\u6267\u884c\u547d\u4ee4<\/td>\n<\/tr>\n<tr class=\"row-5 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-k<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u6e05\u7a7a\u5bc6\u7801\u7684\u6709\u6548\u65f6\u95f4\uff0c\u4e0b\u6b21\u6267\u884csudo\u65f6\u9700\u8981\u518d\u6b21\u8fdb\u884c\u5bc6\u7801\u9a8c\u8bc1<\/td>\n<\/tr>\n<tr class=\"row-6 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">-b<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u5728\u540e\u53f0\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4<\/td>\n<\/tr>\n<tr class=\"row-7 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">-p<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u66f4\u6539\u8be2\u95ee\u5bc6\u7801\u7684\u63d0\u793a\u8bed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u603b\u7ed3\u6765\u8bf4\uff0csudo\u547d\u4ee4\u5177\u6709\u5982\u4e0b\u529f\u80fd\uff1a<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u9650\u5236\u7528\u6237\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4\uff1a<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u8bb0\u5f55\u7528\u6237\u6267\u884c\u7684\u6bcf\u4e00\u6761\u547d\u4ee4\uff1b<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u914d\u7f6e\u6587\u4ef6\uff08\/etc\/sudoers\uff09\u63d0\u4f9b\u96c6\u4e2d\u7684\u7528\u6237\u7ba1\u7406\u3001\u6743\u9650\u4e0e\u4e3b\u673a\u7b49\u53c2\u6570\uff1b<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u9a8c\u8bc1\u5bc6\u7801\u7684\u540e5\u5206\u949f\u5185\uff08\u9ed8\u8ba4\u503c\uff09\u65e0\u987b\u518d\u8ba9\u7528\u6237\u518d\u6b21\u9a8c\u8bc1\u5bc6\u7801\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5f53\u7136\uff0c\u5982\u679c\u62c5\u5fc3\u76f4\u63a5\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4f1a\u51fa\u73b0\u95ee\u9898\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528sudo\u547d\u4ee4\u63d0\u4f9b\u7684visudo\u547d\u4ee4\u6765\u914d\u7f6e\u7528\u6237\u6743\u9650\u3002\u8fd9\u6761\u547d\u4ee4\u5728\u914d\u7f6e\u7528\u6237\u6743\u9650\u65f6\u5c06\u7981\u6b62\u591a\u4e2a\u7528\u6237\u540c\u65f6\u4fee\u6539sudoers\u914d\u7f6e\u6587\u4ef6\uff0c\u8fd8\u53ef\u4ee5\u5bf9\u914d\u7f6e\u6587\u4ef6\u5185\u7684\u53c2\u6570\u8fdb\u884c\u8bed\u6cd5\u68c0\u67e5\uff0c\u5e76\u5728\u53d1\u73b0\u53c2\u6570\u9519\u8bef\u65f6\u8fdb\u884c\u62a5\u9519\u3002<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u53ea\u6709root\u7ba1\u7406\u5458\u624d\u53ef\u4ee5\u4f7f\u7528visudo\u547d\u4ee4\u7f16\u8f91sudo\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<\/blockquote>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">visudo:&nbsp;&gt;&gt;&gt;&nbsp;\/etc\/sudoers:&nbsp;syntax&nbsp;error&nbsp;near&nbsp;line&nbsp;111&nbsp;&lt;&lt;&lt;What&nbsp;now?Options&nbsp;are:(e)dit&nbsp;sudoers&nbsp;file&nbsp;again(x)it&nbsp;without&nbsp;saving&nbsp;changes&nbsp;to&nbsp;sudoers&nbsp;file(Q)uit&nbsp;and&nbsp;save&nbsp;changes&nbsp;to&nbsp;sudoers&nbsp;file&nbsp;(DANGER!)<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4f7f\u7528visudo\u547d\u4ee4\u914d\u7f6esudo\u547d\u4ee4\u7684\u914d\u7f6e\u6587\u4ef6\u65f6\uff0c\u5176\u64cd\u4f5c\u65b9\u6cd5\u4e0eVim\u7f16\u8f91\u5668\u4e2d\u7528\u5230\u7684\u65b9\u6cd5\u4e00\u81f4\uff0c\u56e0\u6b64\u5728\u7f16\u5199\u5b8c\u6210\u540e\u8bb0\u5f97\u5728\u672b\u884c\u6a21\u5f0f\u4e0b\u4fdd\u5b58\u5e76\u9000\u51fa\u3002\u5728sudo\u547d\u4ee4\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u6309\u7167\u4e0b\u9762\u7684\u683c\u5f0f\u5c06\u7b2c99\u884c\uff08\u5927\u7ea6\uff09\u586b\u5199\u4e0a\u6307\u5b9a\u7684\u4fe1\u606f\uff1a<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u8c01\u53ef\u4ee5\u4f7f\u7528&nbsp; \u5141\u8bb8\u4f7f\u7528\u7684\u4e3b\u673a=\uff08\u4ee5\u8c01\u7684\u8eab\u4efd\uff09&nbsp; \u53ef\u6267\u884c\u547d\u4ee4\u7684\u5217\u8868<\/strong><\/p>\n<\/blockquote>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;visudo\r\n&nbsp;96&nbsp;##\r\n&nbsp;97&nbsp;##&nbsp;Allow&nbsp;root&nbsp;to&nbsp;run&nbsp;any&nbsp;commands&nbsp;anywhere\r\n&nbsp;98&nbsp;root&nbsp;ALL=(ALL)&nbsp;ALL&nbsp;99&nbsp;linuxprobe&nbsp;ALL=(ALL)&nbsp;ALL<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u586b\u5199\u5b8c\u6bd5\u540e\u8bb0\u5f97\u8981\u5148\u4fdd\u5b58\u518d\u9000\u51fa\uff0c\u7136\u540e\u5207\u6362\u81f3\u6307\u5b9a\u7684\u666e\u901a\u7528\u6237\u8eab\u4efd\uff0c\u6b64\u65f6\u5c31\u53ef\u4ee5\u7528sudo -l\u547d\u4ee4\u67e5\u770b\u5230\u6240\u6709\u53ef\u6267\u884c\u7684\u547d\u4ee4\u4e86\uff08\u4e0b\u9762\u7684\u547d\u4ee4\u4e2d\uff0c\u9a8c\u8bc1\u7684\u662f\u8be5\u666e\u901a\u7528\u6237\u7684\u5bc6\u7801\uff0c\u800c\u4e0d\u662froot\u7ba1\u7406\u5458\u7684\u5bc6\u7801\uff0c\u8bf7\u8bfb\u8005\u4e0d\u8981\u641e\u6df7\u4e86\uff09\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Thu&nbsp;Sep&nbsp;3&nbsp;15:12:57&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/1\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;sudo&nbsp;-l\r\n[sudo]&nbsp;password&nbsp;for&nbsp;linuxprobe:\u6b64\u5904\u8f93\u5165linuxprobe\u7528\u6237\u7684\u5bc6\u7801Matching&nbsp;Defaults&nbsp;entries&nbsp;for&nbsp;linuxprobe&nbsp;on&nbsp;this&nbsp;host:\r\nrequiretty,&nbsp;!visiblepw,&nbsp;always_set_home,&nbsp;env_reset,&nbsp;env_keep=&quot;COLORS\r\nDISPLAY&nbsp;HOSTNAME&nbsp;HISTSIZE&nbsp;INPUTRC&nbsp;KDEDIR&nbsp;LS_COLORS&quot;,&nbsp;env_keep+=&quot;MAIL&nbsp;PS1\r\nPS2&nbsp;QTDIR&nbsp;USERNAME&nbsp;LANG&nbsp;LC_ADDRESS&nbsp;LC_CTYPE&quot;,&nbsp;env_keep+=&quot;LC_COLLATE\r\nLC_IDENTIFICATION&nbsp;LC_MEASUREMENT&nbsp;LC_MESSAGES&quot;,&nbsp;env_keep+=&quot;LC_MONETARY\r\nLC_NAME&nbsp;LC_NUMERIC&nbsp;LC_PAPER&nbsp;LC_TELEPHONE&quot;,&nbsp;env_keep+=&quot;LC_TIME&nbsp;LC_ALL\r\nLANGUAGE&nbsp;LINGUAS&nbsp;_XKB_CHARSET&nbsp;XAUTHORITY&quot;,\r\nsecure_path=\/sbin\\:\/bin\\:\/usr\/sbin\\:\/usr\/binUser&nbsp;linuxprobe&nbsp;may&nbsp;run&nbsp;the&nbsp;following&nbsp;commands&nbsp;on&nbsp;this&nbsp;host:\r\n(ALL)&nbsp;ALL<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u63a5\u4e0b\u6765\u662f\u89c1\u8bc1\u5947\u8ff9\u7684\u65f6\u523b\uff01\u4f5c\u4e3a\u4e00\u540d\u666e\u901a\u7528\u6237\uff0c\u662f\u80af\u5b9a\u4e0d\u80fd\u770b\u5230root\u7ba1\u7406\u5458\u7684\u5bb6\u76ee\u5f55\uff08\/root\uff09\u4e2d\u7684\u6587\u4ef6\u4fe1\u606f\u7684\uff0c\u4f46\u662f\uff0c\u53ea\u9700\u8981\u5728\u60f3\u6267\u884c\u7684\u547d\u4ee4\u524d\u9762\u52a0\u4e0asudo\u547d\u4ee4\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[linuxprobe@linuxprobe&nbsp;~]$&nbsp;ls&nbsp;\/root\r\nls:&nbsp;cannot&nbsp;open&nbsp;directory&nbsp;\/root:&nbsp;Permission&nbsp;denied\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;sudo&nbsp;ls&nbsp;\/root\r\nanaconda-ks.cfg&nbsp;Documents&nbsp;initial-setup-ks.cfg&nbsp;Pictures&nbsp;Templates\r\nDesktop&nbsp;Downloads&nbsp;Music&nbsp;Public&nbsp;Videos<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6548\u679c\u7acb\u7aff\u89c1\u5f71\uff01\u4f46\u662f\u8003\u8651\u5230\u751f\u4ea7\u73af\u5883\u4e2d\u4e0d\u5141\u8bb8\u67d0\u4e2a\u666e\u901a\u7528\u6237\u62e5\u6709\u6574\u4e2a\u7cfb\u7edf\u4e2d\u6240\u6709\u547d\u4ee4\u7684\u6700\u9ad8\u6267\u884c\u6743\uff08\u8fd9\u4e5f\u4e0d\u7b26\u5408\u524d\u6587\u63d0\u5230\u7684\u6743\u9650\u8d4b\u4e88\u539f\u5219\uff0c\u5373\u5c3d\u53ef\u80fd\u5c11\u5730\u8d4b\u4e88\u6743\u9650\uff09\uff0c\u56e0\u6b64ALL\u53c2\u6570\u5c31\u6709\u4e9b\u4e0d\u5408\u9002\u4e86\u3002\u56e0\u6b64\u53ea\u80fd\u8d4b\u4e88\u666e\u901a\u7528\u6237\u5177\u4f53\u7684\u547d\u4ee4\u4ee5\u6ee1\u8db3\u5de5\u4f5c\u9700\u6c42\uff0c\u8fd9\u4e5f\u53d7\u5230\u4e86\u5fc5\u8981\u7684\u6743\u9650\u7ea6\u675f\u3002\u5982\u679c\u9700\u8981\u8ba9\u67d0\u4e2a\u7528\u6237\u53ea\u80fd\u4f7f\u7528root\u7ba1\u7406\u5458\u7684\u8eab\u4efd\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4\uff0c\u5207\u8bb0\u4e00\u5b9a\u8981\u7ed9\u51fa\u8be5\u547d\u4ee4\u7684\u7edd\u5bf9\u8def\u5f84\uff0c\u5426\u5219\u7cfb\u7edf\u4f1a\u8bc6\u522b\u4e0d\u51fa\u6765\u3002\u6211\u4eec\u53ef\u4ee5\u5148\u4f7f\u7528whereis\u547d\u4ee4\u627e\u51fa\u547d\u4ee4\u6240\u5bf9\u5e94\u7684\u4fdd\u5b58\u8def\u5f84\uff0c\u7136\u540e\u628a\u914d\u7f6e\u6587\u4ef6\u7b2c99\u884c\u7684\u7528\u6237\u6743\u9650\u53c2\u6570\u4fee\u6539\u6210\u5bf9\u5e94\u7684\u8def\u5f84\u5373\u53ef\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[linuxprobe@linuxprobe&nbsp;~]$&nbsp;exit\r\nlogout\r\n[root@linuxprobe&nbsp;~]#&nbsp;whereis&nbsp;cat\r\ncat:&nbsp;\/usr\/bin\/cat&nbsp;\/usr\/share\/man\/man1\/cat.1.gz&nbsp;\/usr\/share\/man\/man1p\/cat.1p.gz\r\n[root@linuxprobe&nbsp;~]#&nbsp;visudo\r\n&nbsp;96&nbsp;##\r\n&nbsp;97&nbsp;##&nbsp;Allow&nbsp;root&nbsp;to&nbsp;run&nbsp;any&nbsp;commands&nbsp;anywhere\r\n&nbsp;98&nbsp;root&nbsp;ALL=(ALL)&nbsp;ALL&nbsp;99&nbsp;linuxprobe&nbsp;ALL=(ALL)&nbsp;\/usr\/bin\/cat<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u7f16\u8f91\u597d\u540e\u4f9d\u7136\u662f\u5148\u4fdd\u5b58\u518d\u9000\u51fa\u3002\u518d\u6b21\u5207\u6362\u5230\u6307\u5b9a\u7684\u666e\u901a\u7528\u6237\uff0c\u7136\u540e\u5c1d\u8bd5\u6b63\u5e38\u67e5\u770b\u67d0\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u6b64\u65f6\u7cfb\u7edf\u63d0\u793a\u6ca1\u6709\u6743\u9650\u3002\u8fd9\u65f6\u518d\u4f7f\u7528sudo\u547d\u4ee4\u5c31\u53ef\u4ee5\u987a\u5229\u5730\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\u4e86\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Thu&nbsp;Sep&nbsp;3&nbsp;15:51:01&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/1\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;cat&nbsp;\/etc\/shadow\r\ncat:&nbsp;\/etc\/shadow:&nbsp;Permission&nbsp;denied\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;sudo&nbsp;cat&nbsp;\/etc\/shadow\r\nroot:$6$GV3UVtX4ZGg6ygA6$J9pBuPGUSgZslj83jyoI7ThJla9ZAULku3BcncAYF00Uwk6Sqc4E36MnD1hLtlG9QadCpQCNVJs\/5awHd0\/pi1:16626:0:99999:7:::\r\nbin:*:16141:0:99999:7:::\r\ndaemon:*:16141:0:99999:7:::\r\nadm:*:16141:0:99999:7:::\r\nlp:*:16141:0:99999:7:::\r\nsync:*:16141:0:99999:7:::\r\nshutdown:*:16141:0:99999:7:::\r\nhalt:*:16141:0:99999:7:::\r\nmail:*:16141:0:99999:7:::\r\noperator:*:16141:0:99999:7:::\r\ngames:*:16141:0:99999:7:::\r\nftp:*:16141:0:99999:7:::\r\nnobody:*:16141:0:99999:7:::\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u6587\u4ef6\u5185\u5bb9\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5927\u5bb6\u5343\u4e07\u4e0d\u8981\u4ee5\u4e3a\u5230\u8fd9\u91cc\u5c31\u7ed3\u675f\u4e86\uff0c\u5218\u9044\u8001\u5e08\u8fd8\u6709\u66f4\u538b\u7bb1\u5e95\u7684\u5b9d\u8d1d\u3002\u4e0d\u77e5\u5927\u5bb6\u662f\u5426\u53d1\u89c9\u5728\u6bcf\u6b21\u6267\u884csudo\u547d\u4ee4\u540e\u90fd\u4f1a\u8981\u6c42\u9a8c\u8bc1\u4e00\u4e0b\u5bc6\u7801\u3002\u867d\u7136\u8fd9\u4e2a\u5bc6\u7801\u5c31\u662f\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u5bc6\u7801\uff0c\u4f46\u662f\u6bcf\u6b21\u6267\u884csudo\u547d\u4ee4\u90fd\u8981\u8f93\u5165\u4e00\u6b21\u5bc6\u7801\u5176\u5b9e\u4e5f\u633a\u9ebb\u70e6\u7684\uff0c\u8fd9\u65f6\u53ef\u4ee5\u6dfb\u52a0NOPASSWD\u53c2\u6570\uff0c\u4f7f\u5f97\u7528\u6237\u6267\u884csudo\u547d\u4ee4\u65f6\u4e0d\u518d\u9700\u8981\u5bc6\u7801\u9a8c\u8bc1\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[linuxprobe@linuxprobe&nbsp;~]$&nbsp;exit\r\nlogout\r\n[root@linuxprobe&nbsp;~]#&nbsp;whereis&nbsp;poweroff\r\npoweroff:&nbsp;\/usr\/sbin\/poweroff&nbsp;\/usr\/share\/man\/man8\/poweroff.8.gz\r\n[root@linuxprobe&nbsp;~]#&nbsp;visudo\r\n&nbsp;96&nbsp;##\r\n&nbsp;97&nbsp;##&nbsp;Allow&nbsp;root&nbsp;to&nbsp;run&nbsp;any&nbsp;commands&nbsp;anywhere\r\n&nbsp;98&nbsp;root&nbsp;ALL=(ALL)&nbsp;ALL&nbsp;99&nbsp;linuxprobe&nbsp;ALL=NOPASSWD:&nbsp;\/usr\/sbin\/poweroff<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u8fd9\u6837\uff0c\u5f53\u5207\u6362\u5230\u666e\u901a\u7528\u6237\u540e\u518d\u6267\u884c\u547d\u4ee4\u65f6\uff0c\u5c31\u4e0d\u7528\u518d\u9891\u7e41\u5730\u9a8c\u8bc1\u5bc6\u7801\u4e86\uff0c\u6211\u4eec\u5728\u65e5\u5e38\u5de5\u4f5c\u4e2d\u4e5f\u5c31\u75db\u5feb\u81f3\u6781\u4e86\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Thu&nbsp;Sep&nbsp;3&nbsp;15:58:31&nbsp;CST&nbsp;2017&nbsp;on&nbsp;pts\/1\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;poweroff\r\nUser&nbsp;root&nbsp;is&nbsp;logged&nbsp;in&nbsp;on&nbsp;seat0.\r\nPlease&nbsp;retry&nbsp;operation&nbsp;after&nbsp;closing&nbsp;inhibitors&nbsp;and&nbsp;logging&nbsp;out&nbsp;other&nbsp;users.\r\nAlternatively,&nbsp;ignore&nbsp;inhibitors&nbsp;and&nbsp;users&nbsp;with&nbsp;&#39;systemctl&nbsp;poweroff&nbsp;-i&#39;.\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;sudo&nbsp;poweroff<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"box-sizing: border-box; color: #800080;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">\u672c\u7ae0\u8282\u7684\u590d\u4e60\u4f5c\u4e1a<\/span><\/strong><\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">1\uff0e\u5728RHEL 7\u7cfb\u7edf\u4e2d\uff0croot\u7ba1\u7406\u5458\u662f\u8c01\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u662fUID\u4e3a0\u7684\u7528\u6237\uff0c\u9ed8\u8ba4\u662froot\u7ba1\u7406\u5458\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">2\uff0e\u5982\u4f55\u4f7f\u7528Linux\u7cfb\u7edf\u7684\u547d\u4ee4\u884c\u6765\u6dfb\u52a0\u6216\u5220\u9664\u7528\u6237\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u6dfb\u52a0\u548c\u5220\u9664\u7528\u6237\u7684\u547d\u4ee4\u5206\u522b\u662fuseradd\u4e0euserdel\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">3\uff0e\u82e5\u67d0\u4e2a\u6587\u4ef6\u7684\u6240\u6709\u8005\u5177\u6709\u6587\u4ef6\u7684\u8bfb\/\u5199\/\u6267\u884c\u6743\u9650\uff0c\u5176\u4f59\u4eba\u4ec5\u6709\u8bfb\u6743\u9650\uff0c\u90a3\u4e48\u7528\u6570\u5b57\u6cd5\u8868\u793a\u5e94\u8be5\u662f\u4ec0\u4e48?<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u6240\u6709\u8005\u6743\u9650\u4e3arwx\uff0c\u6240\u5c5e\u7ec4\u548c\u5176\u4ed6\u4eba\u7684\u6743\u9650\u4e3ar&#8211;\uff0c\u56e0\u6b64\u6570\u5b57\u6cd5\u8868\u793a\u5e94\u8be5\u662f744\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">4\uff0e\u67d0\u94fe\u63a5\u6587\u4ef6\u7684\u6743\u9650\u7528\u6570\u5b57\u6cd5\u8868\u793a\u4e3a755\uff0c\u90a3\u4e48\u76f8\u5e94\u7684\u5b57\u7b26\u6cd5\u8868\u793a\u662f\u4ec0\u4e48\u5462\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u4e0d\u540c\u6587\u4ef6\u5177\u6709\u4e0d\u540c\u7684\u7c7b\u578b\uff0c\u56e0\u6b64\u8fd9\u91cc\u5e94\u5199\u6210lrwxr-xr-x\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">5\uff0e\u5982\u679c\u5e0c\u671b\u7528\u6237\u6267\u884c\u67d0\u547d\u4ee4\u65f6\u4e34\u65f6\u62e5\u6709\u8be5\u547d\u4ee4\u6240\u6709\u8005\u7684\u6743\u9650\uff0c\u5e94\u8be5\u8bbe\u7f6e\u4ec0\u4e48\u7279\u6b8a\u6743\u9650\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u7279\u6b8a\u6743\u9650\u4e2d\u7684SUID\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">6\uff0e\u82e5\u5bf9\u6587\u4ef6\u8bbe\u7f6e\u4e86\u9690\u85cf\u6743\u9650+i\uff0c\u5219\u610f\u5473\u7740\u4ec0\u4e48\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u65e0\u6cd5\u5bf9\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\uff1b\u82e5\u5bf9\u76ee\u5f55\u8bbe\u7f6e\u4e86\u8be5\u53c2\u6570\uff0c\u5219\u4ec5\u80fd\u4fee\u6539\u5176\u4e2d\u7684\u5b50\u6587\u4ef6\u5185\u5bb9\u800c\u4e0d\u80fd\u65b0\u5efa\u6216\u5220\u9664\u6587\u4ef6\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">7\uff0e\u4f7f\u7528\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff08ACL\uff09\u6765\u9650\u5236linuxprobe\u7528\u6237\u7ec4\uff0c\u4f7f\u5f97\u8be5\u7ec4\u4e2d\u7684\u6240\u6709\u6210\u5458\u4e0d\u5f97\u5728\/tmp\u76ee\u5f55\u4e2d\u5199\u5165\u5185\u5bb9\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u60f3\u8981\u8bbe\u7f6e\u7528\u6237\u7ec4\u7684ACL\uff0c\u5219\u9700\u8981\u628au\u6539\u6210g\uff0c\u5373setfacl -Rm g:linuxprobe:r-x \/tmp\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">8\uff0e\u5f53\u666e\u901a\u7528\u6237\u4f7f\u7528sudo\u547d\u4ee4\u65f6\u662f\u5426\u9700\u8981\u9a8c\u8bc1\u5bc6\u7801\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u7cfb\u7edf\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u9700\u8981\u9a8c\u8bc1\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u5bc6\u7801\uff0c\u82e5\u4e0d\u60f3\u8981\u9a8c\u8bc1\uff0c\u53ef\u6dfb\u52a0NOPASSWD\u53c2\u6570\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; color: rgb(136, 166, 164); background-color: rgb(255, 255, 255);\">\u672c\u6587\u539f\u521b\u5730\u5740\uff1a<a href=\"https:\/\/www.linuxprobe.com\/chapter-05.html\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">https:\/\/www.linuxprobe.com\/chapter-05.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a8\u8350\u7b80\u8ff0\uff1a \u8bf4\u5230Linux\u7cfb\u7edf\u4ece01\u5e74\u5f00\u59cb\u6211\u5c31\u4e00\u76f4\u5728\u63a5\u89e6\uff0c\u76f4\u523003\u5e74\u8fd8\u662f04\u5e74\u7684\u65f6\u5019\u5728\u60e0\u5dde\u65b0\u534e\u4e66\u5e97\u4e70\u4e86\u4e00\u672c\u300a\u9e1f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[35,442],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-1","tag-linux","tag-442"],"_links":{"self":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":1,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":3443,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions\/3443"}],"wp:attachment":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}