As often happens once you've posted your problem, you find you've found out how to do it.
Hi,
I'm trying to automount users home directories using NIS and autofs, but can't seem to get it to work. I've worked through the example and that works fine, but NIS clients should be able to get the automount config from NIS. The clients /etc/auto.master is as installed by CentOS5 with the line:
+auto.master
and no /etc/auto.home. The NIS server (also CentOS5) has the following:
/etc/auto.master:
/home /etc/auto.home --timeout 300
and /etc/auto.home:
nisuser -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid, tcp 192.168.232.135:/home/nisuser
(all on one line)
ypcat auto.master gives:
/etc/auto.home --timeout 300
-hosts
/etc/auto.misc
and ypcat auto.home gives:
-fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid, tcp 192.168.232.135:/home/nisuser
I can manually mount the share, I've turned off both iptables and selinux. I've tried putting the info in auto.master and auto.home on the client and autofs works fine.
I'm obviously doing something wrong, but not sure exactly what it is. I'm guessing it's the syntax of the auto.home on the NIS server.
So, to summarise: I can't get the NIS client to read the autofs maps when a NIS user logs in. Has any one got any ideas?
Many thanks in advance - c_henry
As often happens once you've posted your problem, you find you've found out how to do it.
Ah, sorry.
On the NIS server my /etc/auto.master looks like this:
/home auto.home --timeout 300
and /etc/auto.home:
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid, tcp 192.168.232.135:/home/&
And that's it. Nothing to configure especially on the client. Seems that when I had:
/home /etc/auto.home --timeout
on the NIS master, the client was looking locally.
Bookmarks