{"id":148,"date":"2022-12-16T08:42:45","date_gmt":"2022-12-15T23:42:45","guid":{"rendered":"https:\/\/tech.wencloud.net\/?p=148"},"modified":"2022-12-16T08:42:46","modified_gmt":"2022-12-15T23:42:46","slug":"linux%e4%b8%8b%e6%89%b9%e9%87%8f%e6%b7%bb%e5%8a%a0%e7%94%a8%e6%88%b7","status":"publish","type":"post","link":"https:\/\/tech.wen.tokyo\/?p=148","title":{"rendered":"Linux\u4e0b\u6279\u91cf\u6dfb\u52a0\u7528\u6237"},"content":{"rendered":"\n<p>\u6628\u5929\u770b\u82f1\u6587\u7684Linux\u8d44\u6599\uff0c\u53d1\u73b0\u4e86\u4e00\u4e2a\u5f88\u597d\u7684\u6279\u91cf\u6dfb\u52a0\u7528\u6237\u65b9\u6cd5\u3002\u603b\u7ed3\u5982\u4e0b\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u4ece\/etc\/passwd\u91cc\u9762\u627e\u51fa\u4e00\u884c\u666e\u901a\u7528\u6237\u4fe1\u606f\uff0c\u5c06\u5176\u51fa\u529b\u4e3a\u6587\u672c\u6587\u4ef6users\u3002<\/p>\n\n\n\n<p>\u683c\u5f0f\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ama:x:1010:1010:AMA,,,:\/home\/ama:\/bin\/bash<\/code><\/pre>\n\n\n\n<p>\u4ee5\u8be5\u683c\u5f0f\u4e3a\u6a21\u677f\uff0c\u590d\u5236n\u6761\u3002<\/p>\n\n\n\n<p>\u9010\u6761\u4fee\u6539\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>ama\u8981\u66ff\u6362\u6210\u60f3\u8981\u8ffd\u52a0\u7684\u7528\u6237ID<\/p>\n\n\n\n<p>x\u8981\u66ff\u6362\u6210\u60f3\u8981\u8ffd\u52a0\u7684\u5bc6\u7801<\/p>\n\n\n\n<p>1010\u8981\u66ff\u6362\u6210\u60f3\u8981\u7684uid\uff0c\u6ce8\u610f\u4e0d\u8981\u91cd\u590d<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u4e2a1010\u4e3agid\uff0c\u4e0d\u8981\u91cd\u590d<\/p>\n\n\n\n<p>\/home\/ama\u4e3a\u8981\u8bbe\u7f6e\u7684\u7528\u6237\u76ee\u5f55<\/p>\n\n\n\n<p>\/bin\/bash\u4e3a\u8981\u542f\u52a8\u597d\u7684bash\u79cd\u7c7b<\/p>\n\n\n\n<p>\u51c6\u5907\u5b8c\u6210\u540e\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>% newusers users<\/code><\/pre>\n\n\n\n<p class=\"has-small-font-size\">\u4f60\u4f1a\u53d1\u73b0\u60f3\u8981\u8ffd\u52a0\u7684\u7528\u6237\u90fd\u8ffd\u52a0\u5b8c\u6210\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u5929\u770b\u82f1\u6587\u7684Linux\u8d44\u6599\uff0c\u53d1\u73b0\u4e86\u4e00\u4e2a\u5f88\u597d\u7684\u6279\u91cf\u6dfb\u52a0\u7528\u6237\u65b9\u6cd5\u3002\u603b\u7ed3\u5982\u4e0b\u3002 \u9996\u5148\u4ece\/etc\/passwd\u91cc\u9762\u627e\u51fa&hellip; <a href=\"https:\/\/tech.wen.tokyo\/?p=148\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Linux\u4e0b\u6279\u91cf\u6dfb\u52a0\u7528\u6237<\/span><\/a><\/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":[],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":1,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":149,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/149"}],"wp:attachment":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}