首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux的startx有关问题

2012-09-25 
linux的startx问题问题描述:今天突然发现除了root之外的用户都启动不起来startx,报:?Fatal server error:P

linux的startx问题

问题描述:

今天突然发现除了root之外的用户都启动不起来startx,报:

?

Fatal server error:PAM authentication failed, cannot start X server.        Perhaps you do not have console ownership?When reporting a problem related to a server crash, please sendthe full server output, not just the last messages.Please report problems to xfree86@xfree86.org.giving up.xinit:  No such file or directory (errno 2):  unable to connect to X serverxinit:  No such process (errno 3):  Server error.Couldnt get a file descriptor referring to the console

?

解决思路:

检查/var/run/console.lock包含的用户名,而且/var/run/console/<user>要存在。在进行认证时pam_console比较用户名是否同console.lock内容一致,如果不符,认证失败。/var/run/console/<user>用来记录用户登录的次数,用户注销后console.lock就可以删除。

?

解决措施:

我使用的是oracle这个普通用户,在/var/run/console/下运行touch oracle命令创建了一个名为oracle的文件,重新运行startx就可以进入图形化界面了。

热点排行