Creating a User’s Home Directory

Normally, you can create a user's home directory by clicking the Create Home Now button on the Homes pane of Workgroup Manager. You can also create home directory folders using the createhomedir tool. Otherwise, Mac OS X Server creates the user’s home directory when the user logs in for the first time.

You can use createhomedir to create

A home directory for a particular user (-uoption)

Home directories for all users in a directory domain (-nor -loption)

Home directories for all users in all domains in the directory search path (-aoption)

For more information, type man createhomedir to view the man page.

In all cases, the home directories are created on the server where you run the tool.

To create a home directory for a particular user:

$ createhomedir [(-a-l-n domain)] -u userid

To create a home directory for users in the local domain:

$ createhomedir -l

To create a home directory for users in the local domain:

$ createhomedir [(-a-l-n domain)] -u userid

You can also create a user’s home directory using the serversetup tool.

To create a home directory for a particular user:

$ serversetup -createHomedir userid

The command displays a 1 if the user ID you specify doesn’t exist.

Mounting a User’s Home Directory

You can use the mnthome command to mount a user’s home directory. For more information, see the man page.

Creating a Group Folder

You can use the CreateGroupFolder command to set up group folders. For more information see the man page.

Checking a User’s Administrator Privileges

To see if a user is a server administrator:

$ serversetup -isAdministrator shortname

The command displays a 0 if the user has administrator privileges, 0 if the user doesn’t.

Chapter 7 Working With Users and Groups

63

Page 63
Image 63
Apple oxs manual Creating a User’s Home Directory, Creating a Group Folder, Checking a User’s Administrator Privileges