Create a Linux User Account (Ubuntu)

Linux Random

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

1 thought on “Create a Linux User Account (Ubuntu)

Leave a Reply

Your email address will not be published. Required fields are marked *