0

Help I'm stuck. My login page was looping I checked online came here and most solutions didn't work for instance I didn't have the .Xauthority file listed when I ran the command ls -lah, so I stumbled on a solution which people said worked , chown -R $HOME:$HOME sudo so now if I type commands like ls -ld /usr /usr/bin I get drwxr-xr-x 10 Mickey Mickey and drwxr-xr-x 2 Mickey mickey, and my computer is in low graphics mode I can only access it through tty3. Please I don't want to loose my files.

Videonauth
  • 33,355
  • 17
  • 105
  • 120

1 Answers1

0

O.k. since you're able to TTY login do the following:

sudo chown -R <your-user-name>:<your-user-name> /home/<your-user-name>

After that make sure .Xauthority is renewed when you next log in delete it or rename it.

mv /home/<your-user-name>/<your-user-name>{,.disabled}

But if you're indeed changed the owner of all files around your computer to your user you might be better off, saving your files to an external drive and reinstalling since reworking the proper users would be a pain and give you for sure a big headache in the long run.

If you having troubles getting your files onto an other drive this way you as well can use a live USB/CD and choose try Ubuntu and go from there.

Videonauth
  • 33,355
  • 17
  • 105
  • 120