ubuntu 设置root密码
时间: 2023-09-23 19:12:18 浏览: 106
在Ubuntu系统中,默认情况下是没有设置root密码的。系统会自动生成一个随机的root密码。但是用户可以通过一些命令来修改root密码。其中一种方法是在终端中输入命令"sudo passwd root",然后按照提示输入当前用户密码和新的root密码即可完成密码的修改。另外,也可以使用命令"sudo passwd root"来修改root密码。具体的步骤是在终端中输入该命令后,按照提示输入当前用户密码和新的root密码,然后再次输入新的root密码进行确认,最后会显示密码更新成功的提示信息。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [【ubuntu】设置root用户密码](https://blog.csdn.net/weixin_43500200/article/details/131118075)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Ubuntu设置root密码](https://blog.csdn.net/sanqima/article/details/116205835)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [ubuntu的root密码设置方法](https://blog.csdn.net/lenny_wants/article/details/127456231)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文