由于ubuntu系统默认是没有激活root用户的,需要手动激活:

终端下输入:

sudo passwd

Password:你当前的密码

Enter new UNIX password:这个是root的密码
Retype new UNIX password:重复root的密码

即可成功。

 

注:使用su和sudo是有区别的,使用su切换用户需要输入所切换到的用户的密码,而使用sudo则是当前用户的密码。

相关文章:

  • 2022-02-18
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-05-24
  • 2021-10-30
  • 2022-01-18
  • 2021-12-14
猜你喜欢
  • 2021-10-02
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案