{"id":6048,"date":"2019-12-25T16:59:11","date_gmt":"2019-12-25T08:59:11","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6048"},"modified":"2019-12-25T16:59:12","modified_gmt":"2019-12-25T08:59:12","slug":"vipw","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/vipw","title":{"rendered":"vipw\u547d\u4ee4 – \u7f16\u8f91\u67d0\u4e9b\u914d\u7f6e\u6587\u4ef6"},"content":{"rendered":"\n

\u4f7f\u7528vipw\u547d\u4ee4\u53ef\u4ee5\u7f16\u8f91\/etc\/passwd\u3001\/etc\/shadow\u3001\/etc\/group\u548c\/etc\/gshadow\u6587\u4ef6\u3002\u8be5\u65b9\u5f0f\u5c06\u8bbe\u7f6e\u9002\u5f53\u7684\u9501\uff0c\u4ee5\u9632\u6b62\u6587\u4ef6\u635f\u574f\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>vipw [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-g<\/td>\u7f16\u8f91group\u6570\u636e\u5e93<\/td><\/tr>
-p<\/td>\u7f16\u8f91passwd\u6570\u636e\u5e93<\/td><\/tr>
-q<\/td>\u5b89\u9759\u6a21\u5f0f<\/td><\/tr>
-s<\/td>\u7f16\u8f91shadow\u6216gshadow\u6570\u636e\u5e93<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u7f16\u8f91\/etc\/passwd\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vipw -p<\/pre>\n\n\n\n

\u7f16\u8f91\/etc\/group\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vipw -g<\/pre>\n\n\n\n

\u7f16\u8f91\/etc\/shadow\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vipw -s<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528vipw\u547d\u4ee4\u53ef\u4ee5\u7f16\u8f91\/etc\/passwd\u3001\/etc\/shadow\u3001\/etc\/group\u548c\/etc\/gsh […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6048"}],"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=6048"}],"version-history":[{"count":1,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6048\/revisions"}],"predecessor-version":[{"id":6049,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6048\/revisions\/6049"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}