Sun Microsystems System Administration Guide
Total Page:16
File Type:pdf, Size:1020Kb
System Administration Guide: Basic Administration Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 817–1985–10 January 2005 Copyright 2005 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun logo, docs.sun.com, AnswerBook, AnswerBook2, JumpStart, Sun Ray, Sun Blade, Solstice, Solstice AdminSuite, Solstice DiskSuite, Solaris Solve, Java, JavaStation, OpenWindows, Netra, ONC+, J2EE, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. DLT is claimed as a trademark of Quantum Corporation in the United States and other countries. Netscape and Mozilla are trademarks or registered trademarks of Netscape Communications Corporation in the United States and other countries. The OPEN LOOK and Sun™ Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements. U.S. Government Rights – Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. Copyright 2005 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Tous droits réservés. Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l’utilisation, la copie, la distribution, et la décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l’autorisation préalable et écrite de Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun. Des parties de ce produit pourront être dérivées du système Berkeley BSD licenciés par l’Université de Californie. UNIX est une marque déposée aux Etats-Unis et dans d’autres pays et licenciée exclusivement par X/Open Company, Ltd. Sun, Sun Microsystems, le logo Sun, docs.sun.com, AnswerBook, AnswerBook2, JumpStart, Sun Ray, Sun Blade, Solstice, Solstice AdminSuite, Solstice DiskSuite, Solaris Solve, Java, JavaStation, OpenWindows, Netra, ONC+, J2EE, et Solaris sont des marques de fabrique ou des marques déposées, de Sun Microsystems, Inc. aux Etats-Unis et dans d’autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d’autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc. Quantum Corporation riclame DLT comme sa marque de fabrique aux Etats-Unis et dans d’autres pays. Netscape et Mozilla sont des marques de Netscape Communications Corporation aux Etats-Unis et dans d’autres pays. L’interface d’utilisation graphique OPEN LOOK et Sun™ a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d’utilisation visuelle ou graphique pour l’industrie de l’informatique. Sun détient une licence non exclusive de Xerox sur l’interface d’utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l’interface d’utilisation graphique OPEN LOOK et qui en outre se conforment aux licences écrites de Sun. CETTE PUBLICATION EST FOURNIE “EN L’ETAT” ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N’EST ACCORDEE, Y COMPRIS DES GARANTIES CONCERNANT LA VALEUR MARCHANDE, L’APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION PARTICULIERE, OU LE FAIT QU’ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE S’APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU. 041213@10536 Contents Preface15 1 Solaris Management Tools (Road Map) 21 What’s New in Solaris Management Tools?21 Matrix of Solaris Management Tools and Supported Releases23 Feature Descriptions for Solaris10 Management Tools24 Feature Descriptions for Solaris9 Management Tools25 Feature Descriptions for Solaris8 Management Tools26 Availability of Solaris Management Commands27 Solaris10 System Management Commands28 Solaris8 System Management Commands29 For More Information About Solaris Management Tools29 2 Working With the Solaris Management Console (Tasks)31 Solaris Management Console (Overview)31 What Is the Solaris Management Console?31 Solaris Management Console Tools32 Why Use the Solaris Management Console?34 Organization of the Solaris Management Console35 Changing the Solaris Management Console Window36 Solaris Management Console Documentation36 How Much Role-Based Access Control?36 Becoming Superuser (root) or Assuming a Role38 M How to Become Superuser (root) or Assume a Role39 Using the Solaris Management Tools With RBAC (Task Map)40 If You Are the First to Log in to the Console41 3 Creating the Primary Administrator Role 42 M How to Create the First Role (Primary Administrator)43 M How to Assume the Primary Administrator Role44 Starting the Solaris Management Console44 M How to Start the Console as Superuser or as a Role44 Using the Solaris Management Tools in a Name Service Environment (Task Map)46 RBAC Security Files46 Prerequisites for Using the Solaris Management Console in a Name Service Environment48 Management Scope48 /etc/nsswitch.conf File48 M How to Create a Toolbox for a Specific Environment49 M How to Add a Tool to a Toolbox50 M How to Start the Solaris Management Console in a Name Service Environment51 Adding Tools to the Solaris Management Console52 M How to Add a Legacy Tool to a Toolbox52 M How to Install an Unbundled Tool52 Troubleshooting the Solaris Management Console53 M How to Troubleshoot the Solaris Management Console53 3 Working With the Sun Java Web Console (Tasks)55 Java Web Console (Overview)55 What Is the Java Web Console?56 Administering the Java Web Console (Task Map)57 Getting Started With the Java Web Console57 M How to Start Applications From the Java Web Console’s Launch Page58 Configuring the Java Web Console59 Using the Console Debug Trace Log61 M How to Change the Java Web Console Properties61 Installing the Java Web Console Software62 M How to Install the Java Web Console Software63 M How to Remove the Java Web Console Software64 Troubleshooting the Java Web Console Software65 M How to Register an Application With the Java Web Console65 M How to Unregister an Application From the Java Web Console66 Java Web Console Reference Information66 4 System Administration Guide: Basic Administration • January 2005 Java Web Console Security Considerations 67 Specifying Authorizations With the authTypes Tag68 4 Managing User Accounts and Groups (Overview)71 What’s New or Changed in Managing Users and Groups?71 What Are User Accounts and Groups?72 User Account Components72 Guidelines for Using User Names, User IDs, and Group IDs79 Where User Account and Group Information Is Stored80 Fields in the passwd File80 Fields in the shadow File82 Fields in the group File83 Tools for Managing User Accounts and Groups86 Tasks for Solaris User and Group Management Tools86 Customizing a User’s Work Environment90 Using Site Initialization Files91 Avoiding Local System References92 Shell Features92 Shell Environment93 The PATH Variable96 Locale Variables97 Default File Permissions (umask)9898 Examples of User and Site Initialization Files99 Example—Site Initialization File100 5 Managing User Accounts and Groups (Tasks)101 Setting Up User Accounts (Task Map)101 How to Gather User Information102 M How to Customize User Initialization Files103 M How to Add a Group With the Solaris Management Console’s Groups Tool105 M How to Add a User With the Solaris Management Console’s Users Tool106 How to Add Groups and Users With Command-Line Tools107 Setting Up Home Directories With the Solaris Management Console108 M How to Share a User’s Home Directory108 M How to Mount a User’s Home Directory110 Maintaining