$ su - root
Password:
su: Authentication failure
Sorry.
这个时候,只需要执行一下命令行就可以了:
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
输入完后我们就可以使用su了.
$ su - root
Password:
su: Authentication failure
Sorry.
这个时候,只需要执行一下命令行就可以了:
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
输入完后我们就可以使用su了.