Last active
January 1, 2016 01:39
-
-
Save tomcarlson/f94d6f9e2182d0b28cd9 to your computer and use it in GitHub Desktop.
Create a new user, put them in sudoer file, and give them a home directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #create user and give him a home directory | |
| useradd -m USERNAME | |
| passwd USERNAME | |
| #put user in sudoer file | |
| sudo usermod -aG sudo <username> | |
| #make sure user uses a bash shell, so .bashrc will work | |
| chsh -s /bin/bash <username> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment