Occasionally, when I log into my Ubuntu server, the prompt says
pwd at this point returns
echo $HOME returns
/home/jon as expected. If I
cd then I get taken to my actual home folder.
What could be the reasons for this? It doesn't seem to cause any problems, apart from public key authentication with SSH (presumably if it can't see the home folder then it can't get to the
.ssh folder inside it). It seems to be consistent until restart - that is, every new shell will do this, until I restart, when it will either work normally or not.
This has been happening for at least the last few release upgrades, so not related to Oneiric. I selected the installer option to encrypt my home folder.