Networking Guide
Chapter 7, Configuring the Network Information Service (NIS)

Adding NIS to your PATH variables

Adding NIS to your PATH variables

For the root account, add the following entry to the PATH variable of the /.profile file (if you are running the Bourne or Korn shell) or /.cshrc file (if you are running the C shell):

   /etc/yp