KEuVUe149Y7e320zVKJqOjpo0SGIHzz7ueew9qo8
Bookmark

3 Ways To Fix Ubuntu Gets Stuck in Login Screen Loop

How to solve can't get past ubuntu login page - Sometimes, due to an update or some other problems, you may be stuck in a situation in which you can not get past the login screen.

And a few days ago I'm facing this issue with my Ubuntu. Every time I tried to log in into my desktop, it it returned to the login screen again, again and again. So I write this tips for which have same problem. 

We have three choices of solutions can't get past Ubuntu desktop login screen. I'll write all for you, here we go!

Method #1 Fix Ubuntu login screen loop

Solved: Ubuntu Gets Stuck in Login Screen Loop

The first is quite simple. The file is located under the current user's home directory. All you will have to do is change the owner of .Xauthority file.

Sugested read :

What's .Xauthority?

Refers from Ask Ubuntu the .Xauthority (not .xAuthority) file can be found in each user home directory and is used to store credentials in cookies used by xauth for authentication of X sessions.

Once an X session is started, the cookie is used to authenticate connections to that specific display. You can find more info on X authentication and X authority in the xauth man pages (type man xauth in a terminal).

Step 1 - At login time, use Ctrl+Alt+F3 to switch and access the command line interface mode.

Step 2 - Login into the shell using your username and your password. In this case, username will be your username you set when you installed Ubuntu.

Step 3 - Once logged in, now run ls -lah to view list directory contents. Look for the line that ends with .Xauthority

# ls -lah
-rw-------  1 root root   53 Nov 29 10:19 .Xauthority

Step 4 - You need to do chown. Type and rung the following command :

chown username:username .Xauthority

Step 5 - If it does not work, try renaming.

mv .Xauthority .Xauthority.bak

Now reboot and try re-logging in. Cheers! This one is works on my Ubuntu 16.04 LTS Xenial Xerus. If the above steps didn't work for you, then go and try the second solution

Method #2 How to Fix Ubuntu login screen loop

Step 1 - Run ls -ld /tmp. Check for the first 10 letters in the left: they should read exactly so: drwxrwxrwt

# ls -ld /tmp
drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp

Step 2 - You may need to changing permission. Run the command below :

sudo chmod a+wt /tmp

Method #3 How to Fix Ubuntu login screen loop

If even both did not work for you, try the last one! Please make sure you are connected to active internet. Check this out!

Step 1- Uninstall and reinstall Ubuntu lightdm. Run the following :

sudo apt-get purge lightdm
sudo apt-get install lightdm
dpkg-reconfigure lightdm

Step 2 - Once reconfigured, now reboot.

Hope the solutions above helpful and solved infinite login loop problems on your Ubuntu. Refers to many sites, this should works for Ubuntu 12.04 / 12.10 / 14.04 / 14.10 / 15.04 / 15,10 and the latest version 16.04.

That's all I can write about a easy troubleshooting tutorials Ubuntu stuck on login screen. I hope it was helpful and you've enjoyed reading this tutorial as much I’ve enjoyed writing it and thanks for visiting us.