In the event that you can't get a working shell from your system, you may need to boot into the installation media (CD, USB) &amp; get a terminal from there.

If you mount your /home drive - you can do this from the desktop - then you can open a terminal, and get typing:

sudo -i
mount # This will show your drive as /dev/sda1 or similar
cd /media/ubuntu/sda1/home/you/ # or whatever it was, to get to your home directory..
chown you:you .Xauthority

In fact taking ownership of the whole directory might be useful, as chown -R you:you *

reboot

remove CD etc, &amp; we're done. Unless I'm right &amp; there's more :) - if you can't get a shell on your system there may well be.

Find out my user's group name without a terminal
I have an app that doesn't properly stop listening on a port.

How do I force it to stop so I can open the application again/use that port again?
