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

时间:2015-06-09 14:13:52   收藏:0   阅读:1559

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 就不会提示错误了。

 

完成相应操作后,重启系统即可。

原文:http://my.oschina.net/luqin/blog/464562

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!