The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.

23.5.4.1 Configuring a NIS Client to Use Automount Maps

If you have configured an automount map for auto.home in NIS, you can configure a NIS client to mount home directories upon a user's login.

To configure a NIS client to automount home directories for users:

  1. Install the autofs package:

    # yum install autofs 
  2. Create an /etc/auto.master file that contains the following entry:

    /nethome      /etc/auto.home
  3. Verify that the auto.home map is available:

    # ypcat -k auto.home
    *    -rw,sync    nfssvr:/nethome/&

    In this example, the map is available. For details of how to make this map available, see Section 23.5.3, “Adding User Accounts to NIS”.

  4. If the auto.home map is available, edit the file /etc/auto.home to contain the following entry:

    +auto.home

    This entry causes the automounter to use the auto.home map.

  5. Restart the autofs service, and configure the service to start following a system reboot:

    # service autofs restart
    # chkconfig autofs on

    The autofs service creates the directory /nethome. When a user logs in, the automounter mounts his or her home directory under /nethome.

    If the owner and group for the user's files are unexpectedly listed as the anonymous user or group (nobody or nogroup) and all_squash has not been specified as a mount option, verify that the Domain setting in /etc/idmapd.conf on the NFS server is set to the DNS domain name. Restart the NFS services on the NFS server if you change this file.