linux普通用户不能登录图形界面

http://blog.csdn.net/pipisorry/article/details/39755083

普通用户不能登录linux图形界面,只有root用户可以登录到图形界面(普通用户,用户名和密码输入正确,点击登录,2秒后又返回到了登录界面,即不能登录。)

普通用户一登录图形界面就会自动返回到KDM。普通用户在命令行可以登陆

lightdm 循环在登陆界面


1有没对用户home做磁盘限额呢,有的话检查下这个用户使用有没达到上限

2没有做限额的话,从终端登入,把这个用户home下面有关图形的隐藏配置文件都删了(.gconf 、.gconfd、.gnome 、.gnome2、.gnome2_private 、.gstreamer-0.10 等)再试试登入看.里面有些配置文件,比如登入图形界面的时候异常关闭了,有可能导致配置信息出错,不能登入,所以让你把那些文件删了,再登入,那下文件会重新生成

3要是还不行,就最暴力的方法,把用户home备份,然后把home里面的文件清空,包括隐藏文件,然后把/etc/skel目录下的隐藏文件cp到用户home下面,注意权限,如果是root cp的话,要改权限(用chown -R把修改后的home目录所有文件的所有者变成你的普通用户),用户自己的账户cp就没关系,这样应该就可以图形登入了

4再不行就考虑别的问题.把用户目录先暂时移动的别的位置,再登陆就可以,但把原来的目录再移动回来,就又不能登陆了。

5把~/.Xauthority删掉就行了

Your preferences files are currently in use.(If you are logged in this same account from another computer,the other login session is probably using your preferences files,)You can choose to continue,but be aware that other login sessions may become temporarily confused.If you are not logged in elsewhere,it should be harmless to continue
Cancel Continue
Cancel退出到字符界面,Continue提示如下:
Please contact your system administrator to resolve the follow problem:
Could not resolve the address"xml:readwrite:/home/gavin/.gconf"in the configuration file"/etc/gconf/2/path"
Couldn‘t resolve address for configuration source:
Can‘t read from or write to the XML root directory in the address"xml:readwrite:/home/gavin/.gconf"
Close


6原因是路径的权限不对。修复如下:
chmod 755 /usr/{lib,include,share},原因可能是打包的时候设置的权限不对,不过具体是哪个包,需要查询。 

/tmp这个目录的权限不对,只要把这个目录的权限改成777,即可!(一定要确保权限正确改过来了!可以切换到普通用户上试一下能不能访问此目录即可!)

7. /home/username/.Xauthority权限变成了root,把其改成777或者删除



from:http://blog.csdn.net/pipisorry/article/details/39755083

ref:无法登陆ubuntu图形界面,输入帐号后一闪而过。

Ubuntu输入密码登陆后又跳回到登录界面

startx analyze



郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。