Specifications
104 Chapter 8 Managing User and Group Accounts
6 Specify the new user’s default UNIX shell:
> create
ajohnson
UserShell /bin/bash
7 Specify the user ID, replacing 1234 with the new user’s ID:
> create
ajohnson
UniqueID
1234
8 Specify the long name for the new user account, replacing Anne Johnson with the
actual long name:
> create
ajohnson
RealName "
Anne Johnson
"
9 Review the settings of your new user account by entering the following command,
replacing ajohnson with the new user account’s short name as before:
> read
ajohnson
dscl displays the settings for your new user account, similar to the following output:
dsAttrTypeNative:apple-generateduid:1B2A3456-E7C8-9EC1-2345-678D912E3456
dsAttrTypeNative:cn: anne johnson
dsAttrTypeNative:gidNumber: 99
dsAttrTypeNative:HomeDirectory: /LDAPv3/
ipaddress
/Users/ajohnson
dsAttrTypeNative:loginShell: /bin/bash
dsAttrTypeNative:objectClass: inetOrgPerson posixAccount shadowAccount
apple-user extensible object organizationalPerson top person
dsAttrTypeNative:sn: ajohnson
dsAttrTypeNative:uid: ajohnson
dsAttrTypeNative:uidNumber: 1234
AppleMetaNodeLocation: /LDAPv3/
ipaddress
GeneratedUID:1B2A3456-E7C8-9EC1-2345-678D912E3456
LastName: johnson
NFSHomeDirectory: /LDAPv3/
ipaddress
/Users/ajohnson
PasswordPlus:********
PrimaryGroupID: 99
RealName: Anne Johnson
RecordName: ajohnson anne
RecordType: dsRecTypeStandard:Users
UniqueID: 1234
UserShell: /bin/bash
10 Assign a password to the account by entering the following command, replacing
ajohnson with the new account’s short name:
> passwd
ajohnson
11 Quit dscl by entering:
> quit
The dscl tool displays Goodbye, and then the standard shell prompt appears.
12 Use the ssh tool to connect to the server where you are hosting home folders:
$ ssh -l
username server