- 报错内容
$ su root
Password:
su: Authentication failure
- 解决方案
重置root密码(可以和当前账户密码相同)
$ sudo passwd root
[sudo] password for username:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
$ su root
Password:
su: Authentication failure
$ sudo passwd root
[sudo] password for username:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully