Last active
February 16, 2016 00:23
-
-
Save synackme/fb377bbec30f32627f1c to your computer and use it in GitHub Desktop.
add user to group on osx
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 | |
sudo dseditgroup -o edit -a $username_to_add -t user admin | |
sudo dseditgroup -o edit -a $username_to_add -t user wheel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment