Created
August 20, 2018 07:53
-
-
Save geektoni/be5334493d60776c41787b493a29e89c to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
USER=$1 | |
PASS=$2 | |
usermod --password $(echo $PASS | openssl passwd -1 -stdin) $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment