Site Navigation

Jan 15, 2013

Listing Groups and Adding Users to Groups

OS X pictureBeen doing a little OS X administration this week. I needed to add a user to a group and also check to see if that user is indeed added to the group. Here are the commands I found.

Add a User
To add a user to group wheel type:
sudo dseditgroup -o edit -a usernametoadd -t user wheel

List Users in a Group
To list the users in a group use:
dscacheutil -q group -a name wheel
Post a Comment

Favorite Links Feed