I have an Amazon EC2 Machine running Ubuntu 10.04.
The default user, ubuntu\'s .bashrc seems to be behaving properly, but if I ssh or
If, in fact, your shell isn't bash, you can try to change it like so:
usermod -s /bin/bash mikey
If /bin/bash is the location of bash on that system.
Can't you use chsh to change shell? instead of hacking /etc/passwd?
In order to fix this on the permanent basis, change /etc/passwd
From:
kwilson:x:3042:3042::/home/jjson:/bin/sh
Change it to:
kwilson:x:3042:3042::/home/jjson:/bin/bash
I think your default shell is dash or sh and not bash in this case. echo $SHELL should show it, should it show /bin/sh, it might be a link, so check that ls -l /bin/sh doesn't link to some other shell.