A return visit to the login loop ...

A return visit to the login loop ...

Postby Swarfendor437 » Mon Dec 03, 2018 2:57 am

The 'de facto' solution usually is to boot into advanced | recovery mode then from the recovery memory launch 'root' (terminal) then enter:

Code: Select all
mount -n -o remount,rw /
then press Enter.

Code: Select all
passwd your_username
then enter new password, shutdown and reboot.

If this does not work, and if you have Timeshift installed (can't remember if Zorin includes this) then boot from live DVD/memory stick and point to where the snapshots are held and see if that works. If it doesn't try one of the following 3 options (acknowledgements to https://www.linuxslaves.com/2016/05/3-w ... -loop.html? )

"Method #1 Fix Ubuntu 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.

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

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


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

Code: Select all
['sudo' if not currently 'root'] chown username:username .Xauthority


Now reboot and see if you can log in - if not:

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

Code: Select all
mv .Xauthority .Xauthority.bak


Now reboot and try re-logging in.

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

Code: Select all
# 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 :

Code: Select all
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 :

Code: Select all
sudo apt-get purge lightdm
sudo apt-get install lightdm
dpkg-reconfigure lightdm


Step 2 - Once reconfigured, now reboot."

[I have modified the instructions as it is not clear at which point you become 'root' using the 'sudo' command - if the last element of a terminal prompt is '#' then you are in the terminal as 'root' with elevated privileges. If the last element of the command prompt is '$' you are a standard user, and not 'root'. I have written this tutorial experiencing just this and used Method 1 which solved the issue for me in FerenOS]
https://vimeo.com/user15592214
https://trisquel.info/
https://www.opendesktop.org/member/257685/

Machine: ASUS X470-PRO, AMD Ryzen 7 X1700 8 Core, 16 Gb RAM, nVidia Graphics GT620 (2 Gb)
User avatar
Swarfendor437
 
Posts: 9093
Joined: Wed Sep 18, 2013 5:51 pm

Return to How-tos and Tutorials

Who is online

Users browsing this forum: No registered users and 9 guests