使用su命令切换用户时可能会报“su: Authentication failure”:

分成两步:
首先自己安装的系统没有
linux@linux:~$ su
Password:
su: Authentication failure

执行如下:
linux@linux:~$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

之后就可以正常切换了。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐