centos安装oracle,启动桌面的时候,使用oracle账户报错:
xauth: file /home/oracle/.serverauth.17047 does not exist
(EE)
Fatal server error:
(EE) PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console
原文地址:
https://chenjc-it.iteye.com/blog/1673912
内容备份如下:
解决思路:
检查/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就可以进入图形化界面了。