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

posted @ 2019-02-27 09:53  陈晓猛  阅读(827)  评论(0编辑  收藏  举报