关于ubuntu刚开始安装时root密码的问题

  新接触ubuntu的人,大多会因为安装中没有提示root密码而不太清楚为什么会这样。
其实ubuntu默认没有root密码的,因为你还没给root设置密码,

用安装时建立的用户登陆后在Shell命令窗口执行
sudo passwd root
回车
Password:--->输入你的那个新建的用户密码,不回显
回车
Enter new UNIX password:
这时输入要设置的root密码两次就会看到
password updated successfully了!

posted @ 2019-11-16 11:14  bigbigbrid  阅读(313)  评论(0编辑  收藏  举报