Skip to content

Instantly share code, notes, and snippets.

@tomcarlson
Last active January 1, 2016 01:39
Show Gist options
  • Select an option

  • Save tomcarlson/f94d6f9e2182d0b28cd9 to your computer and use it in GitHub Desktop.

Select an option

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
#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