How Do You Add a User in Linux?
Contents How Do I Add a User to My Home Directory in Linux? Creating a User Account Using Useradd Command on Ubuntu -S /Bin/Bash – Set /Bin/Bash as Login Shell...
Contents
How do I add a user to my home directory in Linux?
Creating a user account using useradd command on Ubuntu
- -s /bin/bash – Set /bin/bash as login shell of the new account.
- -d /home/vivek/ – Set /home/vivek/ as home directory of the new Ubuntu account.
- -m – Create the user’s home directory.
- -G sudo – Make sure vivek user can sudo i.e. give admin access to the new account.
Must Read
How do I add a user in terminal?
Type “sudo dscl . -create /Users/username” and press “Enter.” Replace “username” with a one-word name to identify the user. Replace all instances of “username” in future steps with the same one-word name. Enter your computer’s administrator password and press “Enter” again.