0

Suddenly, I'm unable to login to Ubuntu. When I login. I get to this lock screen:-

enter image description here

This is copied from google. What I get is a faded version of this prompt. The only thing I did was a visudo to give root permissions to my user and an apt-get install lxde.

I was able to use LXDE and all other environments until I restarted.

1 Answers1

2

Try the following steps,

press CTRL + ALT + F1

Run the command ls -lah

If you see the following line(or something very similar) in the output continue with the steps below.

-rw------- 1 root root 51 May 23 21:37 .Xauthority

run the command

chown username:username .Xauthority

press ALT + F7 and try to login to your system again.

I had a similar problem and this worked for me. Hope it helps.

For more information, see this answer

Rumesh
  • 1,449