将普通用户修改成root权限后带来的

网上都是复制粘贴,解决不了问题

主要是因为安全模式下进去无法修改  .ICEauthority这个文件的用户和组
关键在于 mount -o / rw, remount /

参考这篇文章

How to fix .ICEauthority

Lifted from this post.

First you need to boot into recovery mode. If Ubuntu is the only system installed on your computer you need to hold Shift-Key while booting.

The recovery-mode entry on a single OS system

Select the "recovery mode"-entry which is usually the second one.

The menu from the recovery mode

  • Select "root Drop to root shell prompt".
  • Enter mount -o rw,remount / to make your system writeable

Repairing

Go to your home folder. Change USERNAME with you actual username:

cd /home/USERNAME

Check if .ICEAuthority is owned by you

ls -al .ICEauthority

If it isn't (like it is owned by root) change it to you. As above change USERNAME with you actual username:

sudo chown USERNAME:USERNAME .ICEauthority

If you there is no such file you need to recreate it. Change USERNAME yada yada ... :

touch .ICEauthority
sudo chown USERNAME:USERNAME .ICEauthority
sudo chmod 600 .ICEauthority

Type

reboot

to reboot your system.

Probale cause

You probably ran a graphical application with sudo as explained here.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值