secret
Created

  • Download Gist
powerusers.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.