X: user not authorized to run the X server, aborting

Source: Internet
Author: User

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
Anybody
For 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.