LinuxSir.cn,穿越时空的Linuxsir!

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

普通用户无法进入X,xauth报错。大家帮忙看看。

[复制链接]
发表于 2006-5-24 20:50:17 | 显示全部楼层 |阅读模式
  1. $ startx
  2. xauth: creating new authority file /home/ackman/.serverauth.XXXX
  3. xauth: error in locking authority file /home/ackman/.Xauthority
  4. xauth: error in locking authority file /home/ackman/.Xauthority
  5. xauth: error in locking authority file /home/ackman/.Xauthority
  6. xauth: error in locking authority file /home/ackman/.Xauthority
  7. X: user not authorized to run th X server, aborting
  8. xauth: error in locking authority file /home/ackman/.Xauthority
复制代码

运行sudo startx可正常进入X

改过~/.Xauthority的权限和所有者,都无效。
发表于 2006-5-24 23:06:34 | 显示全部楼层
Post by ackman
  1. $ startx
  2. xauth: creating new authority file /home/ackman/.serverauth.XXXX
  3. xauth: error in locking authority file /home/ackman/.Xauthority
  4. xauth: error in locking authority file /home/ackman/.Xauthority
  5. xauth: error in locking authority file /home/ackman/.Xauthority
  6. xauth: error in locking authority file /home/ackman/.Xauthority
  7. X: user not authorized to run th X server, aborting
  8. xauth: error in locking authority file /home/ackman/.Xauthority
复制代码


运行sudo startx可正常进入X

改过~/.Xauthority的权限和所有者,都无效。

用Root执行
xhost +
试试
回复 支持 反对

使用道具 举报

发表于 2006-5-25 00:14:31 | 显示全部楼层
把这个文件删掉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-25 09:23:05 | 显示全部楼层
Post by homesp
用Root执行
xhost +
试试
  1. # xhost +
  2. xhost: unable to open display""
复制代码
还是进不去,提示信息和上面一样。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-25 09:26:29 | 显示全部楼层
删掉~/.Xauthority后,依然不行:
  1. xauth: creating new authority file /home/ackman/.serverauth.XXXX
  2. xauth: creating new authority file /home/ackman/.Xauthority
  3. xauth: creating new authority file /home/ackman/.Xauthority
  4. X: user not authorized to run th X server, aborting
  5. gaving up
  6. xinit: Connection refused (errno 111): unable to connect to X server
  7. xinit: No such proccess (errno 3): server error
复制代码
真郁闷!
回复 支持 反对

使用道具 举报

发表于 2006-5-26 19:28:01 | 显示全部楼层
我也有同样的问题,估计是~/.Xauthority文件被修改过,但不知怎么恢复,因为里面的内容是加密过的。也在研究中...
回复 支持 反对

使用道具 举报

发表于 2006-5-26 19:37:16 | 显示全部楼层
看看/etc/X11/Xwrapper.config,其中allowed_users=是什么?
回复 支持 反对

使用道具 举报

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

本版积分规则

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