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.
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:
Install the
autofs
package:#
yum install autofs
Create an
/etc/auto.master
file that contains the following entry:/nethome /etc/auto.home
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”.
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.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
ornogroup
) andall_squash
has not been specified as a mount option, verify that theDomain
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.