Categories
Uncategorized

Configuring a NIS client and mounting home directories from an NFS server

First Configure NIS

  1. Edit /etc/passwd and add the following at the end of the file
+::::::

2. Edit /etc/group and add the following at the end of the file

+:::

3. Edit /etc/shadow and add the following at the end of the file

+::::::::

4.  Edit /etc/yp.conf

ypserver 192.168.1.10

ypserver 192.168.1.11

5.- Reboot or restart NIS /etc/init.d/nis restart

 

Now, mount the home dirs using NFS

  1. Edit /etc/auto.master
  2. /home /etc/auto.home --timeout=60

2.  create a new file in /etc/home.auto and add the following

* -fstype=nfs,rw,nosuid,soft,fsid=0 hostname:/mnt/Volume1/home/&

To find the hostname and the mount point for the NFS server, from a pre-configure client run df -kh