Ubuntu开机报错:could not update ICEauthority file /home/user/.ICEauthority

来源:互联网 发布:萧山区政府网络问政 编辑:程序博客网 时间:2024/05/17 01:35

        十一前把产品给客户用了一下,估计是程序有bug,居然系统挂了两次,然后开机就提示:

        could not update ICEauthority file /home/u/.ICEauthority

        点击确定后,gnome还是可以启动的,但每次开机弹出这个警告还是挺麻烦的,在网上搜索了一些资料,按照如下解决方法,终于把问题解决。


         一、

 

        代码:sudo chown $USER:$USER /home/$USER/.ICEauthority
        sudo chmod 644 /home/$USER/.ICEauthority


        如果不行,下一种方法。

        二、
 

        代码:sudo chown user -R /home/user(此处user为你的用户名)


        我这次出现的问题就是这个,/home/u目录的用户变成了root,所以无法更新ICE导致开机警告,按照上面的修改就可以了。

        如果也不行,下一种方法。

        三、
 

        代码:解决办法:
        首先,要查看/home/目录的用户和组是不是属于root用户的,这个目录必须是属于root用户和root组的

        # ls -l /home/用户名
        drwxr-xr-x 4 root root 4096 2008-05-31 10:40 home

       如果不是的话,变更组为root,用户为root
       # sudo chgrp -R root /home //改变组为root
       # sudo chown -R root /home //改变用户为root

       其次,变更/home目录的权限为755
       # sudo chmod 755 /home

       再次,变更/home/用户名/.dmrc权限为644
       # sudo chmod 600 /home/用户名/.ICEauthority


原创粉丝点击