安裝ubuntu后用su -切換到root提示 su: authentication failure
在ubuntu中使用命令:sudo passwd root
輸入舊密碼
輸入新密碼
確認(rèn)新密碼
完成后提示:
passwd: password updated successfully
此時(shí)再用 su - 輸入新密碼就可以切換到root了
參考:Ubuntu linux系統(tǒng)下 su:出現(xiàn): authentication failure的解決辦法_小K小Q的博客-CSDN博客_linux su: authentication failure