{"id":765,"date":"2017-03-14T18:08:53","date_gmt":"2017-03-14T10:08:53","guid":{"rendered":"http:\/\/www.shuran.cn\/?p=765"},"modified":"2017-03-14T18:08:53","modified_gmt":"2017-03-14T10:08:53","slug":"linux%e6%96%b0%e5%bb%ba%e7%94%a8%e6%88%b7","status":"publish","type":"post","link":"https:\/\/www.shuran.cn\/?p=765","title":{"rendered":"linux\u65b0\u5efa\u7528\u6237"},"content":{"rendered":"<p>\n\t1\u3001\u6dfb\u52a0\u7528\u6237\uff0c\u9996\u5148\u7528adduser\u547d\u4ee4\u6dfb\u52a0\u4e00\u4e2a\u666e\u901a\u7528\u6237\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t#adduser tommy\n<\/p>\n<p>\n\t\/\/\u6dfb\u52a0\u4e00\u4e2a\u540d\u4e3atommy\u7684\u7528\u6237\n<\/p>\n<p>\n\t#passwd tommy \/\/\u4fee\u6539\u5bc6\u7801\n<\/p>\n<p>\n\tChanging password for user tommy.\n<\/p>\n<p>\n\tNew UNIX password: \/\/\u5728\u8fd9\u91cc\u8f93\u5165\u65b0\u5bc6\u7801\n<\/p>\n<p>\n\tRetype new UNIX password: \/\/\u518d\u6b21\u8f93\u5165\u65b0\u5bc6\u7801\n<\/p>\n<p>\n\tpasswd: all authentication tokens updated successfully.\n<\/p>\n<p>\n\t2\u3001\u8d4b\u4e88root\u6743\u9650\n<\/p>\n<p>\n\t\u65b9\u6cd5\u4e00\uff1a \u4fee\u6539 \/etc\/sudoers \u6587\u4ef6\uff0c\u627e\u5230\u4e0b\u9762\u4e00\u884c\uff0c\u628a\u524d\u9762\u7684\u6ce8\u91ca(#)\u53bb\u6389\n<\/p>\n<p>\n\t## Allows people in group wheel to run all commands\n<\/p>\n<p>\n\t%wheel ALL=(ALL) ALL\n<\/p>\n<p>\n\t\u7136\u540e\u4fee\u6539\u7528\u6237\uff0c\u4f7f\u5176\u5c5e\u4e8eroot\u7ec4(wheel)\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t#usermod -g root tommy\n<\/p>\n<p>\n\t\u4fee\u6539\u5b8c\u6bd5\uff0c\u73b0\u5728\u53ef\u4ee5\u7528tommy\u5e10\u53f7\u767b\u5f55\uff0c\u7136\u540e\u7528\u547d\u4ee4 su - \uff0c\u5373\u53ef\u83b7\u5f97root\u6743\u9650\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u6dfb\u52a0\u7528\u6237\uff0c\u9996\u5148\u7528adduser\u547d\u4ee4\u6dfb\u52a0\u4e00\u4e2a\u666e\u901a\u7528\u6237\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a #adduser tommy \/\/\u6dfb\u52a0\u4e00\u4e2a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.shuran.cn\/?p=765\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-765","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=765"}],"version-history":[{"count":1,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions"}],"predecessor-version":[{"id":766,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions\/766"}],"wp:attachment":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}