{"id":4209,"date":"2020-12-19T13:18:41","date_gmt":"2020-12-19T05:18:41","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=4209"},"modified":"2020-12-19T13:20:38","modified_gmt":"2020-12-19T05:20:38","slug":"linux%e5%a6%82%e4%bd%95%e7%a6%81%e6%ad%a2%e4%bf%ae%e6%94%b9%e5%af%86%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/4209.html","title":{"rendered":"Linux\u5982\u4f55\u7981\u6b62\u4fee\u6539\u5bc6\u7801"},"content":{"rendered":"
Linux\u7528\u6237\u7684\u7528\u6237\u540d\u4fdd\u5b58\u5728 \u8981\u5141\u8bb8\u4fee\u6539\u5bc6\u7801\uff0c\u53d6\u6d88\u6587\u4ef6\u4e0a\u7684\u53ea\u8bfb\u6807\u8bb0\uff1a<\/p>\n \u53ea\u8bbe\u7f6e\/etc\/passwd\u4e3a\u53ea\u8bfb\u4e0d\u80fd\u963b\u6b62\u66f4\u6539\u5bc6\u7801\uff0c\u56e0\u4e3a\u66f4\u6539\u5bc6\u7801\u53ea\u9700\u66f4\u65b0\/etc\/shadow\u6587\u4ef6<\/strong>\u3002\u5c06\u8fd9\u4e24\u4e2a\u6587\u4ef6\u8bbe\u7f6e\u4e3a\u53ea\u8bfb\u540e\uff0c\u9644\u52a0\u6548\u679c\u662f\u65e0\u6cd5\u65b0\u5efa\u65b0\u7528\u6237\uff08\u65b0\u5efa\u7528\u6237\u4f1a\u5199\u5165\/etc\/passwd\uff09\u3002\u4f8b\u5982\u4f7f\u7528yum\u5b89\u88c5MySQL\uff0c\u5b89\u88c5\u7a0b\u5e8f\u5c06\u65e0\u6cd5\u65b0\u5efamysql\u7528\u6237\uff0c\u4ece\u800c\u65e0\u6cd5\u6b63\u5e38\u542f\u52a8MySQL\u670d\u52a1\u3002\u5982\u679c\u8bbe\u7f6e\u4e86\u6587\u4ef6\u53ea\u8bfb\u540e\uff0c\u5efa\u8bae\u5728yum\u5b89\u88c5\u7a0b\u5e8f\u65f6\u5173\u95ed\u53ea\u8bfb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Linux\u5982\u4f55\u7981\u6b62\u4fee\u6539\u5bc6\u7801 Linux\u7528\u6237\u7684\u7528\u6237\u540d\u4fdd\u5b58\u5728\/etc\/passwd\u6587\u4ef6\u4e2d\uff0c\u5bc6\u7801\u4fdd\u5b58\u5728\/etc\/sh […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2],"tags":[337,1344],"class_list":["post-4209","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-wljs","tag-linux","tag-1344"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=4209"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4209\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=4209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=4209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=4209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\/etc\/<\/span>passwd<\/span><\/code>\u6587\u4ef6\u4e2d\uff0c\u5bc6\u7801\u4fdd\u5b58\u5728
\/etc\/<\/span>shadow<\/span><\/code>\u4e2d\u3002\u8981\u7981\u6b62\u7528\u6237\u4fee\u6539\/\u91cd\u7f6e\u5bc6\u7801\uff0c\u5c06\u8fd9\u4e24\u4e2a\u6587\u4ef6\u8bbe\u7f6e\u4e3a\u53ea\u8bfb\u5373\u53ef\uff1a<\/p>\n
chattr <\/span>+<\/span>i <\/span>\/<\/span>etc<\/span>\/<\/span>passwd\r\nchattr <\/span>+<\/span>i <\/span>\/<\/span>etc<\/span>\/<\/span>shadow<\/span><\/pre>\n
chattr <\/span>-<\/span>i <\/span>\/<\/span>etc<\/span>\/<\/span>passwd\r\nchattr <\/span>-<\/span>i <\/span>\/<\/span>etc<\/span>\/<\/span>shadow<\/span><\/pre>\n
\u6ce8\u610f<\/h4>\n