oio11: (Default)
[personal profile] oio11
How to fix “X: user not authorized to run the X server, aborting.”?

Posted on September 26, 2010 by Black God

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

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?

/etc/X11/Xwrapper.config – This file has as setting called “allowed_users”. It can accept three values:

1. root 2. anybody 3. console

The above values are self explanatory. You can edit this value to set as anybody for normal user to start X server. If normal user starts X server from console, console can also be set. It can be like this.

" allowed_users=anybody "

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

QNAP TS-110 NAS Debian, Linux, TS-110, X Server, x11-common, Xorg, Xwrapper.config

http://karuppuswamy.com/wordpress/2010/09/26/how-to-fix-x-user-not-authorized-to-run-the-x-server-aborting/

October 2025

S M T W T F S
   1234
567891011
12131415161718
19202122 232425
262728293031 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 7th, 2026 09:16 am
Powered by Dreamwidth Studios