4View the current members of the group by entering the following (replacing officegroup with the group account’s short name):

> read officegroup

dscl displays the settings for the group account, similar to the following output where the group named officegroup has users mchen, ajohnson, and bmiller as members:

apple-generateduid:4B3A5678-E9C1-2EC3-4567-891D234E5678 cn: officegroup

gidNumber: 600

MemberUid: mchen ajohnson bmiller

objectClass: posixGroup apple-group extensibleObject top

AppleMetaNodeLocation: /LDAPv3/ipaddress

GeneratedUID:4B3A5678-E9C1-2EC3-4567-891D234E5678

GroupMembers:2B3A4567-E8C9-9EC2-3456-789D123E4567 1B2A3456-E7C8-9EC1-2345-

678D912E3456 8B9A1234-E5C6-7EC8-9123-456D78E9123 GroupMembership: mchen ajohnson bmiller

Member: mchen ajohnson bmiller

PasswordPlus:********

PrimaryGroupID: 600

RecordName: officegroup

RecordType: dsRecTypeStandard:Groups

5Remove the user by entering the following command, replacing ajohnson with the short name of the user account, ajguid with ajohnson’s GUID, and officegroup with the short name of the group account:

>delete officegroup GroupMembership ajohnson

>delete officegroup GroupMembership ajguid

6Review the new settings of the group:

> read officegroup

dscl displays the settings for the group, showing that the user you removed is no longer a group member, similar to the following output:

apple-generateduid:4B3A5678-E9C1-2EC3-4567-891D234E5678 cn: officegroup

gidNumber: 600

MemberUid: mchen bmiller

objectClass: posixGroup apple-group extensibleObject top

AppleMetaNodeLocation: /LDAPv3/ipaddress

GeneratedUID:4B3A5678-E9C1-2EC3-4567-891D234E5678

GroupMembers:2B3A4567-E8C9-9EC2-3456-789D123E4567 8B9A1234-E5C6-7EC8-9123-

456D78E9123 GroupMembership: mchen bmiller Member: mchen bmiller PasswordPlus:******** PrimaryGroupID: 600 RecordName: officegroup RecordType: dsRecTypeStandard:Groups

Chapter 8 Working with Users and Groups

115

Page 115
Image 115
Apple Mac OS X Server manual Review the new settings of the group