dscl . read /Users/testingGroup info
dscl . read /Groups/adminCreate a user
sudo dscl . -create /Users/testingAdd a user to the admin group
sudo dseditgroup -o edit -a testing -t user adminRemove a user from the admin group
sudo dseditgroup -o edit -d testing -t user adminDelete a user
sudo dscl . -delete /Users/testing
No comments:
Post a Comment