码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2015-06-09 14:15:17      阅读:355      评论:0      收藏:0      [点我收藏+]

标签:

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

 

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

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

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!