Ubuntu14.04切换root用户

使用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账户了

原文地址:https://www.cnblogs.com/chenxiaomeng/p/10441686.html