【Ubuntu】解决使用 su 切换 root 报错:Authentication failure用户时认证失败
问题:
ubuntu使用su切换root出现Authentication failure用户时认证失败
报错原因:
因为Ubuntu系统默认没有激活root用户,因此需手动激活,操作,然后再使用su命令才可以
解决方法:
输入如下代码,设置root密码
sudo passwd root
问题:
ubuntu使用su切换root出现Authentication failure用户时认证失败
报错原因:
因为Ubuntu系统默认没有激活root用户,因此需手动激活,操作,然后再使用su命令才可以
解决方法:
输入如下代码,设置root密码
sudo passwd root