Command Details

$ sudo dseditgroup -o edit -a username -t user admin

Add a user to the admin group.