摘要:使用su切换到root用户,输入密码后总是提示su:Authentication failure,这是Ubuntu系统默认没有激活root用户,所以需要手动激活
$ su
Password:
su: Authentication failure
当看到这样的提示时,输入下面的命令
$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
此时在用su就可以切刀root用户了