Last active
January 1, 2016 17:38
-
-
Save utamas/2ae036ef073a0765b655 to your computer and use it in GitHub Desktop.
createUser
This file contains 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() { | |
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