In some Debian based distributions, the default login shell is no Bash, how can I change the login shell to Bash?
Well, there is a command for this, that’s chsh. To change the login shell, you can run it as this,
$ sudo chsh -s /bin/bash joseph
Make sure the new shell existed in /etc/shells,
$ cat /etc/shells # /etc/shells: valid login shells /bin/sh /bin/dash /bin/bash /bin/rbash /usr/bin/screen
For the experienced Linux system administrator, they may prefer to use VI to reset their login shell. Just change /bin/sh to /bin/bash for the specified user.
$ grep joseph /etc/passwd joseph:x:1000:27::/home/joseph:/bin/bash