Skip to content

Instantly share code, notes, and snippets.

@utamas
Last active January 1, 2016 17:38
Show Gist options
  • Save utamas/2ae036ef073a0765b655 to your computer and use it in GitHub Desktop.
Save utamas/2ae036ef073a0765b655 to your computer and use it in GitHub Desktop.
createUser
create-user() {
local username=$1
local password=$2
sudo useradd -p $(openssl passwd -1 $password) -c "$username" -m -s /bin/bash $username
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment