Creating a user account with a home directory and setting the default shell as BASH, can be done as follows, add “sudo” to the front as required.
useradd -s /bin/bash -d /home/bobsmith/ -m bobsmith
passwd bobsmith
If you need your account to have sudo rights, you can specify the “sudo” group upon creation, as follows:
useradd -s /bin/bash -d /home/bobsmith/ -m -G sudo bobsmith
passwd bobsmith
If you need to add a user’s home directory after the fact you can do so by running as sudo:
mkhomedir_helper