Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@keeleysam /powerusers.sh secret
Created May 23, 2013

#!/bin/sh
#############################################################################
# #
# Power Users group example #
# Version 1.0, 2013-05-21 #
# Samuel Keeley #
# #
# Creates the group 'powerusers', adds the admin group to it, and adds #
# the sample account 'teacher' #
# #
#############################################################################
## create powerusers group
sudo dseditgroup -o create -r "Power Users" powerusers
## add admin group to powerusers group
sudo dseditgroup -o edit -a admin -t group powerusers
## add user 'teacher' to powerusers group
sudo dseditgroup -o edit -a teacher -t user powerusers
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.