LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1067|回复: 5

普通用户不能登录X-Windows?

[复制链接]
发表于 2005-8-24 20:55:53 | 显示全部楼层 |阅读模式
为什么我的LFS6.1普通用户不能登录X-Windows?
用普通用户登录时错误提示如下:
sinclair@Fine-Lok:~$startx
.........
giving up
xinit: connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): server error
sinclair@Fine-Lok:~$
而用root可以正常登录。
root@Fine-Lok:~# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
edwin:x:1000:100::/home/edwin:/bin/bash
sinclair:x:1003:100::/home/sinclair:/bin/bash
root@Fine-Lok:~#
发表于 2005-8-26 16:10:35 | 显示全部楼层
确保 Console 7没运行 X。

可以运行 init 3 来停止X。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-26 18:11:49 | 显示全部楼层
Hi 黯然销魂
谢谢你的回答
我是运行 ini 3 进入系统,然后用普通登录"startx" 不能进入X-windows
而用root进入X一切正常。
谢问我要如何检查?谢谢。
回复 支持 反对

使用道具 举报

发表于 2005-8-30 16:56:28 | 显示全部楼层
Hi sinclair,

I already solved my problem.  If you have not solved yours please try following steps;

Started BLFS 6.1 (assuming it can be started)
Login as "root"
run
# /usr/sbin/groupadd sinclair -g 100
# chown --recursive sinclair:sinclair /home/sinclair
(should have no printout.  If there is any, please posting it on the Forum)

logout "root" and "relogin" as sinclair
$ startx

B.R.
satimis
(P.S. in my case, no /home/satimis/.Xauthority file)
回复 支持 反对

使用道具 举报

发表于 2005-8-30 22:53:13 | 显示全部楼层
那你要看什么问题,把xorg.log那个文件贴出来吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-31 13:30:56 | 显示全部楼层
Hi satimis
thanks for you advice. i already posted my result on linuxfans forum.please click
http://www.linuxfans.org/nuke/mo ... 129599&start=15

Hi 黯然销魂
谢谢你的回答,但是我用普通用login 时如下:
$startx
Fatal server error:
cannot move old log file ("var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old")
please consult the The X.org Foundation support
at http://wiki.X.org
for help
giving up
xinit: connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): server error
如果这时我贴出Xorg.0.log它应该是正常吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表