Skip to content

Instantly share code, notes, and snippets.

@nmccready
Created October 25, 2013 15:48
Show Gist options
  • Save nmccready/7156848 to your computer and use it in GitHub Desktop.
Save nmccready/7156848 to your computer and use it in GitHub Desktop.
adding a user to a group in osx
#!/bin/sh
user=${1?need user name!}
group=${2?need group name!}
/usr/sbin/dseditgroup -o edit -a "$user" -t user "$group"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment