Created
March 17, 2017 10:01
-
-
Save Morley93/d974b6239f169687c85a1921eff28d46 to your computer and use it in GitHub Desktop.
createUsers.sh
This file contains hidden or 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/sh | |
# Creates some users from a file with a default password | |
xargs -n1 sudo useradd -g users -m -s /bin/bash < $1 | |
xargs -n1 -I{} echo "{}:Password1" < users.txt | sudo chpasswd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment