Last active
March 11, 2019 15:55
-
-
Save shpaker/e3c95026e68edf59d136aad620705787 to your computer and use it in GitHub Desktop.
Create user with password
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
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