Skip to content

Instantly share code, notes, and snippets.

@djk29a
Created March 31, 2016 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djk29a/2210dbaa3685b2a1a727135f8a1f8c76 to your computer and use it in GitHub Desktop.
Save djk29a/2210dbaa3685b2a1a727135f8a1f8c76 to your computer and use it in GitHub Desktop.
Add users in a list
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