{"id":2382,"date":"2019-05-26T23:55:43","date_gmt":"2019-05-26T15:55:43","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2382"},"modified":"2022-05-16T22:12:34","modified_gmt":"2022-05-16T14:12:34","slug":"adduser","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/adduser","title":{"rendered":"adduser\u547d\u4ee4 – \u521b\u5efa\u7528\u6237\u8d26\u6237"},"content":{"rendered":"\n
adduser\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cadd user\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u521b\u5efa\u7528\u6237\u8d26\u6237\u3002adduser\u5b9e\u9645\u5e76\u4e0d\u662f\u4e00\u4e2a\u771f\u6b63\u7684\u547d\u4ee4\u6587\u4ef6\uff0c\u800c\u4ec5\u4ec5\u662fuseradd\u7684\u4e00\u6761\u522b\u540d\u547d\u4ee4\uff0c\u56e0\u6b64\u8fd9\u4e24\u4e2a\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>adduser [\u53c2\u6570] \u7528\u6237\u540d<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u521b\u5efa\u6307\u5b9a\u540d\u79f0\u7684\u7528\u6237\u8d26\u6237\uff1a<\/p>\n\n\n\n \u521b\u5efa\u6307\u5b9a\u540d\u79f0\u7684\u7528\u6237\u8d26\u6237\uff0c\u5e76\u8bbe\u7f6e\u8d26\u6237\u6709\u6548\u671f\uff1a<\/p>\n\n\n\n \u521b\u5efa\u6307\u5b9a\u540d\u79f0\u7684\u7528\u6237\u8d26\u6237\uff0c\u5e76\u6dfb\u52a0\u6269\u5c55\u7ec4\uff1a<\/p>\n\n\n\n \u521b\u5efa\u6307\u5b9a\u540d\u79f0\u7684\u7528\u6237\u8d26\u6237\uff0c\u5e76\u8bbe\u7f6e\u5bb6\u76ee\u5f55\u540d\u79f0\uff1a<\/p>\n\n\n\n adduser\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cadd user\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u521b\u5efa\u7528\u6237\u8d26\u6237\u3002adduser\u5b9e\u9645\u5e76\u4e0d\u662f […]<\/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\/2382"}],"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=2382"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2382\/revisions"}],"predecessor-version":[{"id":9753,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2382\/revisions\/9753"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-c <\/td> \u6307\u5b9a\u5907\u6ce8\u6587\u4ef6<\/td><\/tr> -d <\/td> \u6307\u5b9a\u5bb6\u76ee\u5f55<\/td><\/tr> -D<\/td> \u53d8\u66f4\u9ed8\u8ba4\u503c <\/td><\/tr> -e<\/td> \u8bbe\u5b9a\u6b64\u5e10\u53f7\u7684\u4f7f\u7528\u671f\u9650<\/td><\/tr> -f <\u7f13\u51b2\u5929\u6570> <\/td> \u6307\u5b9a\u5728\u5bc6\u7801\u8fc7\u671f\u540e\u591a\u5c11\u5929\u5373\u5173\u95ed\u8be5\u5e10\u53f7 <\/td><\/tr> -g <\u7fa4\u7ec4> <\/td> \u6307\u5b9a\u7528\u6237\u6240\u5c5e\u7684\u7fa4\u7ec4 <\/td><\/tr> -G <\u7fa4\u7ec4> <\/td> \u6307\u5b9a\u7528\u6237\u6240\u5c5e\u7684\u9644\u52a0\u7fa4\u7ec4 <\/td><\/tr> -m <\/td> \u81ea\u52a8\u5efa\u7acb\u7528\u6237\u7684\u767b\u5165\u76ee\u5f55<\/td><\/tr> -M <\/td> \u4e0d\u8981\u81ea\u52a8\u5efa\u7acb\u7528\u6237\u7684\u767b\u5165\u76ee\u5f55 <\/td><\/tr> -n <\/td> \u53d6\u6d88\u5efa\u7acb\u4ee5\u7528\u6237\u540d\u79f0\u4e3a\u540d\u7684\u7fa4\u7ec4 <\/td><\/tr> -r <\/td> \u5efa\u7acb\u7cfb\u7edf\u5e10\u53f7 <\/td><\/tr> -s <shell> <\/td> \u6307\u5b9a\u7528\u6237\u767b\u5165\u540e\u6240\u4f7f\u7528\u7684shell<\/td><\/tr> -u <uid> <\/td> \u6307\u5b9a\u7528\u6237ID <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# adduser linuxcool<\/strong><\/pre>\n\n\n\n
[root@linuxprobe ~]# adduser -e 18\/05\/2023 linuxcool<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# adduser -G root linuxcool<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# adduser -d \/home\/linux linuxcool<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"