{"id":547736,"date":"2021-12-11T15:28:07","date_gmt":"2021-12-11T07:28:07","guid":{"rendered":"http:\/\/4563.org\/?p=547736"},"modified":"2021-12-11T15:28:07","modified_gmt":"2021-12-11T07:28:07","slug":"%e7%94%b2%e9%aa%a8%e6%96%87-%e6%96%b0%e5%8a%a0%e5%9d%a1-%e5%a4%a7%e4%bd%ac%e4%bb%ac%e5%b0%b1%e5%88%ab%e8%af%b4%e5%88%a0%e4%ba%86%e9%87%8d%e5%bb%ba%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=547736","title":{"rendered":"\u7532\u9aa8\u6587 \u65b0\u52a0\u5761 \u5927\u4f6c\u4eec\u5c31\u522b\u8bf4\u5220\u4e86\u91cd\u5efa\u4e86"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>lKKl<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u7532\u9aa8\u6587 \u65b0\u52a0\u5761 \u5927\u4f6c\u4eec\u5c31\u522b\u8bf4\u5220\u4e86\u91cd\u5efa\u4e86<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 lKKl \u4e8e 2021-12-11 14:21 \u7f16\u8f91 <\/p>\n<p> \u5927\u4f6c\u4eec\u6551\u547d\u554a\uff0c\u7532\u9aa8\u6587\u65b0\u5bb6\u62abUbuntu-20.04\u4e4b\u524d\u662f\u6267\u884csudo -i \u5c31\u5185\u5b58cpu\u5360\u7528\u767e\u5206\u4e4b\u767e\uff0c\u6ca1\u529e\u6cd5\u5f00\u901aroot\u767b\u5f55\u3002<br \/>  \u7ecf\u8fc7\u4e24\u5929\u7684\u7814\u7a76\u5e9f\u4e86\u4e5d\u725b\u4e8c\u864e\u4e4b\u529b\u901a\u8fc7Cloud Shell\u624b\u52a8\u4fee\u6539\/etc\/ssh\/sshd_config\u6587\u4ef6\u5b9e\u73b0\u4e86root\u767b\u5f55 <br \/>  \u4f46\u662f\u73b0\u5728\u7528\u666e\u901a\u7528\u6237\u80fd\u6b63\u5e38\u767b\u5f55\uff0c\u4e0d\u8fc7\u6267\u884csudo -i \u5c31\u5185\u5b58cpu\u5360\u7528\u767e\u5206\u4e4b\u767e\u3002<br \/>  root\u7528\u6237\u53ef\u4ee5\u767b\u5f55\u6210\u529f\uff0c\u4f46\u662f\u767b\u5f55\u6210\u529f\u5c31\u7acb\u9a6c\u5185\u5b58\u5360\u7528100\u767e\u5206\u4e4b\u767e\u3002<\/p>\n<p>  \u627e\u4e0d\u5230\u95ee\u9898\u5728\u54ea\u554a\uff0c\u671b\u5404\u4f4d\u7ed9\u6307\u6761\u660e\u8def\u3002<\/p>\n<p>  \u65b0\u52a0\u5761\u8c8c\u4f3c\u53c8\u653e\u6c34\u4e86\u3002\u5220\u6389\u91cd\u5efa\u6210\u529f\u4e86\uff01\uff01\uff01\uff01\uff01\uff01\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>louiejordan<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6ca1\u9047\u5230\u8fc7\u4f60\u8fd9\u6837\u7684\u60c5\u51b5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kanro<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t24G\u5185\u5b58\u4e5f\u80fd100%\uff1fhttps:\/\/cdn.jsdelivr.net\/gh\/master-of-forums\/master-of-forums\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5f20\u963f\u5446<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\treboot\u4e00\u4e0b\u8bd5\u8bd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lKKl<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f20\u963f\u5446 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-11 14:02<br \/>  reboot\u4e00\u4e0b\u8bd5\u8bd5<\/p>\n<p> \u8f6f\u91cd\u542f \u786c\u91cd\u542f\u90fd\u8bd5\u8fc7 \u95ee\u9898\u4f9d\u65e7\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>emptysuns<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tman sudo<\/p>\n<p>  -i, &#8211;login<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Run the shell specified by the target user&#8217;s password database entry as a login shell.This means that lo\u2010<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;gin-specific resource files such as .profile, .bash_profile or .login will be read by the shell.If a com\u2010<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mand is specified, it is passed to the shell for execution via the shell&#8217;s -c option.If no command is spec\u2010<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;ified, an interactive shell is executed.sudo attempts to change to that user&#8217;s home directory before run\u2010<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;ning the shell.The command is run with an environment similar to the one a user would receive at log in.<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Note that most shells behave differently when a command is specified as compared to an interactive session;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;consult the shell&#8217;s manual for details.The Command environment section in the sudoers(5) manual documents<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;how the -i option affects the environment in which a command is run when the sudoers policy is in use.<\/p>\n<p>  -i\u76f4\u63a5\u8c03\u7528.bash_profile\u6587\u4ef6\uff0c\u53ef\u80fd\u8bfb\u53d6\u963b\u585e\u5566\uff1f<\/p>\n<p>  \u5982\u679c\u8981\u5207\u6362root \u76f4\u63a5sudo su root\u4e0d\u5c31\u597d\u4e86https:\/\/cdn.jsdelivr.net\/gh\/master-of-forums\/master-of-forums\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lKKl<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkanro \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-11 14:02<br \/>  24G\u5185\u5b58\u4e5f\u80fd100%\uff1f<\/p>\n<p> \u80af\u5b9a\u662f\u54ea\u91cc\u6709\u95ee\u9898\uff0c\u53ea\u8981\u5207\u6362\u5230root\u6743\u9650\u7acb\u9a6c\u767e\u5206\u4e4b\u767e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>colla<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u73b0\u5728\u4e0d\u662f\u80fd\u5f00arm\u4e86\u5417\uff0c\u8d76\u7d27\u5220\u4e86\u518d\u5f00\u4e00\u4e2a\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>stingeo<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u89c9\u5f97\u8fd8\u662f\u5220\u9e21\u91cd\u5efa\u5427\u3002\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lKKl<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tcolla \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-12-11 14:04<br \/>  \u73b0\u5728\u4e0d\u662f\u80fd\u5f00arm\u4e86\u5417\uff0c\u8d76\u7d27\u5220\u4e86\u518d\u5f00\u4e00\u4e2a\u554a<\/p>\n<p> \u76ee\u524d\u5df2\u7ecf\u65b0\u5f00\u4e0d\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>lKKl \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u7532\u9aa8\u6587 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/547736"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=547736"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/547736\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=547736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=547736"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=547736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}