Log in as superuser.
Open the /etc/nsswitch.conf file.
Change the passwd and groups sources to compat.
For use with NIS, enter:
passwd: compat group: compat |
For NIS+, enter:
passwd: compat passwd_compat: nisplus group: compat group_compat: nisplus |
This provides the same syntax as in the Solaris 1.x release: it looks up /etc files and NIS maps as indicated by the +/- entries in the files.
Add -+ or -+ netgroup to /etc/passwd, /etc/shadow, and /etc/group files.
If you fail to add the -+ or -+ netgroup entries to /etc/shadow and /etc/passwd, you won't be able to log in.
Save the file and reboot the workstation.
Because some library routines do not periodically check the nsswitch.conf file to see whether it has been changed, you must reboot the workstation to make sure those routines have the latest information in the file.