Monday, 18 January 2016

Login Loop Solution Ubuntu

Have you ever faced the problem of a login loop in Ubuntu Linux, in which you are stuck at the login page again and again? Then read on.
This is a guest post by Shikhar Verma, an IT enthusiast who likes to tweak things just like us ;)

Ubuntu Login Loop: The Problem


Sometimes, due to an update or some other problem, you may be stuck in a situation in which you can’t get past the login page. Whenever you type in the password, you are again presented with the same page.

 

ubuntu login loop

 

 

The solution


To solve this problem, follow these steps:

1. First, when the login page is shown, you have to open tty (command line interface) by pressing Ctrl+Alt+F1 .
2. Then enter the username through which you log in to the computer and enter the corresponding password.

3. Now enter the following command:->
sudo mv ~/.Xauthority ~/.Xauthority.backup

And enter your password.

ubuntu login loop
What it does is, it renames ".Xauthority" file that stores credentials used for authentication of X sessions (basically a cookie), to ".Xauthority.backup". Renaming this file causes xauth to create a new ".Xauthority" file, thereby re-authenticating.

4. Then enter this command:->
sudo service lightdm restart

This will restart the Ubuntu display manager (responsible for starting the user’s desktop environment, graphical system and logging the user ) which is lightdm.

5. Then your logging screen appears but this time,there's no login  loop . ENJOY :D

No comments:

Post a Comment