Created
March 31, 2016 20:53
-
-
Save djk29a/2210dbaa3685b2a1a727135f8a1f8c76 to your computer and use it in GitHub Desktop.
Add users in a list
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
for u in username1 username2; do | |
# Ok, the groups are probably off but you get the point | |
useradd -p $(openssl passwd -1 ABC123def) -G primarygroup -g additionalgroups ${u} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment