adduser git adduser: Only root may add a user or group to the system.
时间: 2023-11-04 16:20:20 浏览: 167
当你尝试使用"adduser git"命令时,出现了"adduser: Only root may add a user or group to the system"的错误提示。这是因为只有root用户才有权限添加用户或组到系统中。如果你是普通用户,你需要使用root权限来执行该命令。你可以在命令前加上"sudo"来获取root权限,例如"sudo adduser git"。这样,你就可以成功添加用户了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [adduser命令 创建用户](https://download.csdn.net/download/weixin_38709312/14889873)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Git详解之四:服务器上的Git](https://blog.csdn.net/qq446282412/article/details/10329211)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [git(4)服务器上的 Git](https://blog.csdn.net/WANTAWAY314/article/details/115519983)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文