7
53
7Working With Users and Groups
Commands you can use to set up and manage users and groups in Mac OS X Server.Creating Server Administrator Users
You can use the serversetup command to create administrator users for a server. To
create regular users, see “Importing Users and Groups” on page 54.
To create a user:
$ serversetup -createUser fullname shortname password
The name, short name, and password must be typed in the order shown. If the full
name includes spaces, type it in quotes.
The command displays a 1 if the full name or short name is already in use.
To create a user with a specific UID:
$ serversetup -createUserWithID fullname shortname password userid
The name, short name, password, and UID must be typed in the order shown. If the full
name includes spaces, type it in quotes.
The command displays 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 user with a specific UID and home directory:
$ serversetup -createUserWithIDIP fullname shortname password userid
homedirpath
The name, short name, password, and UID must be typed in the order shown. If the full
name includes spaces, type it in quotes.
The command displays a 1 if the full name, short name, or UID is already in use or if the
UID you specified is less than 100.
LL2354.book Page 53 Monday, October 20, 2003 9:47 AM