To change to a switch file, follow these steps.
In order to use LDAP naming services, you must also properly configure all LDAP client machines, in addition to modifying the nsswitch.conf. See Chapter 12, Setting Up LDAP Clients (Tasks) for more information.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Chapter 9, Using Role-Based Access Control (Tasks), in System Administration Guide: Security Services.
NIS+ Version (done automatically for you by NIS+ scripts)
client1# cd /etc client1# cp nsswitch.nisplus nsswitch.conf
client1# cd /etc client1# cp nsswitch.nis nsswitch.conf
Local /etc Files Version
client1# cd /etc client1# cp nsswitch.files nsswitch.conf
Reboot the machine.
The nscd daemon caches switch information. See the nscd(1M) man page for information.
Some library routines do not periodically check the nsswitch.conf file to see whether the file has been changed. You must reboot the machine to make sure that the daemon and those routines have the latest information in the file.