For some reason the $HOME is not being set during a telnet login. It does work when I su from root for example and set up another bash shell