Created
February 16, 2016 00:04
-
-
Save synackme/93be29d1ffd1e194a173 to your computer and use it in GitHub Desktop.
Add a user to a group from the command line. Add user to 'admin' and 'wheel' groups.
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
{OS X version of usermod} | |
{osx_add_user_to_group.sh} | |
{filecount} | |
{mac_add_user2group.sh} | |
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