Mac OS X Server v10.4 Getting Started
Mac OS X Server v10.4 Getting Started
Quartz, QuickTime, WebObjects, and Xserve are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. Apple Remote Desktop, Disk First Aid, eMac, Finder, FireWire logo, Xcode, and Xgrid are trademarks of Apple Computer, Inc. Adobe and PostScript are trademarks of Adobe Systems Incorporated. Intel and Intel Core are trademarks of Intel Corp. in the U.S. and other countries. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. PowerPC and the PowerPC logo are trademarks of International Business Machines Corporation, used under license therefrom. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd. Other company and product names mentioned herein are trademarks of their respective companies. Mention of third-party products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the performance or use of these products. 034-3778-A/7-21-06
Contents
9 9 10 10 12 13 14 16 17 19 20 21 21 22 23 24 25 28 29 30 About This Guide Whats New in Version 10.4 High-Performance Computing User Access Management Server Administration Collaboration Services Whats in This Guide Using Onscreen Help The Mac OS X Server Suite Getting Documentation Updates Getting Additional Information Chapter 1: Installation and Setup Overview Planning Installing Server Software Upgrading and Migrating Local Installation From the Server Installation Disc Remote Installation From the Server Installation Disc Automating Server Installation With a Disk Image Initial Server Setup Settings Established During Initial Server Setup
31 Setting Up Servers Interactively 33 Automating Server Setup 37 Setting Up Services 38 Keeping Current 39 40 41 41 43 43 44 45 45 46 48 48 50 50 51 51 Chapter 2: Before You Begin Setting Up a Planning Team Identifying the Servers Youll Need to Set Up Determining Services to Host on Each Server Define a Migration Strategy Upgrading and Migrating From an Earlier Version of Mac OS X Server Migrating From Windows NT Defining an Integration Strategy Defining Physical Infrastructure Requirements Defining Server Setup Infrastructure Requirements Making Sure Required Server Hardware Is Available Minimizing the Need to Relocate Servers After Setup Changing the Servers Host Name After Setup Changing the Servers IP Address After Setup Determining the Installation and Setup Strategy to Use Collecting and Organizing Information
53 Chapter 3: Installing Server Software 54 Understanding System Requirements for Installing Mac OS X Server 55 Information You Need 55 Using the Server Installation Disc 56 Upgrading and Migrating
4 Contents
57 59 59 60 60 60 61 63 65 68 71 72 73 77
Preparing Disks for Installing Mac OS X Server Hardware-Specific Instructions for Installing Mac OS X Server Identifying Remote Servers When Installing Mac OS X Server Installing Server Software Interactively From the Installation Disc Connecting to the Network During Installation Installing Server Software on a Networked Computer Using a VNC Viewer to Prepare a Disk Before Installation Using the Installer to Install Locally From the Installation Disc Using Server Assistant to Install Remotely From the Installation Disc Using a VNC Viewer to Install Remotely From the Installation DVD Upgrading a Computer From Mac OS X to Mac OS X Server Automating Server Software Installation With a Disk Image Using the installer Command-Line Tool to Install Server Software Installing Multiple Servers
79 Chapter 4: Initial Server Setup 80 Information You Need 80 Saving Setup Data 87 Specifying Initial Open Directory Usage 92 Connecting to the Network During Initial Server Setup 93 Configuring Servers With Multiple Ethernet Ports 93 Using Interactive Server Setup 94 Setting Up a Local Server Interactively 95 Postponing Local Server Setups Following Installation 95 Setting Up a Remote Server Interactively 97 Setting Up Multiple Remote Servers Interactively in a Batch
Contents
98 Setting Up Multiple Remote Servers Interactively One at a Time 100 Using Automatic Server Setup 101 Setting Up Servers Automatically Using Data Saved in a File 105 Setting Up Servers Automatically Using Data Saved in a Directory 109 Determining the Status of Setups 109 Using the Destination Pane for Setup Status Information 110 Handling Setup Failures 111 Handling Setup Warnings 111 Getting Upgrade Installation Status Information 112 Setting Up Services 112 Setting Up Open Directory 112 Setting Up User Management 113 Setting Up File Services 114 Setting Up Print Service 115 Setting Up Web Service 116 Setting Up Mail Service 116 Setting Up Network Services 117 Setting Up System Image and Software Update Services 117 Setting Up Media Streaming and Broadcasting 117 Setting Up an Application Server 118 Setting Up a WebObjects Server 118 Setting Up Collaboration Service 119 Chapter 5: Server Administration 120 Using the Administration Tools 121 Computers You Can Use to Administer a Server
Contents
122 123 123 124 124 124 125 126 128 130 131 132 133 134 134 135 138 140 141 142 142 143 144 146 147 148
Setting Up an Administrator Computer Using a Non-Mac OS X Computer for Administration Installer Server Assistant Directory Access Workgroup Manager Opening and Authenticating in Workgroup Manager Administering Accounts Defining Managed Preferences Working With Directory Data Managing Sharing Configuring Managed Network Views Customizing the Workgroup Manager Environment Server Admin Opening and Authenticating in Server Admin Working With Specific Servers Administering Services Controlling Access to Services Using SSL for Remote Server Administration Customizing the Server Admin Environment Gateway Setup Assistant System Image Management Server Monitor Media Streaming Management Apple Remote Desktop Command-Line Tools
Contents 7
149 Xgrid Admin 149 Working With Pre-Version 10.4 Computers From Version 10.4 Servers 151 Index
Contents
This guide provides an orientation to the initial setup and administration of Mac OS X Server version 10.4.
The guide will help you prepare your server to start serving your users and your business needs.
Preface
High-Performance Computing
Mac OS X Server offers a high-performance, cost-effective approach to computationally intensive activities: Xgrid service. Xgrid computational service lets you achieve supercomputer performance levels by distributing computations over collections of dedicated or shared Mac OS X computers. The Xgrid cluster controller provides centralized access to the distributed computing pool, referred to as a computational cluster. 64-bit computing. Support for 64-bit processing includes 64-bit addressable memory and the ability to run 64- and 32-bit applications simultaneously. Accelerated networking. Link aggregation lets you configure several physical network links as a single logical link to improve the capacity of network connections. You can also take advantage of jumbo frames and IP over FireWire to optimize network transmissions.
10
Unified locking. Mac OS X Server unifies file locking across AFP and SMB/CIFS protocols. This feature lets users working on multiple platforms simultaneously share files without worrying about file corruption. Service access. You can specify which users and groups can use services hosted by a server. Pervasive Kerberos support. The following services on Mac OS X Server now support Kerberos authentication: AFP, mail, File Transfer Protocol (FTP), Secure Shell (SSH), login window, LDAPv3, Virtual Private Network (VPN), screen saver, and Apache (via the SPNEGO protocol). Network browsing. You can set up managed network views, which are custom views that users see when they select the Network icon in the sidebar of a Finder window. A managed network view is one or more network neighborhoods, which appear in the Finder as folders. Each folder contains a list of resources that an administrator has associated with the view. Managed network views offer a meaningful way to present network resources. You can create multiple views for different client computers. And because the views are stored using Open Directory, a computers network view is automatically available when a user logs in. Site-to-site VPN. Site-to-site VPN connects two networks. It offers a secure connection thats easy to establish when its necessary to set up a network at another site, as when a business expands. Site-to-site VPN makes both networks appear as one to users working at either site. Mobility. Users with portable computers can use trusted binding to make sure that servers accessed as they move around are trustworthy. Trusted binding offers a way for a client computer to authenticate to an LDAP server and for the LDAP server to authenticate to the client.
Preface About This Guide 11
Trusted directory binding. Trusted directory binding, also called authenticated directory binding, provides an authenticated connection between a client computer and an LDAP directory on Mac OS X Server. Because the client computer authenticates the LDAP server before connecting to it, a malicious user cant control the client computer by interposing a counterfeit, unauthenticated LDAP server. Importing accounts. The performance of importing accounts into an LDAPv3 directory has been greatly improved. In addition, you can now import password policy settings, control whether presets are applied during import, and specify the amount of information logged.
Server Administration
Mac OS X Server management continues to become easier and more effective: Open Directory schema replication. You can now store LDAP schema in the directory, letting you add new schema without manually copying configuration files. Changes are automatically propagated from the Open Directory master to all its replicas. Preference editor. If you want fine-grain control of preference settings, you can work with preference manifests using Workgroup Managers new preference editor. Preference manifests are files that describe the structure and values of an applications or utilitys preferences. The preference editor lets you work with preference manifests for the predefined preferences or add new preference manifests for applications and utilities of interest.
12
Junk mail and virus filtering. Mail service protects users from junk mail and other annoying or unauthorized messages. You can define filters that help minimize junk mail and viruses, filter out unsolicited commercial email, and detect messages that contain particular content. Junk mail filtering, based on the powerful SpamAssassin, includes an autolearning option. Network gateway setup. A new application, Gateway Setup Assistant, automates the configuration of a simple gateway between the local network and the Internet. A gateway lets you share the servers Internet connection among computers on the local area network (LAN). Gateway Setup Assistant configures Dynamic Host Configuration Protocol (DHCP), Network Address Translation (NAT), firewall, DNS, and VPN services automatically. Secure Sockets Layer (SSL) certificate management. Server Admin makes it easy to manage SSL certificates that can be used by mail, web, Open Directory, and other services that support them. You can create a self-signed certificate, and generate a Certificate Signing Request (CSR) to obtain an SSL certificate from an issuing authority and install the certificate.
Collaboration Services
Collaboration services promote interactions among users, facilitating teamwork and productivity. Mac OS X Server continues to provide such collaborative support as mailing list management, group account and folder management, and cross-platform file sharing. Two new collaborative services have been added for version 10.4: Weblog service. Mac OS X Server provides a multiuser weblog server that complies with the RSS and Atom XML standards. Weblog service supports Open Directory authentication. For additional safety, users can access Weblog service using a website thats SSL enabled.
Preface About This Guide 13
iChat service. Mac OS X Server provides instant messaging for Macintosh, Windows, and Linux users. User authentication is integrated into Open Directory, and setup and administration of iChat service is done using the graphical Server Admin application.
14
Additional chapters and appendixes that were part of the getting started guide first edition are now a separate document, Mac OS X Server Getting Started for Version 10.4 or Later, Supplement to Second Edition. Read it to familiarize yourself with Mac OS X Server usage scenarios, services, and terminology. The included setup example details how you might install Mac OS X Server and perform initial server setup in a small business. And you can use the included Mac OS X Server Worksheet for Version 10.4 or Later to record information youll need when you install and set up Mac OS X Server. The worksheet is also available as a separate document. Youll find the getting started supplement and worksheet as PDF files in the Documentation folder of the Mac OS X Server installation disc and the Mac OS X Server Admin Tools CD. These documents are also available from the server documentation website: www.apple.com/server/documentation/ Note: Because Apple frequently releases new versions and updates to its software, images shown in this book may be different from what you see on your screen.
15
16
Set up and manage weblog, chat, and other services that facilitate interactions among users. Use commands and configuration files to perform server administration tasks in a UNIX command shell. Configure and deploy Mac OS X Server and a set of Mac OS X computers for use by K-12 staff, teachers, and students. Set up and manage Mac OS X Server and Apple cluster computers to speed up processing of complex computations. Share selected server volumes or folders among server clients using these protocols: AFP, NFS, FTP, and SMB/CIFS. Manage IP failover, link aggregation, load balancing, and other hardware and software configurations to ensure high availability of Mac OS X Server services. Configure and administer a JBoss application server on Mac OS X Server. Secure Mac OS X client computers.
17
This guide ... Mac OS X Server Security Configuration Mail Service Administration Migrating to Mac OS X Server From Windows NT Network Services Administration Open Directory Administration Print Service Administration QuickTime Streaming Server 5.5 Administration System Imaging and Software Update Administration
tells you how to: Secure Mac OS X Server computers. Set up, configure, and administer mail services on the server. Move accounts, shared folders, and services from Windows NT servers to Mac OS X Server. Set up, configure, and administer DHCP, DNS, VPN, NTP, IP firewall, and NAT services on the server. Manage directory and authentication services. Host shared printers and manage their associated queues and print jobs. Set up and manage QuickTime streaming services. Use NetBoot and Network Install to create disk images from which Macintosh computers can start up over the network. Set up a software update server for updating client computers over the network. Use data and service settings that are currently being used on earlier versions of the server software. Create and manage user accounts, groups, and computer lists. Set up managed preferences for Mac OS X clients.
18
This guide ... Web Technologies Administration Windows Services Administration Xgrid Administration Mac OS X Server Glossary
tells you how to: Set up and manage a web server, including WebDAV, WebMail, and web modules. Set up and manage services including PDC, BDC, file, and print, for Windows computer users. Manage computational Xserve clusters using the Xgrid application. Learn about terms used for server and storage products.
19
20
1
Stay up to date
Before installing and setting up Mac OS X Server, take the time to do a little planning and to become familiar with your options.
This chapter is a roadmap to details presented in later chapters. It surveys the stages of installation and initial server setup and the options available to you during each stage.
Install server software Set up the server Set up services
Plan
Planning
During the planning stage, you determine how you want to use Mac OS X Server and identify whether theres anything you need to accomplish before setting it up. You may, for example, want to convert an existing server to version 10.4 and continue hosting directory, file, and mail services for clients on your network. Before you install server software, you may need to prepare data you want to migrate to your new server, and perhaps consider whether its a good time to implement a different directory services solution.
21
Chapter 2, Before You Begin, on page 39 will help you understand what you might want to do now and what you can postpone until later. During the planning stage, youll also decide which installation and server setup options best suit your needs. The getting started supplement contains an example that illustrates server installation and initial setup in a small business scenario.
22
23
The Installer application, which automatically opens after startup, offers a graphical, guided way to install server software. See Using the Installer to Install Locally From the Installation Disc on page 63 for instructions. If you prefer using the command line, start the Terminal application from the Installer menu and follow the instructions in Using the installer Command-Line Tool to Install Server Software on page 73.
24
25
Subnet 1
Subnet 2
Alternatively, you can use the command line. After booting the target server, connect to the target server from an administrator computer using SSH and follow the instructions in Using the installer Command-Line Tool to Install Server Software on page 73. If you have multiple servers onto which you want to install server software, start up each from an installation disc, then open a Terminal window for each installation.
26
If the target server lacks a keyboard, display, and optical drive that can read your installation disc, you can use the optical drive on an administrator computer connected to the target server using a FireWire cable.
Administrator computer
You start the server in target disk mode, which makes the target server appear as a FireWire hard disk on the administrator computer. (When you use this mode, you see a disk icon for each partition of the servers hard disk on the desktop of the administrator computer.) On the administrator computer, you install from an installation disc onto one of the mounted target server volumes. In this case, you need to complete one installation before starting another one. There are other ways to work with a target server that lacks an optical drive capable of reading your installation disc. For example, you can start up the server from an external optical drive connected to the target server using a FireWire cable. Or you can use the optical drive of another computer connected to the target server using a FireWire cable. Starting the other computer in target disk mode makes its optical drive available as an external optical drive on the target server.
27
After starting up the target server from an external optical drive, you use an administrator computer to initiate server software installation, or your can use VNC viewer software to control installation of Mac OS X Server v10.4.7 or later. You can also install server software on an Xserve system that lacks an optical drive by moving its drive module to another Xserve system that has an optical drive. Instructions for using target disk mode and external optical drives are in the Quick Start, Getting Started, or Users Guide that comes with Xserve systems and Macintosh computers.
28
Mac OS X Server
Administrator computer
Destination
Target servers
29
Chapter 4, Initial Server Setup, on page 79 provides detailed instructions for all the server setup scenarios, summarized next following an explanation of what happens during initial server setup.
The name localhost Network interfaces (ports) are configured. TCP/IP and Ethernet settings are defined for each port you want to activate. Network time service can be set up. Services that require no additional configuration can be turned on. By default, to maximize security, the only server processes running after server setup are the essential ones needed for basic system function. Externally usable services, such as mail, web, and file services, are off by default and the corresponding ports are closed. If youre upgrading, the current basic settings are displayed during the setup process, but you can change them. Other settings, such as share points youve defined and services youve configured, are preserved. See the upgrading and migrating guide for a complete description of whats upgraded and actions you may want to take following server setup. You can perform initial server setup only once without reinstalling a server. If you need to change any of the settings established during setup, you have alternative means to do so. For example, you can use Server Admin or Directory Access to manage Open Directory settings.
31
This is the technique you use to set up a local server, as Setting Up a Local Server Interactively on page 94 describes. You can also use this interactive approach to set up a remote server from an administrator computer. See Setting Up a Remote Server Interactively on page 95 for instructions. When multiple remote servers can use the same setup data, you can supply the data, then initiate setup of all the servers at once, using a batch approach. This technique, shown on the left side of the following picture, requires that network identifiers for all the target servers be set using DHCP or BootP. See Setting Up Multiple Remote Servers Interactively in a Batch on page 97 for instructions.
Welcome Welcome Welcome
Subnet 1 Subnet 2
32
When you want to customize the setup of individual servers, you can manage each setup individually from a different Server Assistant window. This approach is shown on the right side of the picture above. See Setting Up Multiple Remote Servers Interactively One at a Time on page 98 for instructions. Although the previous picture shows target servers on the same subnet as the administrator computer in one scenario and target servers on a different subnet in the other scenario, both setup scenarios can be used to set up servers on the same and different subnets. If a target server is on a different subnet, you need to supply its IP address. Servers on the same subnet are listed by Server Assistant, so you just need to select one or more servers in the list.
33
Using Setup Data Stored in a File When you place a setup file on a volume (CD, DVD, iPod, USB solid-state drive, disk partition) mounted locally on a server youve installed but not set up, the server detects the file and automatically uses it to set itself up. You could, for example, store multiple setup files on an iPod, then plug the iPod into the first server for which a setup file exists.
iPod
34
iPod
Each target server recognizes its own file, because its been named using one of its identifiers and resides in a known location. For example, a server with WXYZ1234 as the first eight characters of its built-in serial number would use this setup file to set itself up: /Volumes/MyIPod/Auto Server Setup/ WXYZ1234.plist. Or a servers IP address can be used as an identifier. A server with the IP address 10.0.0.4 would use the following file: /Volumes/MyIPod/Auto Server Setup/10.0.0.4.plist. You could also use a single file, which youd name generic.plist , to set up multiple servers if the setup data does not need to be unique and the servers network identities are provided using DHCP. See Setting Up Servers Automatically Using Data Saved in a File on page 101 for instructions.
35
Using Setup Data Stored in a Directory A target server can set itself up using setup data youve stored in a directory the server is configured to access. Although storing setup data in a directory is the most automated way to set up multiple servers, this approach requires that you set up an infrastructure first so that target servers can locate the setup data stored in the directory. The most critical components of the infrastructure are DHCP and Open Directory, as the following picture illustrates. The Open Directory server in this example hosts an LDAP directory in which setup data has been saved. The address of the Open Directory server is registered with DHCP service, running on another server in this example. The DHCP service provides the Open Directory server address to the target servers when it assigns IP addresses to those servers. The target servers automatically detect setup data that has been stored for them in the LDAP directory and use it to set themselves up.
DHCP server
You can save setup data in an Apple OpenLDAP directory or in another directory that supports Apples schema extensions for saved setup data, documented in the Open Directory administration guide.
36 Chapter 1 Installation and Setup Overview
See Setting Up Servers Automatically Using Data Saved in a Directory on page 105 for instructions. Using Encryption By default, saved setup data is encrypted for extra security. Before any server sets itself up using encrypted data, it must have access to the passphrase used when the data was encrypted. The passphrase can be provided either interactively (using Server Assistant) or in a file on a local volume of the target server. For example, you can store the file with the passphrase on an iPod, then plug the iPod into each server that needs the passphrase. A server with the IP address 10.0.0.4 would use /Volumes/MyIPod/Auto Server Setup/ 10.0.0.4.pass.
Setting Up Services
After initial server setup is complete, you can: Migrate data and settings from a previous server. See the upgrading and migrating guide for instructions. Set up individual services you want to provide. Consult the administration guides for individual services for service-specific options. When you set up services, youll use the server administration tools described in Chapter 5, Server Administration, on page 119.
37
Keeping Current
After youve set up your server, youll want to update it as Apple releases server software updates. There are several ways to access update releases of Mac OS X Server: Use the Software Update pane of System Preferences. Use the softwareupdate command-line tool. In Server Admin, select a server in the Computers & Services list, then click the Update button. Use the servers software update service. Download a disk image of the software update from www.apple.com/support/ downloads/.
38
Before installing and setting up Mac OS X Server, take the time to do a little planning.
The major goals of the planning phase are to make sure that: Server user and administrator needs are addressed by the servers you deploy Server and service prerequisites that affect installation and initial setup are identified Installation planning is especially important if youre integrating Mac OS X Server into an existing network, migrating from earlier versions of Mac OS X Server, or preparing to set up multiple servers. But even single-server environments can benefit from a brief assessment of the needs you want a server to address. Use this chapter to stimulate your thinking. It doesnt present a rigorous planning algorithm. Nor does it provide the details youll need to determine whether to implement a particular service and assess its resource requirements. Instead, view this chapter as an opportunity to pause and think about how to maximize the benefits of Mac OS X Server in your environment. Planning, like design, isnt necessarily a linear process. The sections in this chapter, for example, had to be in some particular order, but the order doesnt imply a mandatory sequence. Different sections in this chapter present suggestions that could be implemented simultaneously or iteratively.
39
40
41
Home directories for network users can be consolidated onto one server or distributed among various servers. While you can move home directories if you need to, you may need to change a large number of user and share point records, so devise a strategy that will persist for a reasonable amount of time. See the user management guide for information about home directories. Some services offer ways to control the amount of disk space used by individual users. For example, you can set up both home directory and mail quotas for users. Consider whether using quotas will offer a way to maximize the disk usage on a server that stores home directories and mail databases. The user management guide and mail service administration guide describe home directory and mail quotas, respectively. Disk space requirements are also affected by the type of files a server hosts. Creative environments need high-capacity storage to accommodate large media files, whereas elementary school classrooms have much more modest file storage needs. The file services administration guide describes file sharing. If youll be setting up a streaming media server, youll need to allocate enough disk space to accommodate a certain number of hours of streamed video or audio. See the QuickTime Streaming Server administration guide for hardware and software requirements and for a setup example. The number of NetBoot client computers you can connect to a server depends on the servers Ethernet connections, the number of users, the amount of available RAM and disk space, and other factors. DHCP service needs to be available. See the system imaging and software update administration guide for NetBoot capacity planning guidelines.
42
Mac OS X Server offers extensive support for Windows users. You can consolidate Windows user support on servers that provide PDC services, or you can distribute services for Windows users among different servers. The Windows services administration guide describes the options available to you. If you want to use software RAID to stripe or mirror disks, youll need two or more drives (they cant be FireWire drives) on a server. See online help for Disk Utility for more information. Before finalizing decisions about which servers will host particular services, familiarize yourself with information in the individual administration guides for services you want to deploy.
43
When you cant use the upgrade approach, you can migrate data and settings. Youll need to migrate, not upgrade, when: A version 10.2.8 or 10.3 servers hard disk needs reformatting or doesnt meet the minimum version 10.4 system requirements. Understanding System Requirements for Installing Mac OS X Server on page 54 describes the minimum requirements. You want to move data and settings youve been using on a version 10.2.8 or 10.3 server to different server hardware. The server version youve been using is earlier than version 10.2.8. Migration from versions 10.3.9, 10.2.8, 10.1.4, 10.1.5, and 1.2; and from AppleShare IP version 6.3.3 are supported. When you migrate, you install and set up a version 10.4 server, restore files onto it from the earlier server, and make some manual adjustments as required. Read the upgrading and migrating guide for complete information. Note: You cant update to a later 10.4 version by using a Mac OS X Server installation disc. For example, you cant use an installation DVD for version 10.4.7 to update an earlier version. To learn how to update to the latest version, see Keeping Current on page 38.
Are there air conditioning or power requirements that need to be met? See the documentation that comes with server hardware for this kind of information. Have you been thinking about upgrading elements such as cables, switches, and power supplies? Now may be a good time to do it. Are your TCP/IP network and subnets configured to support the services and servers you want to deploy?
Setting up DHCP will reflect the physical network topology youll be using. Another crucial infrastructure component is directory services, required for sharing data among services, servers, and user computers. The most common data you need to share is for users and groups, but configuration information such as mount records and other directory data is also shared. A directory services infrastructure is necessary when you want to host cross-platform authentication and when you want different services to share the same names and passwords. Heres an example of the sequence in which you might set up a server infrastructure that includes DNS, DHCP, and directory services; the services can be set up on the same server or on different servers: 1 Set up the DNS server. 2 Set up DHCP. 3 Configure DHCP to specify the DNS server address so it can be served to DHCP clients. 4 Set up a directory server, including Windows PDC service if required. 5 Populate the directory with data, such as users, groups, and home directory data. This process involves, for example, importing users and groups, setting up share points, setting up managed preferences, and so forth. 6 Configure DHCP to specify the address of the directory server so it can be served to DHCP clients.
47
Your particular needs may affect this sequence. For example, if you want to use VPN, NAT, or IP firewall services, you would factor their setup into the DNS and DHCP setups. The getting started supplement illustrates the steps you might take to set up the directory and network infrastructure of Mac OS X Server in a small business scenario. The supplement is located on the Mac OS X Server installation disc in the Documentation folder. The Preface tells you where else you can find the supplement.
48
When you move a server, take these guidelines into account: Minimize the time the server is in its temporary location so the amount of information you need to change is limited. Postpone configuring services that depend on network settings until the server is in its final location. Such services include Open Directory replication, Apache settings (such as virtual hosts), DHCP, and other network infrastructure settings that other computers depend on. Wait to import final user accounts. Limit accounts to test accounts so you minimize the user-specific network information (such as home directory location) that will need to change after the move. After you move the server, use the changeip tool to change IP addresses, host names, and other data stored in Open Directory NetInfo and LDAP directories on the server. You may need to manually adjust some network configurations, such as the local DNS database, after using the tool. Because changeip doesnt actually change the servers IP address, use the networksetup command (or Network preferences) to change the servers IP address in its network settings. See the command-line administration guide or the man page for changeip for details. Reconfigure the search policy of computers (such as user computers and DHCP servers) that have been configured to use the server in its original location.
49
its network settings. See the command-line administration guide or the man page for changeip for details.
50
51
3
Are on page 55 page 56 page 57 page 59 page 59 page 60 page 60 page 61 page 63
You can upgrade to Mac OS X Server version 10.4 from version 10.3 or 10.2 or you can install a fresh copy of Mac OS X Server version 10.4.
Review the system requirements below and record information for each server you want to install using the Mac OS X Server Worksheet for Version 10.4 or Later (located on the Mac OS X Server installation disc). Then use the detailed installation instructions, which youll find as indicated in the following table.
Instructions for Using the Server Installation Disc Upgrading and Migrating Preparing Disks for Installing Mac OS X Server Hardware-Specific Instructions for Installing Mac OS X Server Identifying Remote Servers When Installing Mac OS X Server Connecting to the Network During Installation Installing Server Software on a Networked Computer Using a VNC Viewer to Prepare a Disk Before Installation Using the Installer to Install Locally From the Installation Disc
53
Instructions for Using Server Assistant to Install Remotely From the Installation Disc Using a VNC Viewer to Install Remotely From the Installation DVD Upgrading a Computer From Mac OS X to Mac OS X Server Automating Server Software Installation With a Disk Image Using the installer Command-Line Tool to Install Server Software Installing Multiple Servers
54
A display and keyboard are optional. You can install server software on a computer that has no display and keyboard by using an administrator computer. Setting Up an Administrator Computer on page 122 describes how to set one up. If youre using an installation disc for Mac OS X Server version 10.4.7 or later, you can control installation from another computer using VNC viewer software. Open source VNC viewer software is available, and Apple Remote Desktop, described on page 147, includes VNC viewer capability.
In addition to the installation DVD or CDs, Mac OS X Server includes the Mac OS X Server Admin Tools CD, which you use to set up an administrator computer.
56
Read the upgrading and migrating guide for more information. Note: You cant update to a later 10.4 version by using a Mac OS X Server installation disc. For example, you cant use an installation DVD for version 10.4.7 to update an earlier version. To learn how to update to the latest version, see Keeping Current on page 38.
57
Important: Dont store additional software or user data on the hard disk or partition where the operating system is installed. With this approach, you wont risk losing those files if you need to reinstall or upgrade system software. If you must store additional software or data on the system partition, consider mirroring the drive. Creating a RAID Set If the target server has a second physical drive, you can configure the target disk for RAID mirroring. RAID mirroring sets up two disks so that the second disk is used automatically if the primary disk isnt available. Both disks must have a single partition. To use all your disk capacity, both disks should be the same size. If the target disk has a single partition and the second physical drive has a single partition and no data, you can set up RAID mirroring after installation. To prevent data loss, however, its best to set up RAID mirroring as soon as possible. Erasing a Disk or Partition You can erase a disk or partition while using the Mac OS X Server Installer. When you select the target volume in the Installer, you can also select an option to have the target disk or partition erased during installation using the Mac OS Extended (Journaled) format. This is the most common format for a Mac OS X Server startup volume.
58
You can also use the Installer to open the Disk Utility application and then use it to erase the target volume or another volume. You can erase the target volume using the Mac OS Extended format or Mac OS Extended (Journaled) format. You can erase other volumes using either of those formats, Mac OS Extended format (Case-Sensitive) format, Mac OS Extended (Journaled, Case-Sensitive) format, or UNIX File System (UFS) format. You should not use UFS format or either case-sensitive format for a Mac OS X Server startup volume.
59
If you use VNC viewer software to remotely control installation of Mac OS X Server version 10.4.7 or later, it may let you select the target server from a list of available VNC servers. If not, you need to enter the IP address of the server (in IPv4 format: 000.000.000.000). The target servers IP address is assigned by a DHCP server on the network; if no DHCP server exists, the target server uses a 169.xxx.xxx.xxx address unique among servers on the local subnet. Later, when you set up the server, you can change the IP address. The preset password for the target server. The password consists of the first 8 digits of the servers built-in hardware serial number. To find a servers serial number, look for a label on the server. Older computers have no built-in hardware serial numbers; for these systems, use 12345678.
Important: Make sure the network is secure before you install or reinstall Mac OS X Server, because SSH gives others access to the computer over the network. For example, design the network topology so that you can make the server computers subnet accessible only to trusted users.
61
If the target server has no built-in DVD-ROM drive, you can use an external FireWire DVD-ROM drive. You can also install server software on an Xserve system that lacks a DVD-ROM drive by moving its drive module to another Xserve system that has a DVDROM drive. 2 Use your VNC viewer software to open a connection to the target server. 3 Identify the target server. If the VNC viewer includes the target server in a list of available servers, select it in the list. Otherwise, enter an IP address in IPv4 format (000.000.000.000). 4 When prompted for a password, type the first 8 digits of the servers built-in hardware serial number. To find a servers serial number, look for a label on the server. If youre installing on an older computer that has no built-in hardware serial number, use 12345678 for the password. If youre using Apple Remote Desktop as a VNC viewer, enter the password but dont specify a user name. 5 When the Installer opens, choose Utilities > Disk Utility and use Disk Utility to prepare the target disk. You can find instructions for partitioning the hard disk into multiple volumes, creating a RAID set, and erasing the target disk or partition by viewing Disk Utility Help. To view Disk Utility Help, open Disk Utility on another Macintosh computer with Mac OS X v10.4 and choose Help > Disk Utility Help. 6 When you finish preparing the target disk, quit Disk Utility. You can now continue using the VNC viewer to perform a clean installation, as described in Using a VNC Viewer to Install Remotely From the Installation DVD on page 68, or you can quit the Installer and use another installation method.
62 Chapter 3 Installing Server Software
63
With Disk Utility, you can partition the target disk or create a RAID set. You can also use Disk Utility to erase the disk using Mac OS Extended format. Important: Dont store additional software or user data on the hard disk or partition where the operating system is installed. With this approach, you wont risk losing those files if you need to reinstall or upgrade system software. If you must store additional software or data on the system partition, consider mirroring the drive. 6 Proceed through the Installers panes by following the onscreen instructions. 7 When the Select a Destination pane appears, select a target disk or volume (partition) and make sure its in the expected state. If youre doing a clean installation, you can choose Utilities > Open Disk Utility to work with disk preparation one final time before selecting the target volume and clicking Continue. Or you can click Options to format the destination disk or volume in Mac OS Extended (Journaled) format; select Erase to format the disk in Mac OS Extended (Journaled) format; then click OK. If the volume you selected contains Mac OS X Server version 10.3.9 or 10.2.8 and you want to upgrade, click Options and select Dont erase . Click OK. Important: When you perform an upgrade installation, make sure that saved setup data wont be inadvertently detected and used by the server. If saved setup data is used, existing server settings will be overwritten by the saved settings. See How a Server Searches for Saved Setup Data on page 81 for more information. 8 During installation, progress information is displayed. Insert the next installation disc if prompted. 9 After installation is complete, the computer restarts automatically and you can perform initial server setup.
64
If youre using an administrator computer to install onto a server thats in target disk mode and connected using a FireWire cable, quit Server Assistant when it starts automatically on the administrator computer. Shut down the administrator computer and the server. Then start up the administrator computer and the server normally (not in target disk mode). Now you can use Server Assistant from the administrator computer to remotely set up the server. Chapter 4, Initial Server Setup, on page 79 describes how to set up a server locally or remotely.
65
If the target server has a keyboard and display, you can use Disk Utility by opening it on the server (in /Applications/Utilities/). You can find instructions on disk preparation tasks by viewing Disk Utility Help. Alternatively, if youre installing Mac OS X Server version 10.4.7 or later, you can control Disk Utility remotely from another computer using VNC viewer software. For instructions, see Using a VNC Viewer to Prepare a Disk Before Installation on page 61. Important: Dont store additional software or user data on the hard disk or partition where the operating system is installed. With this approach, you wont risk losing those files if you need to reinstall or upgrade system software. If you must store additional software or data on the system partition, consider mirroring the drive. 2 Start the target computer from the installation disc. The procedure you use depends on whether the target server has an optical drive that can read your installation disc or discs. If you have an installation DVD, the optical drive must be able to read DVD discs. If the target server has a keyboard and an optical drive that can read your installation disc, insert the first installation disc into the optical drive. Then hold down the C key on the keyboard while restarting the computer. If the target server is an Xserve with a built-in optical drive that can read your installation disc, start the server using the first installation disc by following the instructions in the Xserve Users Guide for starting from a system disc.
66
If the target server lacks a built-in optical drive that can read your installation disc, you can start it in target disk mode and insert the installation disc into the optical drive on your administrator computer. You can also use an external FireWire optical drive. If the target server is an Xserve, you can move its drive module to another Xserve system that has an optical drive capable of reading your installation disc. Instructions for using target disk mode and external optical drives are in the Quick Start guide, Getting Started guide, or Users Guide that came with your Xserve system or Macintosh computer. 3 On an administrator computer, navigate to /Applications/Server/ and open Server Assistant (you dont have to be an administrator on the local computer to use Server Assistant). Select Install software on a remote server. 4 Identify the target server. If its on the local subnet, select it in the list. Otherwise, click Server at IP Address and enter an IP address in IPv4 format (000.000.000.000). 5 When prompted for a password, type the first 8 digits of the servers built-in hardware serial number. To find a servers serial number, look for a label on the server. If youre installing on an older computer that has no built-in hardware serial number, use 12345678 for the password. 6 Proceed by following the onscreen instructions. 7 When the Volumes pane appears, select a target disk or volume (partition) and make sure its in the expected state. Then select it and click Continue. If the volume you selected contains Mac OS X Server version 10.3.9 or 10.2.8 and you want to upgrade, select Dont erase. Otherwise, you can select Erase to format the disk in Mac OS Extended (Journaled) format. Click OK.
67
Important: When you perform an upgrade installation, make sure that saved setup data wont be inadvertently detected and used by the server. If saved setup data is used, existing server settings will be overwritten by the saved settings. See How a Server Searches for Saved Setup Data on page 81 for more information. 8 During installation, progress information is displayed. Insert the next installation disc if prompted. While installation proceeds, you can open another Server Assistant window to install server software on another computer; choose File > New Window to do so. After installation is complete, the target server restarts automatically and you can perform initial server setup. Chapter 4, Initial Server Setup, on page 79 describes how.
If the target server is an Xserve with a built-in DVD-ROM drive, start the server using the installation DVD by following the instructions in the Xserve Users Guide for starting from a system disc. If the target server has no built-in DVD-ROM drive, you can use an external FireWire DVD-ROM drive. You can also install server software on an Xserve system that lacks a DVD-ROM drive by moving its drive module to another Xserve system that has a DVDROM drive. Instructions for using external FireWire drives are in the Quick Start guide, Getting Started guide, or Users Guide that came with your Xserve system or Macintosh computer. 3 Use your VNC viewer software to open a connection to the target server. 4 Identify the target server. If the VNC viewer includes the target server in a list of available servers, select it in the list. Otherwise, enter an IP address in IPv4 format (000.000.000.000). 5 When prompted for a password, type the first 8 digits of the servers built-in hardware serial number. To find a servers serial number, look for a label on the server. If youre installing on an older computer that has no built-in hardware serial number, use 12345678 for the password. If youre using Apple Remote Desktop as a VNC viewer, enter the password but dont specify a user name. 6 When the Installer opens, if you want to perform a clean installation, optionally use the Utilities menu to open Disk Utility to prepare the target disk or partition before proceeding.
69
You can find instructions for partitioning the hard disk into multiple volumes, creating a RAID set, and erasing the target disk or partition by viewing Disk Utility Help. To view Disk Utility Help, open Disk Utility on another Macintosh computer with Mac OS X v10.4 and choose Help > Disk Utility Help. Important: Dont store additional software or user data on the hard disk or partition where the operating system is installed. With this approach, you wont risk losing those files if you need to reinstall or upgrade system software. If you must store additional software or data on the system partition, consider mirroring the drive. 7 When you finish preparing the target disk, quit Disk Utility. 8 Proceed through the Installers panes by following the onscreen instructions. 9 When the Select a Destination pane appears, select a target disk or volume (partition) and make sure its in the expected state. If youre doing a clean installation, you can choose Utilities > Open Disk Utility to work with disk preparation one final time before selecting the target volume and clicking Continue. Or you can click Options to format the destination disk or volume in Mac OS Extended (Journaled) format: Select Erase to format the disk in Mac OS Extended (Journaled) format, and then click OK. If the volume you selected contains Mac OS X Server version 10.3.9 or 10.2.8 and you want to upgrade, click Options and select Dont erase . Click OK. Important: When you perform an upgrade installation, make sure that saved setup data wont be inadvertently detected and used by the server. If saved setup data is used, existing server settings will be overwritten by the saved settings. See How a Server Searches for Saved Setup Data on page 81 for more information.
70
10 During installation, progress information is displayed. While installation proceeds, you can use the VNC viewer to open a connection to another computer and install Mac OS X Server v10.4.7 or later on it. After installation is complete, the server restarts and closes the VNC viewer connection automatically. You can perform initial server setup interactively or automatically. Chapter 4, Initial Server Setup, on page 79 describes how.
71
72
73
2 If youre installing a local server, when the Installer opens choose Utilities > Open Terminal to open the Terminal application. If youre installing a remote server, from Terminal on an administrator computer or from a UNIX workstation, establish an SSH session as the root user with the target server, substituting the target servers actual IP address for <ip address>:
ssh root@<ip address>
If you dont know the IP address and the remote server is on the local subnet, you can use the sa_srchr command to identify computers on the local subnet on which you can install server software:
/System/Library/Serversetup/sa_srchr 224.0.0.1 mycomputer.example.com#PowerMac4,4#<ip address>#<mac address>#Mac OS X Server 10.4#RDY4PkgInstall#2.0#512
You can also use Server Assistant to generate information for computers on the local subnet. Open Server Assistant, select Install software on a remote computer , and click Continue to access the Destination pane and generate a list of servers awaiting installation. 3 When prompted for a password, type the first 8 digits of the servers built-in hardware serial number. To find a servers serial number, look for a label on the server. If the target computer had been set up as a server, youll also find the hardware serial number in /System/Library/ServerSetup/SerialNumber. If youre installing on an older computer that has no built-in hardware serial number, use 12345678 for the password. 4 Identify the target-server volume onto which you want to install the server software.
74
To list the volumes available for server software installation from the installation disc, type this command:
/usr/sbin/installer -volinfo -pkg /System/Installation/Packages/ OSInstall.mpkg
You can also identify a Network Install image youve created and mounted:
/usr/sbin/installer -volinfo -pkg /Volumes/ServerNetworkImage10.4/ System/Installation/Packages/OSInstall.mpkg
The list displayed reflects your particular environment, but heres an example showing three available volumes:
/Volumes/Mount 01 /Volumes/Mount1 /Volumes/Mount02
5 If the target volume has Mac OS X Server 10.3.9 or 10.2.8 installed, when you run installer it will upgrade the server to version 10.4 and preserve user files. If youre not upgrading but performing a clean installation, back up the user files you want to preserve, then use diskutil to erase the volume and format it and to enable journaling:
/usr/sbin/diskutil eraseVolume HFS+ "Mount 01" "/Volumes/Mount 01" /usr/sbin/diskutil enableJournal "/Volumes/Mount 01"
You can also use diskutil to partition the volume and to set up mirroring. See the diskutil man page for more information about the command. Important: Dont store data on the hard disk or hard disk partition where the operating system is installed. With this approach, you wont risk losing data should you need to reinstall or upgrade system software. If you must store additional software or data on the system partition, consider mirroring the drive.
75
6 Install the operating system on a volume from the list generated in step 4. For example, to use Mount 01 in the example in step 4 to install from a server installation disc, type:
/usr/sbin/installer -verboseR -lang en -pkg /System/Installation/ Packages/OSInstall.mpkg -target "/Volumes/Mount 01"
If youre using a Network Install image, the command identifies them as step 4 shows. When you type the -lang parameter, use one of the following values: en (for English), de (for German), fr (for French), or ja (for Japanese). 7 During installation, progress information is displayed. While installation proceeds, you can open another Terminal window to install server software on another computer. 8 When installation from the disc is complete, restart the server. Type:
/sbin/reboot
or
/sbin/shutdown -r
Server Assistant opens automatically when installation is complete. If you have installation CDs (not available for version 10.4.7 or later), use the following instructions to install the remaining software from the remaining installation CDs. To use the next installation disc, type the sa_srchr command to locate the server thats waiting. For <ip address>, specify the address you used in step 2:
/System/Library/Serversetup/sa_srchr <ip address>
When the sa_srchr response includes the string #InstallInProgress , insert the next installation disc:
mycomputer.example.com#PowerMac4,4#<ip address>#<mac address> #Mac OS X Server 10.4#InstallInProgress#2.0#2080
76
77
4
On page 80 page 87 page 92 page 93 installation disc page 93 page 94 page 95 page 95 page 97 page 98
Basic characteristics of your Mac OS X Server are established during initial server setup.
Heres a quick reference to the topics in this chapter.
To read about Options and prerequisites See Saving Setup Data Specifying Initial Open Directory Usage Connecting to the Network During Initial Server Setup Configuring Servers With Multiple Ethernet Ports The Mac OS X Server Worksheet for Version 10.4 or Later Using Interactive Server Setup Setting Up a Local Server Interactively Postponing Local Server Setups Following Installation Setting Up a Remote Server Interactively Setting Up Multiple Remote Servers Interactively in a Batch Setting Up Multiple Remote Servers Interactively One at a Time
79
See
On
Using Automatic Server Setup page 100 Setting Up Servers Automatically Using Data Saved in a File page 101 Setting Up Servers Automatically Using Data Saved in a page 105 Directory Determining the Status of Setups Setting Up Services page 109 page 112
80
How a Server Searches for Saved Setup Data A freshly installed server sets itself up using saved setup data it finds while using the following search sequence. When the server finds any saved setup data that matches the criteria described, it stops searching and uses the data to set itself up. 1 The server first searches through locally mounted volumes for setup files in /Volumes/ */Auto Server Setup/, where * is a file system (device) name. It searches through volumes alphabetically by device name, looking for a file with the extension .plist thats named using its MAC address, its IP address, its partial DNS name, its built-in hardware serial number, its fully qualified DNS name, its partial IP address, or generic.plist, in that order. 2 Next, the server looks in a directory its configured to use for a setup record in a path named AutoServerSetup . It searches for records named using its MAC address, its IP address, its partial DNS name (myserver), its built-in hardware serial number, its fully qualified DNS name (myserver.example.com), its partial IP address, or generic, in that order. If the setup data is encrypted, the server needs the correct passphrase before setting itself up. You can use Server Assistant to supply the passphrase interactively, or you can supply the passphrase in a text file in /Volumes/*/Auto Server Setup/<pass-phrasefile>. The target server searches through volumes alphabetically by file system name, looking for a file with the extension .pass thats named using its MAC address, its IP address, its partial DNS name, its built-in hardware serial number, its fully qualified DNS name, its partial IP address, or generic, in that order. Important: When you perform an upgrade installation, make sure that saved setup data wont be inadvertently detected and used by the server youre upgrading. If saved setup data is used, existing server settings will be overwritten by the saved settings.
Chapter 4 Initial Server Setup 81
The next two sections provide more details about how to use saved setup data. Using Setup Data Saved in a File When you save setup data in a file, a target server automatically detects and uses the file if: Setup data the target server recognizes isnt found in a directory the server is configured to use. See Using Setup Data Saved in a Directory on page 84 for information on how a server detects and uses directory data to set itself up. The setup file is on a volume mounted locally in /Volumes/*/Auto Server Setup/, where * is any device mounted under /Volumes. A target server searches through volumes alphabetically by device name. The device that is mounted as a file system can be the servers hard drive or an iPod, DVD, CD, FireWire drive, USB drive, or other device plugged in to the server. For example, /Volumes/AdminiPod/Auto Server Setup/myserver.example.com.plist. The setup file name is one of these; when searching for setup files, target servers search for names in the order listed: <MAC-address-of-server>.plist (include any leading zeros but omit colons). For example, 0030654dbcef.plist. <IP-address-of-server>.plist. For example, 10.0.0.4.plist. <partial-DNS-name-of-server>.plist. For example, myserver.plist. <built-in-hardware-serial-number-of-server>.plist (first 8 characters only). For example, ABCD1234.plist. <fully-qualified-DNS-name-of-server>.plist. For example, myserver.example.com.plist. <partial-IP-address-of-server>.plist. For example, 10.0.plist (matches 10.0.0.4 and 10.0.1.2).
82 Chapter 4 Initial Server Setup
generic.plist (a file that any server will recognize, used to set up servers that need the same setup values). If the serial number specified in the file isnt site licensed, after setup you need to manually set it. Use Server Admin or the following command in the Terminal application: serversetup -setServerSerialNumber. The correct passphrase is provided to the server if the setup data is encrypted. You can use Server Assistant to supply a passphrase interactively, or you can supply the passphrase in a text file. Place the passphrase file on a volume mounted locally on the target server in /Volumes/*/Auto Server Setup/<pass-phrase-file>. The passphrase file can have one of these names; target servers search for names in the order listed: <MAC-address-of-server>.pass (include any leading zeros but omit colons). For example, 0030654dbcef.pass. <IP-address-of-server>.pass. For example, 10.0.0.4.pass. <partial-DNS-name-of-server>.pass. For example, myserver.pass. <built-in-hardware-serial-number-of-server>.pass (first 8 characters only). For example, ABCD1234.pass. <fully-qualified-DNS-name-of-server>.pass. For example, myserver.example.com.pass. <partial-IP-address-of-server>.pass. For example, 10.0.pass (matches 10.0.0.4 and 10.0.1.2). generic.pass (a file that any server will recognize). If the server software serial number isnt site licensed, after setup you need to manually set it. Use Server Admin or the following command in Terminal: serversetup -setServerSerialNumber.
83
If you want to reuse saved setup data after reinstalling a server, you can store the servers setup file(s) in a small local partition that isnt erased when you reinstall the server. The setup files are automatically detected and reused after each reinstallation. Using Setup Data Saved in a Directory Using this approach offers the most unattended way to set up multiple servers, but it requires that you have a DHCP and directory infrastructure in place. Using Server Assistant, you save setup data to an existing directory the computer youre using is configured to access and from which you want newly installed servers to retrieve setup data. The schema of the directory must support stored setup data. Open Directory has built-in support for stored setup data. If you want to store setup data in a non-Apple directory, you first need to extend its schema as the Open Directory administration guide describes. When you save setup data in a directory, a target server automatically detects and uses the setup data if: The target server receives its network names (host name, computer name, and local hostname) and its port configuration from a DHCP server. The DHCP server is configured to identify the IP address of the directory server where the setup data resides. See the network services administration guide for DHCP server configuration instructions. The directory and DHCP servers are running.
84
The setup data is stored in the directory in a path named /AutoServerSetup/ and a record having one of these names; target servers search for names in the order listed: <MAC-address-of-server> (include any leading zeros but omit colons). For example, 0030654dbcef. <IP-address-of-server>. For example, 10.0.0.4. <partial-DNS-name-of-server>. For example, myserver. <built-in-hardware-serial-number-of-server> (first 8 characters only). For example, ABCD1234. <fully-qualified-DNS-name-of-server>. For example, myserver.example.com. <partial-IP-address-of-server>. For example, 10.0 (matches 10.0.0.4 and 10.0.1.2). generic (a record that any server will recognize, used to set up servers that need the same setup values). If the serial number specified in the file isnt site licensed, after setup you need to manually set it. Use Server Admin or the following command in the Terminal application: serversetup -setServerSerialNumber. The correct passphrase is provided to the server (setup data stored in a directory should always be encrypted). You can use Server Assistant to supply a passphrase interactively, or you can supply the passphrase in a text file. Place the passphrase file on a volume mounted locally on the target server in /Volumes/*/Auto Server Setup/<pass-phrase-file>, where * is any device mounted under /Volumes. A target server searches through volumes alphabetically by device name.
85
The passphrase file can have one of these names; target servers search for names in the order listed: <MAC-address-of-server>.pass (include any leading zeros but omit colons). For example, 0030654dbcef.pass. <IP-address-of-server>.pass. For example, 10.0.0.4.pass. <partial-DNS-name-of-server>.pass. For example, myserver.pass. <built-in-hardware-serial-number-of-server>.pass (first 8 characters only). For example, ABCD1234.pass. <fully-qualified-DNS-name-of-server>.pass. For example, myserver.example.com.pass. <partial-IP-address-of-server>.pass. For example, 10.0.pass (matches 10.0.0.4 and 10.0.1.2). generic.pass (a file that any server will recognize). If the server software serial number isnt site licensed, after setup you need to manually set it. Use Server Admin or the following command in Terminal: serversetup -setServerSerialNumber. Keeping Backup Copies of Saved Setup Data Saved setup data isnt only useful for automating the setup of multiple servers. It also provides a way to set up servers again if you ever need to reinstall server software on them. You can keep backup copies of setup data files on a network file server. Alternatively, you can store setup data files in a local partition that wont be erased when you reinstall server software.
86
87
After setup, use the Directory Access or Server Admin applications to refine the servers directory configuration, if necessary. Directory Access lets you set up connections to multiple directories, including Active Directory and other non-Apple directory systems, and specify a search policy (the order in which the server should search through the domains). Server Admin lets you set up replicas of an Open Directory master and manage other aspects of a servers directory service configuration. The Open Directory administration guide can help you decide which of the directory usage setup options is right for you. If youre upgrading, the best choice is usually No change, and if youre setting up a new server, the simplest choice is Standalone Server. After initial server setup, you can use Directory Access or Server Admin to adjust and finalize the directory setup. Not Changing Directory Usage When Upgrading When setting up a server that youre upgrading to version 10.4 from version 10.3.9 or 10.2.8, and you want the server to use the same directory setup its been using, choose No change in the Directory Usage pane in Server Assistant. Even when you want to change the servers directory setup, selecting No change is the safest option, especially if youre considering changing a servers shared directory configuration. Changing from hosting a directory to using another servers shared directory or vice versa, or migrating a shared NetInfo domain to LDAP are examples of directory usage changes you should make after server setup in order to preserve access to directory information on your network.
88
See the Open Directory administration guide for information about all the directory usage options available to you and how to use Directory Access and Server Admin to make directory changes. See the upgrading and migrating guide for information on how to continue using existing directory data when you change directory service settings. If you choose the No change option and the server wasnt using a Password Server, Open Directory authentication will be set up. When you add users to any Apple directory domain residing on the server, their passwords are validated by default using Open Directory authentication. Setting Up a Server as a Standalone Server When you dont want the server youre setting up to host or use shared directory information, choose the directory usage option called Standalone Server in Server Assistant. This option sets up only a local NetInfo domain on the server. Because its a local domain, the data stored in it is accessible only to the server youre setting up. Open Directory authentication is also set up on the server. By default, Open Directory authentication is used when a user is added to the local domain. When a user attempts to log in to the server or use one of its services that require authentication, the server authenticates the user by consulting the local database. If the user has an account on the system and supplies the appropriate password, authentication succeeds.
89
Setting Up a Server as an Open Directory Master When you want a server youre setting up to host an LDAP directory for use by itself and other computers, make sure the server is connected to the network when you set it up and choose the directory usage option called Open Directory Master in Server Assistant. This option: Sets up an LDAP directory on the server. Creates a directory domain administrator for the directory. This is the administrator who has the privileges required to change information stored in the directory, such as accounts and managed network views. Turns on Open Directory authentication for validating all users defined in the local NetInfo domain and the LDAP directory. Sets up a Kerberos KDC on the server. Before an Open Directory master can provide Kerberos and single sign-on authentication, DNS must be properly configured. DNS must resolve the fully qualified DNS names of all servers, including the Open Directory master itself, to their IP addresses and provide the corresponding reverse lookups. Optionally enables a Windows Primary Domain Controller on the server, letting your server authenticate and provide home directories for users of computers with Windows NT4.x, Windows 9x, and Windows XP. To set up another server as an Open Directory replica and optional backup domain controller (BDC) for a PDC, use Server Admin after setup is complete. To configure additional directory connectivity, use Directory Access. See the Open Directory administration guide for more information about directory configuration.
90
Open Directory authentication is set up on the server and used by default for any users added to domains that reside on the server. Setting Up a Server to Connect to a Directory System When you want a server youre setting up to use a shared directory on another computer, choose the directory usage option called Connected to a Directory System in Server Assistant. Then choose one of the following options: As Specified by DHCP Server, which sets up a server to use a DHCP server to obtain information for connecting to a directory system. The DHCP server must be set up to provide the address and search base of an LDAP server (DHCP option 95) or the address and tag of a legacy NetInfo server. The directory service and DHCP service are independent; they dont have to be provided by the same server. Open Directory Server, which lets you indicate that the address of the Mac OS X Server hosting the LDAP directory should be obtained using DHCP or specify the IP address or DNS name of the server. NetInfo Server, which lets you indicate how the server being set up should locate the server hosting a shared domain. Choose one or more of these: Broadcast, DHCP, and Static IP Address, the last of which requires that you supply the NetInfo servers IP address and the NetInfo tag of the directory domain, usually network. Other Directory Server, which is the selection to make when you want to configure access to non-Apple directories such as Active Directory, Novell eDirectory, or an NIS domain. After server setup, use Directory Access to specify the servers directory configuration. See the Open Directory administration guide for more information.
91
You can set up a server to connect to a shared NetInfo directory on Mac OS X Server version 10.0 and later or an LDAP directory on version 10.2 or version 10.3. However, you may not be able to take advantage of some features: VPN service on version 10.3 or later requires MS-CHAP2 authentication, which isnt available with version 10.2 and earlier. Replication isnt supported by version 10.2 or earlier. Kerberos configuration is much more complex on version 10.2. In addition, automatic synchronization of Kerberos and Password Server requires version 10.3 or later. On version 10.3 and earlier, trusted directory binding, support for LDAP subdomains, and directory access controls arent available.
92
93
94
6 In the Language pane, specify the language you want to use to administer the target server. 7 Use step 8 if you want to use saved setup data. Otherwise, use step 9. 8 In the Language pane, choose File > Open Configuration File or File > Open Directory Record to load the saved setup data you want to use. If the saved setup data is encrypted, type the passphrase when prompted. Optionally choose View > Jump to Review to review the setup data, then use Go Back as necessary to change it. 9 Click Continue and enter the setup data as you move through the Assistants panes, following the onscreen instructions. Make sure that any DHCP or DNS servers you specify for the server youre setting up to use are running. 10 After all setup data has been specified, review the summary displayed by Server Assistant and optionally click Go Back to change data. 11 To save the setup data as a text file or in a form you can use for automatic server setup (a saved setup file or saved directory record), click Save As. To encrypt the file or record, select Save in Encrypted Format then enter and verify a passphrase. You must supply the passphrase before an encrypted setup file can be used by a target server. 12 To initiate setup of the remote target server, click Apply. When server setup is complete, click Continue Now. The target server restarts automatically and you can log in as the server administrator user created during setup to configure services.
96
7 Use step 8 if you want to use saved setup data. Otherwise, use step 9. 8 In the Language pane, choose File > Open Configuration File or File > Open Directory Record to load the saved setup data you want to use. If the saved setup data is encrypted, type the passphrase when prompted. Optionally choose View > Jump to Review to review the setup data, then use Go Back as necessary to change it. 9 Click Continue and enter the setup data as you move through the Assistants panes, following the onscreen instructions. When prompted, enter the server software serial number for each target server. 10 After all setup data has been specified, review the summary displayed by Server Assistant and optionally click Go Back to change data. 11 To save the setup data as a text file or in a form you can use for automatic server setup (a saved setup file or saved directory record), click Save As. To encrypt the file or record, select Save in Encrypted Format then enter and verify a passphrase. You must supply the passphrase before an encrypted setup file can be used by a target server. 12 To initiate server setup, click Apply. When server setup is complete, click Continue Now. The target servers restart automatically and you can log in as the server administrator user created during setup to configure their services.
98
To set up multiple remote servers interactively one at a time: 1 Fill out the Mac OS X Server Worksheet for Version 10.4 or Later for each server you want to set up. The worksheet is located on the Mac OS X Server installation disc in the Documentation folder. Supplemental information appears in Information You Need on page 80. The Preface tells you where else you can find the worksheet. 2 Make sure the target servers and any DHCP or DNS servers you want them to use are running. 3 On an administrator computer that can connect to all the target servers, open Server Assistant. Its located in /Applications/Server/. You dont have to be an administrator on the administrator computer to use Server Assistant. 4 In the Welcome pane, select Set up a remote server and click Continue. 5 In the Destination pane, check one of the remote servers you want to set up. Then type the preset password in the Password field for the server and click Continue to connect to the server. If you dont see the server you want to set up on the list, click Add to add it. 6 In the Language pane, specify the language you want to use to administer the target server. 7 Use step 8 if you want to use saved setup data. Otherwise, use step 9. 8 In the Language pane, choose File > Open Configuration File or File > Open Directory Record to load the saved setup data you want to use. If the saved setup data is encrypted, type the passphrase when prompted. Optionally choose View > Jump to Review to review the setup data, then use Go Back as necessary to change it.
99
9 Click Continue and enter the setup data as you move through the Assistants panes, following the onscreen instructions. 10 After all setup data has been specified, review the summary displayed by Server Assistant and optionally click Go Back to change data. 11 To save the setup data as a text file or in a form you can use for automatic server setup (a saved setup file or saved directory record), click Save As. To encrypt the file or record, select Save in Encrypted Format then enter and verify a passphrase. You must supply the passphrase before an encrypted setup file can be used by a target server. 12 To initiate server setup, click Apply. 13 To work with another servers setup before the setup you started is complete, choose File > New Window and repeat steps 4 through 12. When its setup is complete, the target server restarts automatically and you can log in as the server administrator user created during setup to configure its services.
100
One way to use this approach is to use Server Assistants offline mode, which lets you work with setup data without connecting to specific servers. You specify setup data, then save it in a file or in a directory accessible from target servers, as the next two sections describe. Target servers on which Mac OS X Server version 10.4 software has been installed automatically detect the presence of the saved setup information and use it to set themselves up. You can define generic setup data. Generic setup data can be used to set up any server. For example, you might want to define generic setup data for a server thats on order, or to configure 50 Xserve computers you want to be identically configured. Alternatively, you can save setup data thats specifically tailored for a particular server. Important: When you perform an upgrade installation, make sure that saved setup data wont be inadvertently detected and used by the server. If saved setup data is used, existing server settings will be overwritten by the saved settings. See See How a Server Searches for Saved Setup Data on page 81. for more information.
101
2 On an administrator computer, open Server Assistant. Its in /Applications/Server/. You dont need to be an administrator on the administrator computer to use Server Assistant. 3 In the Welcome pane, select Save setup information in a file or directory record to work in offline mode, which doesnt require a server connection. 4 In the Language pane, specify the language you want to use to administer the target server or servers. 5 If you want to create a new setup file, use step 6. If you want to work with a setup file that already exists, use step 7. If you intend to create a generic setup file because you want to use the file to set up more than one server, dont specify network names (computer name and local hostname) and make sure that each network interface (port) is set to be configured Using DHCP or Using BootP. 6 Click Continue and enter the setup data as you move through the Assistants panes, following the onscreen instructions. 7 In the Language pane, choose File > Open Configuration File or File > Open Directory Record to load the saved setup data you want to work with. If the saved setup data is encrypted, type the passphrase when prompted. Optionally choose View > Jump to Review to review the setup data, then use Go Back as necessary to change it. 8 In the Network Interfaces pane, click Add to specify network interfaces. 9 After all the setup data has been specified, review the summary displayed by Server Assistant and optionally click Go Back to change data. 10 Click Save As, then select Configuration File.
102
11 To encrypt the file, select Save in Encrypted Format then enter and verify a passphrase. You must supply the passphrase before an encrypted setup file can be used by a target server. 12 Click OK, navigate to the location where you want to save the file, name the file using one of the following options, and click Save; when searching for setup files, target servers search for names in the order listed: <MAC-address-of-server>.plist (include any leading zeros but omit colons). For example, 0030654dbcef.plist. <IP-address-of-server>.plist. For example, 10.0.0.4.plist. <partial-DNS-name-of-server>.plist. For example, myserver.plist. <built-in-hardware-serial-number-of-server>.plist (first 8 characters only). For example, ABCD1234.plist. <fully-qualified-DNS-name-of-server>.plist. For example, myserver.example.com.plist. <partial-IP-address-of-server>.plist. For example, 10.0.plist (matches 10.0.0.4 and 10.0.1.2). generic.plist (a file that any server will recognize, used to set up servers that need the same setup values). 13 Place the file in a location where the target server or servers can detect it. A server can detect a setup file if it resides on a volume mounted locally in /Volumes/*/ Auto Server Setup/, where * is any device mounted under /Volumes. The device can be the servers hard drive or an iPod, DVD, CD, FireWire drive, USB drive, or other device plugged into the server.
103
For example, if you have an iPod named AdminiPod, the path used would be /Volumes/ AdminiPod/Auto Server Setup/<setup-file-name>. 14 If the setup data is encrypted, make the passphrase available to the target server or servers. You can supply the passphrase interactively using Server Assistant, or you can provide it in a text file. To provide the passphrase in a file, use step 15. To provide it interactively, use step 16. 15 To provide a passphrase in a file, create a new text file and type the passphrase for the saved setup file on the first line. Save the file using one of the following names; target servers search for names in the order listed: <MAC-address-of-server>.pass (include any leading zeros but omit colons). For example, 0030654dbcef.pass. <IP-address-of-server>.pass. For example, 10.0.0.4.pass. <partial-DNS-name-of-server>.pass. For example, myserver.pass. <built-in-hardware-serial-number-of-server>.pass (first 8 characters only). For example, ABCD1234.pass. <fully-qualified-DNS-name-of-server>.pass. For example, myserver.example.com.pass. <partial-IP-address-of-server>.pass. For example, 10.0.pass (matches 10.0.0.4 and 10.0.1.2). generic.pass (a file that any server will recognize). Put the passphrase file on a volume mounted locally on the target server in /Volumes/ */Auto Server Setup/<pass-phrase-file>, where * is any device mounted under / Volumes. 16 To provide a passphrase interactively, use Server Assistant on an administrator computer that can connect with the target server.
104 Chapter 4 Initial Server Setup
In the Welcome or Destination pane, choose File > Supply Passphrase. In the dialog box, enter the target servers IP address, password, and the passphrase. Click Send. 17 If youre using a generic setup file, and the serial number isnt site licensed, after setup you must specify the servers serial number by using Server Admin or the command line. In Server Admin, select the server, click Settings, and click General. Alternatively, in the Terminal application, use ssh to connect with the server and type the serversetup -setServerSerialNumber command. See the command-line administration guide for a description of the layout of a saved setup file and more information about the serversetup command.
105
The worksheet is located on the Mac OS X Server installation disc in the Documentation folder. Supplemental information appears in Information You Need on page 80. The Preface tells you where else you can find the worksheet. 3 On an administrator computer, open Server Assistant. Its in /Applications/Server/. You dont have to be an administrator on the administrator computer to use Server Assistant. 4 In the Welcome pane, select Save setup information in a file or directory record to work in offline mode, which doesnt require a server connection. 5 In the Language pane, specify the language you want to use to administer the target server or servers. 6 If you want to create a new setup, use step 7. If you want to work with a setup that already exists, use step 8. If youre creating generic setup data, dont specify network names (computer name and local hostname) and make sure that each network interface (port) is set to be configured Using DHCP or Using BootP . 7 Click Continue and enter the setup data as you move through the Assistants panes, following the onscreen instructions. 8 In the Language pane, choose File > Open Configuration File or File > Open Directory Record to load the saved setup data you want to work with. If the saved setup data is encrypted, type the passphrase when prompted. Optionally choose View > Jump to Review to review the setup data, then use Go Back as necessary to change it. 9 In the Network Interfaces pane, click Add to specify network interfaces.
106
10 After all the setup data has been specified, review the summary displayed by Server Assistant and optionally click Go Back to change data. 11 Click Save As, then select Directory Record. 12 To encrypt the file, select Save in Encrypted Format then enter and verify a passphrase. You must supply the passphrase before an encrypted directory record can be used by a target server. 13 Specify the directory where you want to save the setup, name the setup record, and click OK. When prompted, enter information required to authenticate yourself as a directory domain administrator. Settings are saved in the directory in AutoServerSetup. Target servers search for record names in the following order: <MAC-address-of-server> (include any leading zeros but omit colons). For example, 0030654dbcef. <IP-address-of-server>. For example, 10.0.0.4. <partial-DNS-name-of-server>. For example, myserver. <built-in-hardware-serial-number-of-server> (first 8 characters only). For example, ABCD1234. <fully-qualified-DNS-name-of-server>. For example, myserver.example.com. <partial-IP-address-of-server>. For example, 10.0 (matches 10.0.0.4 and 10.0.1.2). generic (a record that any server will recognize, used to set up servers that need the same setup values). 14 Make sure the proper infrastructure is in place so that servers you want to use the stored setup record can find it.
107
The directory server storing the setup record needs to be running. DHCP needs to be configured to identify the directory server to the target servers using Option 95. In addition, you may need to have DNS configured if your directory data includes DNS names. See Defining Server Setup Infrastructure Requirements on page 46 for some additional infrastructure information. The Open Directory and network services administration guides provide instructions for setting up directories and DHCP. 15 If the setup data is encrypted, make the passphrase available to the target server or servers. You can supply the passphrase interactively, using Server Assistant, or you provide it in a text file. To provide the passphrase in a file, use step 16. To provide it interactively, use step 17. 16 To provide a passphrase in a file, create a new text file and type the passphrase for the saved setup file on the first line. Save the file using one of the following names; target servers search for names in the order listed: <MAC-address-of-server>.pass (include any leading zeros but omit colons). For example, 0030654dbcef.pass. <IP-address-of-server>.pass. For example, 10.0.0.4.pass. <partial-DNS-name-of-server>.pass. For example, myserver.pass. <built-in-hardware-serial-number-of-server>.pass (first 8 characters only). For example, ABCD1234.pass. <fully-qualified-DNS-name-of-server>.pass. For example, myserver.example.com.pass. <partial-IP-address-of-server>.pass. For example, 10.0.pass (matches 10.0.0.4 and 10.0.1.2). generic.pass (a file that any server will recognize).
108 Chapter 4 Initial Server Setup
Put the passphrase file on a volume mounted locally on the target server in /Volumes/ */Auto Server Setup/<pass-phrase-file>, where * is any device that is mounted under the directory /Volumes. 17 To provide a passphrase interactively, use Server Assistant on an administrator computer that can connect with the target server. In the Welcome or Destination pane, choose File > Supply Passphrase. In the dialog box, enter the target servers IP address, password, and the passphrase. Click Send. 18 If youre using a generic setup record and the server serial number isnt site licensed, you must specify the servers serial number by using Server Admin or the command line after setup. In Server Admin, select the server, click Settings, and click General. To use the command line, in the Terminal application use ssh to connect with the server and type the serversetup -setServerSerialNumber command. See the Open Directory administration guide for a description of the schema of setup data saved in a directory. See the command-line administration guide for information about serversetup.
109
If the server of interest isnt listed, click Add to list it. Select the server and review the information displayed. You can save a list of servers youre interested in monitoring in the Destination pane using File > Save Server List. When you want to monitor the status of those servers, choose File > Load Server List.
110
If a local server setup fails, you can restart the computer, rerun Server Assistant, and reinitiate setup, or you can reinstall the server software.
111
Setting Up Services
The following sections survey initial setup of individual services and tell you where to find complete instructions for tailoring services to support your needs.
3 Click the New User button. 4 Specify user settings in the panes that appear. You can set up user accounts by using Workgroup Manager to import settings from a file. The user management guide tells you how to define user settings, set up group accounts and computer lists, define managed preferences, and import accounts.
4 Select a volume or folder you want to share from the All list. 5 Click General, then select Share this item and its contents. 6 Click the other tabs to specify attributes for the share point. The file services administration guide provides instructions for managing share points and for configuring file sharing using all the protocols.
114
To turn on web service if its not running: 1 If you already have the HTML files for your main site, copy them into the Documents folder in the /Library/WebServer/ directory. If the files that make up your site are organized in folders, copy the entire folder structure to the Documents folder. For a user site, the files go into the Sites folder in the users home directory. Make sure the files and folders you want web service to present are readable by user www. If you plan to enable WebDAV, make sure the appropriate files and folders are writable by user www. If you dont have your own HTML files yet, you can still turn on web service to see how it works using the default start pages provided with Mac OS X Server. 2 Open Server Admin. 3 In the list beneath the server of interest, click the button for web service. 4 If it isnt running, click the Start Service button in the toolbar.
115
The web technologies administration guide describes the many features of web service, including how to set up SSL for a site, enable WebMail, and use WebDAV for file sharing.
116
117
118
Server Administration
119
Workgroup Manager
page 124
Server Admin
page 134 page 146 page 142 page 143 page 144
120
To Manage media and prepare it for streaming or progressive download Monitor and control other Macintosh computers Administer a server using a UNIX command shell Monitor local or remote Xgrid controllers, grids, and jobs
The next section describes how to set up a computer on which you can use these applications and tools.
Mac OS X Servers
Once youve installed and set up a Mac OS X Server that has a display, keyboard, and optical drive, its already an administrator computer. To make a computer with Mac OS X into an administrator computer, you need to install additional software. To enable remote administration of Mac OS X Server from a Mac OS X computer: 1 Make sure the Mac OS X computer has Mac OS X version 10.4 or later installed.
122 Chapter 5 Server Administration
In addition, make sure the computer has at least 128 MB of RAM and 1 GB of unused disk space. 2 Insert the Mac OS X Server Admin Tools CD. 3 Open the Installer folder. 4 Start the installer (ServerAdministrationSoftware.mpkg) and follow the onscreen instructions.
Installer
Use the Installer to install server software on a local server from the Mac OS X Server installation disc. The Installer lets you perform: A clean installation of Mac OS X Server, which installs version 10.4 after erasing and formatting a target disk. An upgrade installation, which upgrades Mac OS X Server version 10.3.9 or 10.2.8 to version 10.4 without erasing any data. A new installation of Mac OS X Server on a volume that has no Mac OS X system files on it. See Chapter 3, Installing Server Software, for information about how to use the Installer.
123
Server Assistant
Server Assistant (located in /Applications/Server/) is used for: Remote server installations Initial setup of a local server Initial setup of one or more remote servers Preparing data for automated server setups See Chapter 4, Initial Server Setup, for information about how to use Server Assistant. You can also click the Learn More button in Server Assistant for usage information.
Directory Access
Directory Access is the primary application for setting up a Mac OS X computers connections to Open Directory, Active Directory, and other directory domains as well as defining the computers search policy and service discovery protocols. Directory Access is installed on both Mac OS X Server computers and Mac OS X computers in /Applications/Utilities/. For information about how to use Directory Access, see the Open Directory administration guide or Directory Access help.
Workgroup Manager
You use Workgroup Manager to administer accounts: user accounts, group accounts, and computer lists. You also use it to set preferences for Mac OS X users, manage sharing, set up managed network views, and access the Inspector, an advanced feature that lets you do raw editing of Open Directory entries.
124 Chapter 5 Server Administration
Information about using Workgroup Manager appears in several documents: The user management guide explains how to use Workgroup Manager for account and preference management. This guide also explains how to configure managed network views and how to import and export accounts. The file service administration guide explains how to use Sharing in Workgroup Manager to manage share points. The Open Directory administration guide describes how to use the Inspector. The Windows services administration guide describes how to use Workgroup Manager to manage users of Windows workstations. The print administration guide describes how to use Workgroup Manager to define print quotas for individual users. To retrieve online information, use the Help menu. It provides help for administration tasks you accomplish using Workgroup Manager as well as other Mac OS X Server topics.
125
To authenticate as an administrator for a particular server, local or remote, enter the servers IP address or DNS name in the login dialog box, or click Browse to choose from a list of servers. Specify the user name and password for an administrator of the server, then click Connect. Use this approach when youll be working most of the time with a particular server. After opening Workgroup Manager, you can open a Workgroup Manager window for a different computer by clicking Connect in the toolbar or choosing Server > Connect. Important: When you connect to a server in Workgroup Manager, make sure the long or short user name you specify matches the capitalization in the user account.
Administering Accounts
After you log in to Workgroup Manager, the account window appears, showing a list of user accounts. Initially, accounts listed are those stored in the last directory node of the servers search path. When you use other Workgroup Manager windows, such as Preferences or Sharing, click Accounts in the toolbar to return to the account window. To specify the directory or directories that store accounts you want to work with, click the small globe icon. To work with different accounts in different Workgroup Manager windows, click New Window in the toolbar. To administer the accounts listed, click the Users, Groups, or Computer Lists button on the left side of the window. You can filter the accounts listed by using the pop-up search list above the accounts list. To refresh the accounts list, click the Refresh button in the toolbar.
126
To simplify defining an accounts initial attributes when you create the account, you can use presets. A preset is an account template. To create a preset, select an account, set up all the values the way you want them, then choose Save Preset from the Presets pop-up menu at the bottom of the window. If you want to work with only accounts that satisfy very specific criteria, click Search in the toolbar. The Search features include the option for batch editing selected accounts. To import or export accounts, select the accounts of interest, then choose Server > Import or Server > Export, respectively.
127
128
Click Details to use the preference editor to work with preference manifests.
129
Use the pop-up menu above the Name list to select the records of interest. For example, you can work with users, groups, computers, share points, and many other directory objects.
130
Managing Sharing
To work with share points and access control lists, click the Sharing icon in the Workgroup Manager toolbar.
131
132
133
To include predefined users and groups in the user and group lists, choose View > Show System Users and Groups. To open Server Admin so you can monitor and work with services on particular servers, click the Admin icon in the toolbar.
Server Admin
You use Server Admin to administer services on one or more Mac OS X Server computers. Server Admin also lets you specify settings that support multiple services, such as creating and managing SSL certificates and specifying which users and groups can access services. Information about using Server Admin to manage services appears in the individual administration guides and in onscreen information accessible by using the Help menu in Server Admin.
134
To add a server to the Computers & Services list, click Add Server in the toolbar and log in to the server; the next time you open Server Admin, any server youve added is displayed in the list. To remove a server from the Computers & Services list, select the server, choose Server > Disconnect, and choose Server > Remove Server. To limit the items that appear in the list, use the pop-up menu above the list to select the items you want listed. To change the order of servers in the list, drag a server to the new location in the list.
Chapter 5 Server Administration 135
If a server in the Computers & Services list appears gray, double-click the server or click the Connect button in the toolbar to log in again. Check the Add to Keychain option while you log in to enable autoreconnect the next time you open Server Admin. To work with general server settings, select a server in the Computers & Services list. Click Overview to view information about the server. Click Logs to view the system log and software update log. Click System to view information about ports and volumes the server uses. Click Graphs to view a pictorial history of server activity. Click Update to use Software Update to update the servers software. Click Settings to view or change the servers network settings, server software serial number, SSL certificates, service access controls, and other information. When you click Settings, you have access to several panes: Click General to work with the server serial number or to enable SNMP, NTP, Macintosh Manager, or SSH. SNMP is the abbreviation for Simple Network Management Protocol, a standard that facilitates computer monitoring and management. The server uses the open source net-snmp project for its SNMP implementation. While none of the server administration tools use or require SNMP, enabling it lets the server be monitored and managed from third-party software such as HP OpenView. Use the NTP (Network Time Protocol) checkbox to enable NTP service. For information about NTP, see the network services administration guide.
136
Macintosh Manager is enabled only if an upgrade installation was used to upgrade a version 10.2 or 10.3 server to version 10.4. See Upgrading and Migrating From an Earlier Version of Mac OS X Server on page 43 for more information about upgrade installations. SSH is the abbreviation for Secure Shell. The server uses the open source OpenSSH project for its SSH implementation. When you enable SSH, you can use commandline tools to remotely administer the server. SSH is also used for other remote server administration tasks, such as initial server setup, Sharing management, and displaying file system paths and the contents of folders in the server administration tools. SSH must be enabled while creating an Open Directory replica, but can be disabled afterwards. Click Network to view or change the servers computer name or local hostname. The computer name is what a user sees when browsing the network (/Network). The local hostname name is usually derived from the computer name, but can be changed. Click Date & Time to set the servers date and time. Click Certificates to manage the servers SSL certificates. See Using SSL for Remote Server Administration on page 141 for more information. Click Access to control user access to some services. You can set up the same access to all services, or you can select a service and customize its access settings. Access controls are simple. Choose between letting all users and groups use services or letting only selected users and groups use services.
137
Administering Services
To work with a particular service on a server selected in the Computers & Services list of Server Admin, click the service in the list under the server. You can view information about a service (logs, graphs, and so forth) and manage its settings. To start or stop a service, select it then click Start Service or Stop Service in the toolbar. To copy service settings from one server to another or to save service settings in a property-list file for reuse later, use the drag-and-drop icon when its visible in the lower right of the Server Admin window. Select the service whose settings you want to copy, and click Settings to display the settings. Then click the drag-and-drop icon; this action changes the icon to a miniature version of the Settings window.
To save the settings in a property-list file, drag the miniature window to your desktop or to a folder. To apply the settings on a different server, open another Server Admin window, then drag the miniature settings window to the service you want to inherit its values.
138
You can disable changes to service settings by unauthorized individuals by using Server Admins view locking options. To disable changes to service settings following a period of inactivity, choose Server Admin > Preferences. Select Auto-lock view after and specify the period, which is 60 minutes by default. To disable changes on demand, choose View > Lock View. To reenable changes, choose View > Unlock View and reauthenticate using the name and password used to log in to the system. Important: To make sure that view locking persists after stopping then restarting Server Admin, dont store a password in the keychain. If you do, be sure to lock the keychain using the Keychain Access application.
139
You can separately specify access controls for individual services, or you can define one set of controls that applies for all services that the server hosts.
140
141
142
143
Server Monitor
You use Server Monitor to monitor local or remote Xserve hardware and trigger email notifications when circumstances warrant attention. Server Monitor shows you information about the installed operating system, drives, power supply, enclosure and processor temperature, cooling blowers, security, and network.
Server Monitor is installed in /Applications/Server/ when you install your server or set up an administrator computer. To open Server Monitor, click the Server Monitor icon in the Dock or double-click the Server Monitor icon in /Applications/Server/. From within Server Admin, choose View > Server Monitor.
144
To identify the Xserve server to monitor, click Add Server, identify the server of interest, and enter user name and password information for an administrator of the server. Use the Update every pop-up menu in the Info pane to specify how often you want to refresh data. Choose File > Export or File > Import to manage different lists of Xserve servers you want to monitor. Choose File > Merge to consolidate lists into one. The system identifier lights on the front and back of an Xserve server light when service is required. Use Server Monitor to understand why the lights are on. You can also turn the lights on to identify a particular Xserve server in a rack of servers by selecting the server and clicking System identifier light in the Info pane. Click Edit Notifications to set up Server Monitor to notify you by email when an Xserve servers status changes. For each server, you set up the conditions for which you want notification. The email message can come from Server Monitor or from the server. Server Monitor keeps logs of Server Monitor activity for each Xserve server. Click Show Log to view a log. The log shows, for example, Server Monitor attempts to contact the server and whether a connection was successful. The log also shows server status changes. (The logs dont include system activity on the server.) For additional information, see Server Monitor help.
145
146
You can use ARD to control and observe computer screens. You can configure computers and install software. You can conduct one-on-one or one-to-many user interactions to provide help or tutoring. You can perform basic network troubleshooting. And you can generate reports that audit computer hardware characteristics and installed software.
147
You can also use ARD to control installation on a computer that you have started up from an installation disc for Mac OS X Server version 10.4.7 or later, because ARD includes VNC viewer capability. For more information on Apple Remote Desktop, go to: www.apple.com/remotedesktop/
Command-Line Tools
If youre an administrator who prefers to work in a command-line environment, you can do so with Mac OS X Server. From the Terminal application in Mac OS X, you can use the built-in UNIX shells (sh, csh, tsh, zsh, bash) to use tools for installing and setting up server software and for configuring and monitoring services. You can also submit commands from a nonMac OS X computer. When managing remote servers, you conduct secure administration by working in a Secure Shell (SSH) session. The command-line administration guide describes Terminal, SSH, server administration commands, and configuration files.
148
Xgrid Admin
You can use Xgrid Admin to monitor local or remote Xgrid controllers, grids, and jobs. You can add controllers and agents to monitor and specify agents that have not yet joined a grid. You also use Xgrid Admin to pause, stop, or restart jobs. Xgrid Admin is installed in /Applications/Server/ when you install your server or set up an administrator computer. To open Xgrid Admin, double-click the Xgrid Admin icon in /Applications/Server/. For additional information, see Xgrid Admin help.
149
A
administrator computer setup 122 Apple Remote Desktop (ARD) 147 automating server setup 101 automating server software installation 72
C
command-line tools 148
D
Directory Access 124 documentation 17
E
exporting users and groups 127
G
Gateway Setup Assistant 142
I
importing accounts 127 installation 21
installation planning changing the servers host name after setup 50 collecting and organizing information 51 defining a migration strategy 43, 56 defining an integration strategy 45 defining physical requirements 45 determining a strategy 51 determining server setup infrastructure requirements 46 determining services to host 41 goals 39 identifying servers youll set up 41 making sure hardware is available 48 minimizing the need to relocate servers after setup 48
setting up a team 40 Installer 123 installing server software automating installation 72 hardware-specific tasks 59 information you need 55 interactive remote installation 65 on Mac OS X version 10.4 computers 71 preset password 59 system requirements 54 using Installer locally 63 using the installer tool 73
M
migration 43, 56
N
non-Mac OS X workstation setup 123
P
PackageMaker 143 POR.err 110 POR.status 111
151
Index
Index
S
Server Admin 134 administering services 138 controlling access to services 140 customizing the Server Admin environment 142 opening and authenticating 134 using SSL for remote server administration 141 working with servers 135 server administration guides 17 Server Assistant 124 Server Monitor 144 server setup 21 automated setup using directory data 105 automatic setup using data in a file 101 basic settings that are established 30 information you need 80
keeping backup copies of saved setup data 86 local interactive setup 94 offline mode 101 Open Directory usage 87 remote interactive batch setup 97 remote interactive multiserver setup 98 remote interactive setup 95 saving setup data in a directory 84 saving setup data in a file 82 status monitoring 109 service setup 112 SSH 148 System Image Utility 143
V
version 10.3 server management 149
W
Windows migration from 44 Workgroup Manager 124 administering accounts 126 configuring managed network views 132 customizing the Workgroup Manager environment 133 defining managed preferences 128 managing sharing 131 opening and authenticating 125 working with directory data 130
T
Terminal 148
U
UNIX shells 148 upgrading from an earlier server version 43
X
Xgrid Admin 149
152
Index