I have recently installed Raspbian into a Raspberry Pi. As part of the installation process I changed the user name and group from the default (pi) to my own (let's call it user) using usermod and groupmod. I also moved the home directory (/home/pi) to the new user name (/home/user) using usermod. Everything works fine except that when I login using SSH instead of landing the new user directory (/home/user) I end up at the home directory (/home). Any idea why this may be happening? Any solution? It's not a big deal but it is confusing me.
The directory /home/user exists with permissions 755. In addition to that the /etc/passwd file contains an entry that looks like the following:
user:x:1000:1000:User:/home/user:/bin/bash To me everything looks fine, but still when I login from ssh I get a prompt that looks like user@raspberrypi /home $.
~/.bash_profile,~/.profile,~/.bashrc(if they exist)? If you runssh raspberrypi pwdandssh raspberrypi 'echo ~', what does it show?/home/user(where user is the actual username). The contents of the other files (they do exist) is the default that comes with Raspberry Pi.