1. 程式人生 > >ubuntu輸入正確使用者密碼重新跳到無法登入

ubuntu輸入正確使用者密碼重新跳到無法登入

$ cd ~
$ sudo chown hp:hp .Xauthority
然後再次輸入:
ls .Xauthority -l
成功後顯示如下:

-rw------- 1 hp hp 80 1月 27 10:41 .Xauthority

hp為當前登入的使用者

此時擁有者已經變為使用者。按下shift + ctrl + F7切換回圖形登陸介面登陸即可。