Can anyone help me, I cant log-in to my laptop. Looks like its just looping back to the login screen.
what may have caused it, I was working on an AWS EC2 lab and after setting up an instance i downloaded the PEM/PPK saved it in a folder. Then I had to open the terminal and and type chmod 600 ~/ <pathToPem> see Image below, I got an error so I put sudo chmod 600 ~/ pathname. (nearly sure this is why I'm getting my problem) when I ran the second command It couldn't find the path and when I checked my files/folder in home a lot had disappeared? so at that stag I logged out and tried to log back in and just seem to be stuck in a loop.
Can anyone help me get back in and undo what I have done. I can get the text log in and get in that way but don't seem to have permissions to do anything.
tried to run ls -la .Xauthority and get ls: cannot access .Xauthority: No such file or directory.