Skip to content

Instantly share code, notes, and snippets.

@shpaker
Last active March 11, 2019 15:55
Show Gist options
  • Save shpaker/e3c95026e68edf59d136aad620705787 to your computer and use it in GitHub Desktop.
Save shpaker/e3c95026e68edf59d136aad620705787 to your computer and use it in GitHub Desktop.
Create user with password
ENCRYPTED_PASSWORD=$(openssl passwd -crypt secure_password) && \
useradd --create-home \
--groups sudo \
--password ${ENCRYPTED_PASSWORD} \
user1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment