读书人

linux的startx有关问题

发布时间: 2012-09-25 09:55:58 作者: rapoo

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就可以进入图形化界面了。

读书人网 >UNIXLINUX

热点推荐