NIS, Automounter and NFS

From: scorpioboii (scorpioboii_at_hotmail.com)
Date: 07/29/05


Date: 28 Jul 2005 16:12:17 -0700

Hi:

I have had significant difficulties getting my RedHat linux clients(EL
3.0) to automount home directories that are specified in NIS maps in a
NIS domain to which the client belongs.
Let me describe the situation more clearly:
My client, node1 is a NFS client of NFS server, nfs1, and a NIS client
of machine, nis1.

One node1:
In /etc/hosts there are ip records of both nis1 and nfs1.

In /etc/auto.master:
/home yp:auto.home

In /etc/auto.home:
+auto.home

In /etc/nsswitch.conf:
automount: file nis

Also on node1:
ypcat -k auto.home yeilds the entire content of the NIS auto.home
map.All the NIS maps are visible on the client node1.e.g.

ypcat -k auto.home
testuser nfs1:/export/home/testuser

and mounting:
mount -t nfs nfs1:/export/home/testuser /mnt
works well, so it apperas NFS works well.

However, if I "cd /home/testuser" on the client i get an error stating
the directory does not exist.

Can anyone tell me how to get NIS, autofs and NFS working well together
so that I can specify the NFS mounts via the NIS maps to my client
machines so that autofs works like if I had specified the NFS mounts
via the local /etc/auto.home file? All machines are running RedHat
ENterprise Linux 3.

thanks in advance.
Larry



Relevant Pages

  • Re: [SLE] Simple network
    ... Use yast to setup nfs. ... The other box will need nfs client. ... I'm a litle concerned with what you say about NIS. ...
    (SuSE)
  • Automounter and NIS problem in Linux
    ... NIS domain to which the client belongs. ... My client, node1 is a NFS client of NFS server, nfs1, and a NIS client ... map.All the NIS maps are visible on the client node1.e.g. ...
    (comp.os.linux.setup)
  • Auitomounter and NIS on Linux
    ... NIS domain to which the client belongs. ... My client, node1 is a NFS client of NFS server, nfs1, and a NIS client ... map.All the NIS maps are visible on the client node1.e.g. ...
    (comp.os.linux.misc)
  • Re: NIS (client) issues...
    ... Moritz Franosch wrote: ... >> And, second, what do I do if there are 450 users set up on the NIS ... and any one of them might use the client machine from time ... > We have centralized NFS mounted home directories. ...
    (alt.os.linux.suse)
  • Re: Mounten =?iso-8859-1?Q?=FCbers?= Netz
    ... Also, haben AUfbau mit NIS und NFS, da würde man vom Client aus mit su ...
    (de.comp.os.unix.linux.misc)