Skip to content

Instantly share code, notes, and snippets.

@junaidk
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junaidk/79403dbe71607e6799ec to your computer and use it in GitHub Desktop.
Save junaidk/79403dbe71607e6799ec to your computer and use it in GitHub Desktop.
create user linux

create a new user

create user and add in group
sudo useradd -G 1000 user
make directory for user
mkdir /home/user

set permissions for that user

sudo chown 1000:user -R /home/user 
chown -R user:user /home/user

set shell for new user

chsh -s /bin/bash user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment