Specifications

Chapter 8 Managing User and Group Accounts 101
To create a local administrator user with a specific UID:
$ sudo /System/Library/ServerSetup/serversetup -createUserWithID
fullname
shortname
password
uid
Enter the name, short name, password, and UID in the order shown. If the full name
includes spaces, enter it in quotes.
The command displays a 0 if successful, or a 1 if the full name, short name, or UID is
already in use or if the UID you specified is less than 100.
To create a local administrator user with a specific UID and home folder:
$ sudo /System/Library/ServerSetup/serversetup -createUserWithIDIP
fullname
shortname
password
uid homedirpath
Enter the name, short name, password, and UID in the order shown. If the full name
includes spaces, enter it in quotes.
The command displays a 0 if successful, or a 1 if the full name, short name, or UID is
already in use or if the UID you specified is less than 100.
Creating a Domain Administrator User Account
To create a domain administrator user account for a networked directory, you must
have a domain administrator user account.
Before starting, you should have a nonadministrator user account that you want to give
domain administrator privileges to. For instructions on creating nonadministrator user
accounts, see “Creating a Nonadministrator User Account” on page 102.
To create a domain administrator user account:
1 Start the dscl tool in interactive mode, specifying the computer you are using as the
source of directory service data.
Use the dscl tool to create a domain administrator user account.
$ dscl localhost
>
In interactive mode, the dscl tool displays the current folder in the directory domain
(not the current folder in the file system) and a “>” character as a prompt.
2 After you connect to the directory, choose the directory domain and change the
current folder to LDAPv3/ipaddress/Groups:
> cd LDAPv3/
ipaddress
/Groups
Replace
ipaddress
with the IP address of your directory server.