修改fstab文件后引起的startx不能进入问题之解决

来源:互联网 发布:吉林大学网络自助中心 编辑:程序博客网 时间:2024/05/21 15:39

在上一个问题ora--00845处理完成后,要到图形界面去看电影,却突然进不去了,切到ROOT是可以的。后来在网上找到这个方案!

就是用解决措施描述的就能解决。但解决思路中提到的console.lock没有找到就没有再试

linux的startx问题

    博客分类:
  • Linux
linuxstartx 

问题描述:

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

 

Java代码  收藏代码
  1. Fatal server error:  
  2. PAM authentication failed, cannot start X server.  
  3.         Perhaps you do not have console ownership?  
  4. When reporting a problem related to a server crash, please send  
  5. the full server output, not just the last messages.  
  6. Please report problems to xfree86@xfree86.org.  
  7. giving up.  
  8. xinit:  No such file or directory (errno 2):  unable to connect to X server  
  9. xinit:  No such process (errno 3):  Server error.  
  10. 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就可以进入图形化界面了。

0 0
原创粉丝点击