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

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+

Removing NIS+ From a Client Machine

Removing NIS+ That Was Installed Using nisclient

Removing NIS+ That Was Installed Using NIS+ Commands

How to Remove NIS+ That Was Installed Using NIS+ Commands

Removing NIS+ From a Server

How to Remove NIS+ From a Server

Removing the NIS+ Namespace

How to Remove the NIS+ Namespace

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

Removing the NIS+ Namespace

To remove the NIS+ namespace and return to using either NIS or /etc files for name services, follow these steps:

How to Remove the NIS+ Namespace

  1. Remove the .rootkey file from the root master.
    rootmaster# rm -f /etc/.rootkey
  2. Remove the groups_dir and org_dir subdirectories from the root master root domain.
    rootmaster# nisrmdir -f groups_dir.domainname
    rootmaster# nisrmdir -f org_dir.domainname

    Where domainname is the name of the root domain, for example, doc.com.

  3. Remove the root domain.
    rootmaster# nisrmdir -f domainname

    Where domainname is the name of the root domain, for example, doc.com.

  4. Stop the keyserver.
    client# svcadm disable /network/rpc/keyserv
  5. Stop the NIS+ service.

    This kills the rpc.nisd daemon and the nis_cachemgr.

    rootmaster# svcadm disable -t /network/rpc/nisplus:default
  6. Stop the name service cache (nscd).
    rootmaster# svcadm disable -t /system/name-service-cache:default
  7. Create a new domain.
    rootmaster# domainname name

    Where name is the name of the new domain; for example, the name of the domain before you installed NIS+.

  8. Remove the existing /etc/defaultdomain file.
    rootmaster# rm /etc/defaultdomain
  9. Recreate the /etc/defaultdomain file with the new domain name.
    rootmaster# domainname > /etc/defaultdomain
  10. Replace the original nsswitch.conf file.

    If you set up this server with nisserver -r, you can use:

    rootmaster# cp /etc/nsswitch.conf.no_nisplus /etc/nsswitch.conf

    Alternatively, you can copy over one of the default switch template files. To use the default NIS switch file template, you would type:

    rootmaster# cp /etc/nsswitch.nis etc/nsswitch.conf

    To use the default /etc files switch file template, you would type:

    rootmaster# cp /etc/nsswitch.files etc/nsswitch.conf
  11. Remove the /var/nis directory and files.
    rootmaster# rm -rf /var/nis/*
  12. Start the NIS+ service.
    rootmaster# svcadm enable /network/rpc/nisplus:default