Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Naming and Directory Services (NIS+) |
Part I About Naming and Directory Services
Part II NIS+ Setup and Configuration
4. Configuring NIS+ With Scripts
5. Setting Up the NIS+ Root Domain
8. Configuring an NIS+ Non-Root Domain
10. NIS+ Tables and Information
12. Administering NIS+ Credentials
14. Administering Enhanced NIS+ Security Credentials
15. Administering NIS+ Access Rights
16. Administering NIS+ Passwords
18. Administering NIS+ Directories
20. NIS+ Server Use Customization
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
How to Remove NIS+ From a Server
23. Information in NIS+ Tables
Common NIS+ Namespace Error Messages
To remove the NIS+ namespace and return to using either NIS or /etc files for name services, follow these steps:
rootmaster# rm -f /etc/.rootkey
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.
rootmaster# nisrmdir -f domainname
Where domainname is the name of the root domain, for example, doc.com.
client# svcadm disable /network/rpc/keyserv
This kills the rpc.nisd daemon and the nis_cachemgr.
rootmaster# svcadm disable -t /network/rpc/nisplus:default
rootmaster# svcadm disable -t /system/name-service-cache:default
rootmaster# domainname name
Where name is the name of the new domain; for example, the name of the domain before you installed NIS+.
rootmaster# rm /etc/defaultdomain
rootmaster# domainname > /etc/defaultdomain
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
rootmaster# rm -rf /var/nis/*
rootmaster# svcadm enable /network/rpc/nisplus:default