2

ubuntu 循环登陆(闪退,登陆成功后又跳回登陆界面)

 3 years ago
source link: https://blog.csdn.net/yanxiangtianji/article/details/14148975
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ubuntu 循环登陆(闪退,登陆成功后又跳回登陆界面)

表现为在图形登陆界面能够正常验证密码正误,在正确输入密码后,出现命令行下的自检界面,然后立即闪回到登陆界面。而且这个问题一般是出现在某些账户下,其他账户尤其是guest账户不受影响。而且命令行登陆也不受影响。

这个问题存在于ubuntu的多个版本中:ubuntu 12.04 ,ubuntu 12.10,ubuntu 13.04,ubuntu 13.10 (勾引搜索引擎用^-^)

一个最常见的原因是该账户下的的.Xauthority文件的对当前用户没有读写权限。这个文件是用来记录Xserver登陆情况的,而且默认权限限制地很严(只有owner有rw权限),由于某些意外,所有者变成了root,导致我们用当前账号登陆的时候无法完成完整的登陆程序,而被退出。

修改的方法很简单,通过命令行登陆(Ctrl+Alt+F1),将拥有者(和组)改为当前用户。

例如我的用户名为 abc

使用命令:

(会看到.Xauthority的所有者和组是root)

sudo chown abc:abc .Xauthority

*返回图形界面:Ctrl+Alt+F7

原载于http://blog.csdn.net/yanxiangtianji

转载请注明出处


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK