I create a normal user account in ubuntu using "useradd" command, but the problem is that I have to type "bash" to launch the bash shell for this user account in both the console mode (in a tty, through ctrl+alt+Fn) and the remote mode (via ssh). The most important part of bash shell for me is the auto-completion function, so my question is that how I could make the bash shell launch automatically when logging into the account.
I use ubuntu 13.04 32bit version. I appreciate for any advice!
Best Answer
First of all, check if
useradd
shows a default value forSHELL
. To do that, issue:This will output something like:
These values are taken from
/etc/default/useradd
. Now, you have 2 solutions:/etc/default/useradd
, and change the value ofSHELL
, oruseradd -D -s /bin/bash
For more information see
man useradd
.