Previous | Table of Contents | Next |
THIS CHAPTER DESCRIBES HOW TO SET UP A SUNOS 5.X SYSTEM AS AN NIS+ CLIENT WHEN NIS+ servers are running. To set up an NIS+ client, you first must create DES credentials for the client in the domain. Then, on the client system, you perform these tasks as the superuser:
These tasks are described in detail later in this chapter.
Both the administrator and the client must have the proper credentials and access rights. The administrator can have either:
See Chapter 5, "Introducing the NIS+ Environment," for more information about DES and LOCAL credentials.
After you create the client's credentials in the NIS+ domain, you can complete the setup process on the client system. The directory object for its home domain on the NIS+ server must have Read access for the World and Nobody categories. If you are adding a client to an NIS+ domain that has existing clients, the directory object probably has the proper access permissions.
You can check the access rights for the directory object with the niscat -o command. The access rights are displayed on the fifth line of the output. In this example, the World category has Read access, as shown by the r--- at the end of the access rights string:
rootmaster# niscat -o ESG.Eng.sun.COM. Object Name : ESG Owner : oak.ESG.Eng.sun.COM. Group : admin.ESG.Eng.sun.COM. Domain : Eng.sun.COM. Access Rights : r---rmcdrmcdr--- Time to Live : 12:Ø:Ø Object Type : DIRECTORY Name : 'ESG.Eng.sun.COM.' Type : NIS Master Server : Name : oak.ESG.Eng.sun.COM. Public Key : None. Universal addresses (6) [1] - udp, inet, 127.Ø.Ø.1.Ø.111 [2] - tcp, inet, 127.Ø.Ø.1.Ø.111 [3] - -, inet, 127.Ø.Ø.1.Ø.111 [4] - -, loopback, oak.rpc [5] - -, loopback, oak.rpc [6] - -, loopback, oak.rpc Time to live : 12:Ø:Ø Default Access rights :
If you have Modify rights, you can change the access rights for the directory object using the nischmod command. See the nischmod(1) manual page for more information.
Before you set up a SunOS 5.x system as an NIS+ client, the client's domain must be set up and running NIS+. If you need help setting up NIS+, refer to All About Administering NIS+ by Rick Ramsey.
Before you start the setup procedure, check the items on the following list:
This section provides the steps needed for setting up NIS+ client credentials from the master server. Before you start performing the steps in this section, you need the following information:
Follow these steps to set up the credentials for an NIS+ client on the master server:
In this example, credentials are added to the master server named oak for a client named seachild in the domain ESG.Eng.sun.COM.
oak% nisaddcred -p unix.seachild@esg.eng.sun.com -P seachild.esg.eng.sun.com. des esg.eng.sun.com. Adding key pair for unix.seachild@esg.eng.sun.com (seachild.esg.eng.sun.com.). Enter login password: <enter-root-password> Retype password: <enter-root-password>
Previous | Table of Contents | Next |