Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autofs NIS problem

Status
Not open for further replies.

jakethecake

Technical User
Sep 6, 2009
6
0
0
SE
Hi I'm trying to automount some folders om my server to users on clients using nis maps but I'm just getting the "failed to load map, exiting" in daemon.log. Here are my files:

/etc/exports on server:
Code:
/home1        130.236.189.216/29(rw,fsid=1)
/home2        130.236.189.216/29(rw,fsid=2)

added this to /var/yp/Makefile on server:
Code:
ALL +=  auto.master auto.home

added this to /etc/auto.master on server:
Code:
/home   yp:auto.home

added this to /etc/auto.home on server:
Code:
usr1 server.c4.sysinst.ida.liu.se:/home1/&
usr2 server.c4.sysinst.ida.liu.se:/home2/&

added this to /etc/nsswitch.conf on clients:
Code:
automount:    nis

Anyone who knows what's wrong? Would really appreciate it.
 
Thanks,the folders shows up on the client after ypcat has been issued, doesn't seem that "auto" though if you have to write ypcat every time. Or is it just a one time thing?
 
ypcat is just a diagnostic tool to test whether you can access that NIS map from the client... perhaps by doing that you somehow "woke up" the client or refreshed the map on the server? Normally that shouldn't be necessary. I'm a bit rusty on NIS so maybe someone else can give a definitive answer.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top