If you are looking to add users to custom groups, take a look at this Apple support document. However, occasionally there is a need to add a user to one of the system groups. In 10.4, this was done with NetInfo Manager, but that is gone in 10.5. After poking around a few websites, I wasn't able to find any tutorials on it, so hopefully this will help someone.
Everything here should be done on the command line (I looked for a GUI way to do this, but couldn't find one). First start dscl like this:
$ dscl localhost
Then cd to the Groups node:
cd /Local/Default/Groups
You can see all the groups using ls. Once you have found the group you are interested in, you can view all its properties with cat groupname. When you are ready to add a user (username) to the group (groupname), use the following command:
append groupname GroupMembership username
If you want to remove a member from a group, use the following command (be careful!):
delete groupname GroupMembership username
When you are finished with your changes, exit dscl by typing exit.
•
[26,241 views]

