can not log in, error: could not update ICEauthority file

Asked by Ricardo Manuel Ribeiro Duarte

I've ubuntu 11.10 i switch on the pc i enter(as admin) my password and returns this message

"could not update ICEauthority file /home/ricardo/.ICEauthority"

and i've to end session (my ubuntu was instaled from win7) but i can log in as guest,

any ideias how can i log in as admin again?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubuntu-meta Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Boot to root recovery mode (hold shift at boot and select recovery mode, then select root). Now run:

chown -R ricardo:ricardo /home/ricardo; reboot

Should now be ok. This is caused by using sudo for GUI apps.

Revision history for this message
Ricardo Manuel Ribeiro Duarte (meteoros9) said :
#2

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

use gksudo with graphical apps. Avoid running:

sudo gedit

etc or you'll cause the same issue. This is why gksudo exists (kdsu in kde)