-
-
Save keeleysam/1060089beca35ae77bc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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