
If you can’t get into your Ubuntu desktop as the admin but you can log into as a guest, then this may work for you. Basically, you have to delete or remove a hidden file called .Xauthority or Xauthority.old. Once you find the piece of shit file, all you have to is remove it and restart.
- At the login screen, press Ctrl+Alt+F1 to switch to console mode
-
sudo su
-
find /home -name .Xauthority
-
sudo rm /home/username/.Xauthority
-
sudo shutdown -r now
