Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#!/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.