-1

When I enter my username and password I am looped back to the login screen again. I went to the shell screen and mv .Xauthority . Xauthority.bak is not working as it is saying /bin:/usr/bin is not included in the path environment variable.

Utkarsh
  • 691

1 Answers1

0

We don't have a lot of information to go on, but lets try this...

  • 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
    • cd /home/bak/utkarsh # change directory
    • ls -al .*thority* # list some files

You should see something like this...

-rw------- 1 utkarsh utkarsh 407910 Nov  2 08:56 .ICEauthority
-rw------- 1 utkarsh utkarsh     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 utkarsh:utkarsh .*thority* # change file ownership

Note: change utkarsh to your correct username

  • reboot # reboot the computer

Reboot and see if you can log in.

heynnema
  • 73,649