0

I am using ubuntu 18.04 as a dual boot with my windows and the storage got full, which caused a login loop problem. I try to login into the system with the correct password but the screen flashes to black, couple of seconds later, I'm back at the login stage.

There is nothing wrong with my password since I can log in to my user account on the Terminal (CTRL+ALT+F1). Once there, I did a sudo apt update/upgrade in the hopes it'd fix something, but my system was up to date and it didn't solve anything after I rebooted.

My question: I have some important folders on my computer. How do I solve the loop login problem? Could I free up some space by deleting some files from my desktop? can I copy my files using the Terminal (CTRL+ALT+F1)?

So, what should I do to fix this login problem?

2 Answers2

1

If you've been starting graphic applications from the terminal using sudo, that's what probably caused your problem. Always use sudo -H.

  • boot to the GRUB menu
  • choose Advanced Options
  • choose Recovery mode
  • choose Root access
  • at the # prompt, type:

 - sudo mount -o remount,rw / # remount the disk as rw

Note: If you have a disk full problem, here's where you can manually delete unnecessary files.

 - cd /home/your_username # change directory

 - ls -al .*thority* # list some files

You should see something like this...

-rw------- 1 your_username your_username 407910 Nov  2 08:56 .ICEauthority
-rw------- 1 your_username your_username     58 Jun 23  2017 .Xauthority

If it DOES NOT show -rw------- then...

  • sudo chmod 600 .*thority* # change file protection

If it DOES SHOW root root then...

  • sudo chown your_username:your_username .*thority* # change file ownership

  • reboot # reboot the computer

Reboot and see if you can log in.

heynnema
  • 73,649
0

Since I knew I have a storage problem, I logged in using (CTRL+ALT+F3) and started to delete some files that I knew that will not need them. I rebooted the system, the problem was solved.