Prepare the source files for conversion to NIS maps.
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.
Check the source files on the master server to make sure they reflect an up-to-date picture of your system.
Check the following files:
auto.home or auto_home
auto.master or auto_master
Copy the passwd file to the PWDIR directory that you have selected.
Copy audit_user, auth_attr, exec_attr, and prof_attr to the selected RBACDIR directory.
Unlike other source files, the /etc/mail/aliases file cannot be moved to another directory. This file must reside in the /etc/mail directory. Refer to aliases(4) for more information.
You can add a nis-specific mail aliases file by pointing the ALIASES = /etc/mail/aliases entry in /var/yp/Makefile to another location. When you then run a make, the ALIASES entry creates a mail.aliases map. The sendmail service uses this map in addition to the /etc/mail/aliases file when the /etc/nsswitch.conf file properly targets nis in addition to files. Refer to Modifying and Using the Makefile.
Clean all comments and other extraneous lines and information from the source files.
These operations can be done through a sed or awk script or with a text editor. The Makefile performs some file cleaning automatically for you, but it is good practice to examine and clean these files by hand before running.
Make sure that the data in all the source files is correctly formatted.
Source file data needs to be in the correct format for that particular file. Check the man pages for the different files to make sure that each file is in the correct format.