Mac OS X Server Command-Line Administration

034-2454_Cvr

10/15/03

11:47 AM

Page 1

Mac OS X Server

Command-Line

Administration

For Version 10.3 or Later

LL2354.book Page 2 Monday, October 20, 2003 9:47 AM

? Apple Computer, Inc.

? 2003 Apple Computer, Inc. All rights reserved.

The owner or authorized user of a valid copy of

Mac OS X Server software may reproduce this

publication for the purpose of learning to use such

software. No part of this publication may be reproduced

or transmitted for commercial purposes, such as selling

copies of this publication or for providing paid for

support services.

The Apple logo is a trademark of Apple Computer, Inc.,

registered in the U.S. and other countries. Use of the

¡°keyboard¡± Apple logo (Option-Shift-K) for commercial

purposes without the prior written consent of Apple

may constitute trademark infringement and unfair

competition in violation of federal and state laws.

Apple, the Apple logo, AirPort, AppleScript, AppleShare,

AppleTalk, ColorSync, FireWire, iMac, Keychain, Mac,

Macintosh, Power Mac, Power Macintosh, QuickTime,

Sherlock, and WebObjects are trademarks of Apple

Computer, Inc., registered in the U.S. and other

countries. Extensions Manager and Finder are

trademarks of Apple Computer, Inc.

034-2354/10-24-03

LL2354.book Page 3 Monday, October 20, 2003 9:47 AM

1

Contents

Preface

11

11

11

11

11

12

12

About This Book

Notation Conventions

Summary

Commands and Other Terminal Text

Command Parameters and Options

Default Settings

Commands Requiring Root Privileges

Chapter 1

13

13

14

14

14

15

16

16

17

17

18

18

19

19

19

Typing Commands

Using Terminal

Correcting Typing Errors

Repeating Commands

Including Paths Using Drag-and-Drop

Commands Requiring Root Privileges

Sending Commands to a Remote Server

Sending a Single Command

Updating SSH Key Fingerprints

Notes on Communication Security and servermgrd

Using Telnet

Getting Online Help for Commands

Notes About Specific Commands and Tools

serversetup

serveradmin

Chapter 2

21

21

21

21

22

25

25

25

Installing Server Software and Finishing Basic Setup

Installing Server Software

Automating Server Setup

Creating a Configuration File Template

Creating Customized Configuration Files from the Template File

Naming Configuration Files

Storing a Configuration File in an Accessible Location

Changing Server Settings

3

LL2354.book Page 4 Monday, October 20, 2003 9:47 AM

26

4

26

27

Viewing, Validating, and Setting the Software

Serial Number

Updating Server Software

Moving a Server

Chapter 3

29

29

29

29

30

30

30

Restarting or Shutting Down a Server

Restarting a Server

Examples

Automatic Restart

Changing a Remote Server¡¯s Startup Disk

Shutting Down a Server

Examples

Chapter 4

31

31

31

31

32

32

32

33

33

33

33

34

34

34

35

35

35

35

35

36

36

Setting General System Preferences

Computer Name

Viewing or Changing the Computer Name

Date and Time

Viewing or Changing the System Date

Viewing or Changing the System Time

Viewing or Changing the System Time Zone

Viewing or Changing Network Time Server Usage

Energy Saver Settings

Viewing or Changing Sleep Settings

Viewing or Changing Automatic Restart Settings

Power Management Settings

Startup Disk Settings

Viewing or Changing the Startup Disk

Sharing Settings

Viewing or Changing Remote Login Settings

Viewing or Changing Apple Event Response

International Settings

Viewing or Changing Language Settings

Login Settings

Disabling the Restart and Shutdown Buttons

Chapter 5

37

37

37

38

38

38

38

38

Network Preferences

Network Interface Information

Viewing Port Names and Hardware Addresses

Viewing or Changing MTU Values

Viewing or Changing Media Settings

Network Port Configurations

Creating or Deleting Port Configurations

Activating Port Configurations

Contents

LL2354.book Page 5 Monday, October 20, 2003 9:47 AM

39

39

39

40

41

42

42

42

42

42

43

43

43

43

44

44

44

44

44

44

45

45

Changing Configuration Precedence

TCP/IP Settings

Changing a Server¡¯s IP Address

Viewing or Changing IP Address, Subnet Mask, or Router Address

Viewing or Changing DNS Servers

Enabling TCP/IP

AppleTalk Settings

Enabling and Disabling AppleTalk

Proxy Settings

Viewing or Changing FTP Proxy Settings

Viewing or Changing Web Proxy Settings

Viewing or Changing Secure Web Proxy Settings

Viewing or Changing Streaming Proxy Settings

Viewing or Changing Gopher Proxy Settings

Viewing or Changing SOCKS Firewall Proxy Settings

Viewing or Changing Proxy Bypass Domains

AirPort Settings

Viewing or Changing Airport Settings

Computer, Host, and Rendezvous Name

Viewing or Changing the Computer Name

Viewing or Changing the Local Host Name

Viewing or Changing the Rendezvous Name

Chapter 6

47

47

47

47

47

48

49

50

50

50

51

51

51

51

52

Working With Disks and Volumes

Mounting and Unmounting Volumes

Mounting Volumes

Unmounting Volumes

Checking for Disk Problems

Monitoring Disk Space

Reclaiming Disk Space Using Log Rolling Scripts

Managing Disk Journaling

Checking to See if Journaling is Enabled

Turning on Journaling for an Existing Volume

Enabling Journaling When You Erase a Disk

Disabling Journaling

Erasing, Partitioning, and Formatting Disks

Setting Up a Case-Sensitive HFS+ File System

Imaging and Cloning Volumes Using ASR

Chapter 7

53

53

54

55

Working With Users and Groups

Creating Server Administrator Users

Importing Users and Groups

Creating a Character-Delimited User Import File

Contents

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download