折雨的天空
xauth: file /home/oracle/.serverauth.17047 does not exist
2019-3-8 我好笨


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



发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容