In Linux, the problem occurs when using the graphic interface: "X: user not authorized to run the X server, aborting"
Cause of error: For security reasons, users generally do not have the permission to use the graphic interface.
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 authorize this user. Where shocould we configure this?
The configuration method is as follows:
Method 1: modify the configuration file (the configuration file cannot be modified when it is modified using gedit, which may be a read-only file)
/Etc/X11/xwrapper. config-This file has setting called "allowed_users". It can accept three values: 1. root2. anybody3. lelethe above values are self explanatory. You can edit this value to set
AnybodyFor normal user to start X server. If normal user starts X server from console,
ConsoleCan also be set. It can be like this.
Allowed_users = anybody
Method 2: run the command to modify In Debian and Its Derivatives like ubuntu. You can run the following command to do it in user friendly screen as shown below.
# Dpkg-reconfigure x11-common
Supplement: When there is a problem starting X Window with startx, you can refer to the URL: http://wiki.x.org/wiki/FAQErrorMessages