Apple Xserve Up Mac OS X Server Specifications Page 113

  • Download
  • Add to my manuals
  • Print
  • Page
    / 329
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 112
Chapter 8 Managing User and Group Accounts 113
Adding a User to a Group
You can add users to a group using the dscl tool.
To add a user to a group:
1 Start the dscl tool in interactive mode, specifying the computer you are using as the
source of directory service data:
$ dscl localhost
>
2 Change the current folder to /LDAPv3/ipaddress/Groups by entering the path at the
prompt:
> cd /LDAPv3/
ipaddress
/Groups
Replace
ipaddress
with the IP address of your directory server.
3 Authenticate as an administrator by entering the following command, replacing
adminusername with your administrator user name, and entering your administrator
password when prompted:
> auth
adminusername
4 Add the user to the group by entering the following command, replacing
groupPath
with the groups path relative to the current folder, and
userName
with the users short
name:
> append
groupPath
GroupMembership
userName
For example, if the groups folder is in the /Groups folder, replace
groupPath
with the
groups short name. However, if the groups folder is in the /Groups/building1/ folder,
replace
groupPath
with building1/shortName, where shortName is the groups short
name.
5 Review the settings of the group by entering the following command, replacing
groupShortName
with the group account’s short name:
> read
groupShortName
dscl displays the settings for the group account, similar to the following output:
dsAttrTypeNative:apple-generateduid:4B3A5678-E9C1-2EC3-4567-891D234E5678
dsAttrTypeNative:cn: officegroup
dsAttrTypeNative:gidNumber: 600
dsAttrTypeNative:memberUid: mchen ajohnson bmiller
dsAttrTypeNative:objectClass: posixGroup apple-group extensibleObject top
AppleMetaNodeLocation: /LDAPv3/ipaddress
GeneratedUID:4B3A5678-E9C1-2EC3-4567-891D234E5678
GroupMembership: mchen ajohnson bmiller
Member: mchen ajohnson bmiller
PasswordPlus:********
PrimaryGroupID: 600
RecordName: officegroup
RecordType: dsRecTypeStandard:Groups
Page view 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 328 329

Comments to this Manuals

No comments