歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Linux_bug收集_linux重新啟動錯誤 could not update ICEauthority file

Linux_bug收集_linux重新啟動錯誤 could not update ICEauthority file

日期:2017/3/3 12:42:01   编辑:Linux技術

linux啟動時報Could not update ICEauthority file /var/lib/gdm/.ICEauthority

錯誤原因:出現此錯誤的原因是由於/var/lib/gdm/.ICEauthority下的文件被更改所引起的。我們只要按如下操作即可:

解決辦法:

1 首先需要通過linux單用戶模式登陸該系統

進入單用戶模式

出現這個畫面

按 e 鍵

顯示

繼續按e鍵

顯示

**按上下鍵選擇 kernel 那一行

按e鍵 進入後 追加 空格+single**

如圖:

**回車確認

按 b 鍵 啟動進入單用戶模式**

2. 修改權限

[code][root@www tmp]# chown -R root:root /var  
[root@www tmp]# chown -R gdm: /var/lib/gdm
如果操作此命令
chown -R gdm: /var/lib/gdm
提示錯誤,則使用以下命令

[code][root@www tmp]# cd /var/lib/gdm 

[root@www tmp]#lsattr .ICEauthority
#此命令為查看此文件所具有的隱藏屬性,然後次用chattr命令更改屬性。

eg:這個文件的隱藏屬性是i,則用命令

[code][root@www tmp]# chattr -i .ICEauthority
最後在執行

[code][root@hsdb02 tmp]# chown -R gdm: /var/lib/gdm
就不會提示錯誤了。

[code][root@hsdb02 tmp]# reboot
完成相應操作後,重啟系統即可。

Copyright © Linux教程網 All Rights Reserved