在上一个问题ora--00845处理完成后,要到图形界面去看电影,却突然进不去了,切到ROOT是可以的。后来在网上找到这个方案!
就是用解决措施描述的就能解决。但解决思路中提到的console.lock没有找到就没有再试
linux的startx问题
- 博客分类:
- Linux
问题描述:
今天突然发现除了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 send
- the 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 server
- xinit: 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就可以进入图形化界面了。