虛擬機輸入su出現(xiàn)以下錯誤
[lcm@localhost ~]$ su
Password:
su: Authentication failure
執(zhí)行sudo root
[lcm@localhost ~]$ sudo root
[sudo] password for lcm:
lcm is not in the sudoers file. This incident will be reported.
所以需要添加root賬戶
快捷鍵command+L,或者重啟虛擬機,登陸頁面選擇log in as another user按鍵
創(chuàng)建root阵赠,密碼root,成功后
再切回原賬戶,command+L,或者重啟虛擬機灭红,
成功悉罕!