특정 그룹의 멤버 확인
dscl . -read /Groups/ GroupMembership
그룹에 멤버 포함
sudo dscl . append /Groups/<그룹> GroupMembership <유저>
~~(관련 내용)~~
For those who are looking for the same answer to newer versions of Mac OS,
I've found this: To add a user to a group, you need this command ($USER is the current logged-in user) :
$ sudo dscl . append /Groups/wheel GroupMembership $USER
I was trying to add my user to the wheel group,
to be able to manipulate the /Library/WebServer/Documents folder.
Besides that, I had to change the permissions to that folder,
as by default it is 755. I've changed it to 775 with:
$ sudo chmod -R 775 /Library/WebServer/Documents
~~~~~~~~~~~~
sudo dscl . append /Groups/staff GroupMembership wheel