{"id":5971,"date":"2019-12-16T17:01:06","date_gmt":"2019-12-16T09:01:06","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5971"},"modified":"2019-12-27T16:30:02","modified_gmt":"2019-12-27T08:30:02","slug":"grpconv","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/grpconv","title":{"rendered":"grpconv\u547d\u4ee4 – \u5f00\u542f\u7fa4\u7ec4\u7684\u6295\u5f71\u5bc6\u7801"},"content":{"rendered":"\n

grpconv\u547d\u4ee4\u7528\u4e8e\u5f00\u542f\u7fa4\u7ec4\u7684\u6295\u5f71\u5bc6\u7801\u3002 Linux\u7cfb\u7edf\u91cc\u7684\u7528\u6237\u548c\u7fa4\u7ec4\u5bc6\u7801\uff0c\u5206\u522b\u5b58\u653e\u5728\/etc\u76ee\u5f55\u4e0b\u7684passwd\u548cgroup\u6587\u4ef6\u4e2d\u3002\u56e0\u7cfb\u7edf\u8fd0\u4f5c\u6240\u9700\uff0c\u4efb\u4f55\u4eba\u90fd\u5f97\u4ee5\u8bfb\u53d6\u5b83\u4eec\uff0c\u9020\u6210\u5b89\u5168\u4e0a\u7684\u7834\u7efd\u3002 <\/p>\n\n\n\n

\u6295\u5f71\u5bc6\u7801\u5c06\u6587\u4ef6\u5185\u7684\u5bc6\u7801\u6539\u5b58\u5728\/etc\u76ee\u5f55\u4e0b\u7684shadow\u548cgshadow\u6587\u4ef6\u5185\uff0c\u53ea\u5141\u8bb8\u7cfb\u7edf\u7ba1\u7406\u8005\u8bfb\u53d6\uff0c\u540c\u65f6\u628a\u539f\u5bc6\u7801\u7f6e\u6362\u4e3a\u201dx\u201d\u5b57\u7b26\u3002\u6295\u5f71\u5bc6\u7801\u7684\u529f\u80fd\u53ef\u968f\u65f6\u5f00\u542f\u6216\u5173\u95ed\uff0c\u60a8\u53ea\u9700\u6267\u884cgrpconv\u6307\u4ee4\u5c31\u80fd\u5f00\u542f\u7fa4\u7ec4\u6295\u5f71\u5bc6\u7801\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> grpconv<\/p>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong>\u00a0<\/p>\n\n\n\n

\u8bbe\u7f6ecdy\u7ec4\u5bc6\u7801:<\/p>\n\n\n\n

[root@linuxcool ~]# groupmod --password 123456 cdy\n[root@linuxcool ~]# cat \/etc\/group | grep cdy\ncdy:123456:1000:     <\/pre>\n\n\n\n

\u542f\u52a8\u5f71\u5b50\u7cfb\u7edf:<\/p>\n\n\n\n

[root@linuxcool ~]# grpconv\n[root@linuxcool ~]# cat \/etc\/group |  grep cdy\ncdy:x:1000:     <\/pre>\n","protected":false},"excerpt":{"rendered":"

grpconv\u547d\u4ee4\u7528\u4e8e\u5f00\u542f\u7fa4\u7ec4\u7684\u6295\u5f71\u5bc6\u7801\u3002 Linux\u7cfb\u7edf\u91cc\u7684\u7528\u6237\u548c\u7fa4\u7ec4\u5bc6\u7801\uff0c\u5206\u522b\u5b58\u653e\u5728\/etc\u76ee\u5f55\u4e0b\u7684pas […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5971"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5971"}],"version-history":[{"count":11,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5971\/revisions"}],"predecessor-version":[{"id":6177,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5971\/revisions\/6177"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}