xubeiping0930

在终端中输入:
sudo passwd root
Enter new UNIX password: (在这输入你的密码)
Retype new UNIX password: (确定你输入的密码)
passwd: password updated successfully

以后,如果在想获得root权限,只需进行如下的操作:
su root
Password: (在此输入你上面设置的密码)

如果要再次禁用 root 帐号,

那么可以执行 sudo passwd -l root

分类:

技术点:

相关文章:

  • 2021-10-06
  • 2022-02-08
  • 2021-12-13
  • 2022-01-01
  • 2021-09-07
  • 2021-10-08
  • 2021-11-23
  • 2021-11-02
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2021-08-02
  • 2021-11-18
  • 2021-11-01
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案