X: user not authorized to run the X server, aborting
来源:互联网 发布:电脑如何禁止软件安装 编辑:程序博客网 时间:2024/05/08 23:44
在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修改时无法修改,可能为只读类型文件)
/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
补充:在使用startx启动x window出现问题时,可以参照网址:http://wiki.x.org/wiki/FAQErrorMessages
- X: user not authorized to run the X server, aborting
- X: user not authorized to run the X server, aborting
- X: user not authorized to run the X server, aborting
- 解决 "X: user not authorized to run the X server, aborting."
- [解决] User [dr.who] is not authorized to view the logs for application
- The user running validate, does not have permissions to create computer objects in the 'x.com
- This server could not verify that you are authorized to access the document requested.
- [Linux] Can not connect to X server
- TIP: when you get a message in job log user [Dr. Who] is not authorized to view the log
- How to Re-Run the OS X Setup Assistant
- X++ Run report To PDF
- ASP.NET is not authorized to access the requested resource.
- Address x.x.x.x maps to localhost, but this does not map back to the address
- bochs--can not connect to X server 问题
- can not connect to X Server 0.0 Error
- 【转】ERROR 1130: Host 'xxx.xxx.x.x' is not allowed to connect to thisMySQL server
- The X-server can not be started on display:0
- The guest operating system is not Mac OS X Server.
- 解决:上传文件按钮样式,fileupload 样式,同时解决后台得不到上传文件的信息问题
- 聚合,真正的聚合ActiveX控件 .
- 关于/etc/rc.local以及/etc/init.d
- Linux 系统日志
- C库源代码实现: strtok
- X: user not authorized to run the X server, aborting
- DDX双精度或浮点数为特定格式 .
- 解除SVN控制
- 敏捷测试的方法和实践
- d盘结构损坏无法读取,有什么办法修复????
- http 学习笔记
- android 调用系统自带功能
- regex强大工具:org.apache.oro.text.regex中的PatternMatcherInput使用
- android source code下载源代码时出错