折雨的天空

新浪微薄腾讯微薄

最新碎语:最近霉到了住。哎。。。

您的位置:折雨的天空 >其他技术> xauth: file /home/oracle/.serverauth.17047 does not exist

xauth: file /home/oracle/.serverauth.17047 does not exist

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

------------正 文 已 结 束, 感 谢 您 的 阅 读 (折雨的天空)--------------------

转载请注明本文标题和链接:《xauth: file /home/oracle/.serverauth.17047 does not exist

奖励一下

取消

分享不易,烦请有多多打赏,如您也困难,点击右边关闭即可!

扫码支持
扫码打赏,5元,10元,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

-秒后自动关闭,如已打赏,或者不愿打赏,请点击右上角关闭图标。

发表评论

路人甲 表情
看不清楚?点图切换