JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Naming and Directory Services (NIS+)
search filter icon
search icon

Document Information

Preface

Part I About Naming and Directory Services

1.  Name Service Switch

Part II NIS+ Setup and Configuration

2.  NIS+: An Introduction

3.  NIS+ Setup Scripts

4.  Configuring NIS+ With Scripts

5.  Setting Up the NIS+ Root Domain

6.  Configuring NIS+ Clients

7.  Configuring NIS+ Servers

8.  Configuring an NIS+ Non-Root Domain

9.  Setting Up NIS+ Tables

Configuring NIS+ Tables

Append, Replace, and Merge Options to NIS+ Table Population

Populating NIS+ Tables From Files

Security Considerations When Populating NIS+ Tables From Files

How to Populate NIS+ Tables From Files

Populating NIS+ Tables From NIS Maps

Security Considerations When Populating Tables From NIS Maps

How to Populate Tables From Maps

Transferring Information From NIS+ to NIS

How to Transfer Information From NIS+ to NIS

Limiting Access to the Passwd Column to NIS+ Owners and Administrators

How to Limit Read Access to the Passwd Column

NIS+ Table Population Summaries

Part III NIS+ Administration

10.  NIS+ Tables and Information

11.  NIS+ Security Overview

12.  Administering NIS+ Credentials

13.  Administering NIS+ Keys

14.  Administering Enhanced NIS+ Security Credentials

15.  Administering NIS+ Access Rights

16.  Administering NIS+ Passwords

17.  Administering NIS+ Groups

18.  Administering NIS+ Directories

19.  Administering NIS+ Tables

20.  NIS+ Server Use Customization

21.  NIS+ Backup and Restore

22.  Removing NIS+

23.  Information in NIS+ Tables

24.  NIS+ Troubleshooting

A.  NIS+ Error Messages

About NIS+ Error Messages

Common NIS+ Namespace Error Messages

B.  Updates to NIS+ During the Solaris 10 Release

Solaris 10 and NIS+

Glossary

Index

NIS+ Table Population Summaries

Following are summaries of the steps required to populate NIS+ tables. They assume the simplest case, so be sure you are familiar with the more thorough task descriptions before you use this summary as a reference. For brevity, these summaries do not show the server's responses to each command.

Table 9-1 Transferring Files Into NIS+ Tables: Command Summary

Tasks
Commands
Log in to an NIS+ client.
rootmaster%
Create working copies of the files to be transferred.
% cp /etc/hosts /etc/hosts.xfr
Add /usr/lib/nis to search path.
% PATH=$PATH:/usr/lib/nis; export PATH
Transfer each file, one at a time.
% nisaddent -m -f /etc/hosts.xfr hosts
Remove old server credentials from publickey file.
% vi /etc/publickey.xfer
Transfer it to the cred table.
% nisaddent -a -f /etc/publickey.xfr cred
Transfer the automounter files.
% nisaddent -f auto.master.xfr -t auto_master.org_dir key-value

% nisaddent -f auto.home.xfr -t auto_home.org_dir key-value

Checkpoint the table directory.
% nisping -C org_dir

Table 9-2 Transferring Maps Into NIS+ Tables: Command Summary

Tasks
Commands
Log in to an NIS+ client.
rootmaster%
Add /usr/lib/nis to search path.
% PATH=$PATH:/usr/lib/nis; export PATH
Transfer each map, one at a time.
% nisaddent -m -y olddoc hosts
Dump publickey map to a file.
% makedbm -u /var/yp/olddoc/publickey.byname > /etc/publickey.xfr
Remove new credentials.
% vi /etc/publickey.xfr
Transfer the publickey file.
% nisaddent -a -f /etc/publickey.xfr -t cred.ortg_dir publickey
Transfer the automounter maps.
% nisaddent -y olddoc -Y auto.master -t auto_master.org_dir key-value

% nisaddent -y olddoc -Y auto.home -t auto_home.org_dir key-value

Checkpoint the table directory.
% nisping -C org_dir

Table 9-3 Transferring NIS+ Tables to NIS Maps: Command Summary

Tasks
Commands
Log in to NIS+ server.
dualserver%
Transfer NIS+ tables to files.
% /usr/lib/nis/nisaddent -d [-t table] tabletype > filename
Transfer files to NIS maps.
% makedbm flags output-file NIS-dbm-file

Table 9-4 Limiting Access to Passwd Column: Command Summary

Tasks
Commands
Log in to the domain's master server.
rootmaster#
Check the table's existing rights.
# niscat -o passwd.org_dir
Assign the table new rights.
# nischmod og=rmcd,nw= passwd.org_dir
Assign the columns new rights
# nistbladm -u passwd=o+r, shadow=n+r passwd.org_dir
Verify the new rights.
# niscat -o passwd.org_dir