I faced this problem when I created a new account using command line where the default shell of my new account is /bin/sh. After googling around, I found 2 useful solutions which are listed below:
1. Change user entry in /etc/passwd
a) edit /etc/passwd using any editor
- $ vi /etc/passwd
- foo:x:1001:1001::/home/foo:/bin/sh
- foo:x:1001:1001::/home/foo:/bin/bash
e) Logout and login back
2. Use chsh command
a) type chsh
- $ chsh
c) This screen will appear
- Enter the new value, or press ENTER for the default
Login Shell [/bin/sh]:
Done :)