This question already has an answer here:

I am using Dell inspiron 3558, after opening the laptop, when I put password in the login screen the same screen appears after two or three seconds. Please tell me what should I do.

marked as duplicate by αғsнιη, Eric Carvalho, David Foerster, karel, muru Nov 8 '16 at 15:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


In terminal, type (use the correct username):

cd /home/your_username
ls -l .ICEauthority # (that's a lower case L)
ls -l .Xauthority   # (that's a lower case L)

If either ls command returns one of these (where it shows root, instead of your username):

-rw------- 1 root root 242476 Nov  6 12:48 .ICEauthority
-rw------- 1 root root 58     Nov  6 12:48 .Xauthority

Then type (changing your_username to the correct username):

sudo chown your_username:your_username .ICEauthority


sudo chown your_username:your_username .Xauthority

I had the same issue before. It may be the same case as described in question What represent .Xauthority file?.


sudo chown your_username .Xauthority

And then try to log in again.

Not the answer you're looking for? Browse other questions tagged or ask your own question.