您的位置:首页 > 运维架构 > Linux

linux重新启动错误 could not update ICEauthority file

2015-06-09 11:56 771 查看

linux重新启动错误 could not update ICEauthority file

linux重新启动异常 could not update ICEauthority file

linux启动时报Could not update ICEauthority file /var/lib/gdm/.ICEauthority

首先需要通过linux单用户模式登陆该系统

进入单用户模式:
grub 进入启动画面之后,敲入“e”,把光标移动到kernel ...那一行,再敲入“e”,在kernel 一行的最后加上空格single,回车敲入“b”,启动系统,即进入单用户模式。

出现此错误的原因是由于/var/lib/gdm/.ICEauthority下的文件被更改所引起的。我们只要操作以下命令即可:

[root@hsdb02 tmp]# chown -R root:root /var

[root@hsdb02 tmp]# chown -R gdm: /var/lib/gdm

如果操作此命令chown -R gdm: /var/lib/gdm 提示错误,则使用以下命令

[root@hsdb02 tmp]# cd /var/lib/gdm

[root@hsdb02 tmp]#lsattr .ICEauthority #此命令为查看此文件所具有的隐藏属性,然后次用chattr命令更改属性。

eg:这个文件的隐藏属性是i,则用命令

[root@hsdb02 tmp]# chattr -i .ICEauthority

最后在执行 [root@hsdb02 tmp]# chown -R gdm: /var/lib/gdm 就不会提示错误了。

完成相应操作后,重启系统即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: