在Linux下使用图形界面时出现的问题:“X: user not authorized to run the X server, aborting”
错误原因为:出于安全性的考虑,一般用户没有使用图形界面的权限
This is just a simple tips to solve a error message when you start your X session with “startx” command as normal user. The error message may be like this:
blackgod@debian:~$ startx
xauth: creating new authority file /home/blackgod/.Xauthority
X: user not authorized to run the X server, aborting.
In linux, by default root user is allowed to run X server in most cases. So you don’t face this issue while running “startx” as root user.
Basically the Xorg X server needs to be configured to to authorize this user. Where should we configure this?
配置方法如下:
方法一:修改配置文件(用gedit修改时无法修改,可能为只读类型文件)
allowed_users=anybody
# dpkg-reconfigure x11-common
![](http://hi.csdn.net/attachment/201109/2/0_1314932305l33F.gif)