Hi

        I have tried using autofs to automate
the mounting of home directories, but it is not working as expected.
Clearly I am missing something, but I don't know what? On the
NIS server (kernel 2.0.34), wax, I have autofs
running.

# cat /proc/filesystems
  ...
nodev   autofs

# /sbin/lsmod
Module         Pages    Used by
autofs             2            1


Wax's auto.master file contains other than comments:

# Sample auto.master file

   /home   /etc/auto.home

The auto.home file is, missing comments:

   exdb   -rw,hard,intr  grun:/home2/exdb

In wax's nsswitch file there is:

        automount:      files nis
Wax's export file has:
/home  grun(rw)

And I have included auto.home and auto.master in /var/yp/Makefile.

I can log in on wax as exdb and the /home/exdb exists and every
thing is fine. However, while I can log into grun (kernel 2.0.36) as exdb, exdb
home directory fails to mount -- and this is crux of my problem.

On grun:

# cat /proc/filesystems
  ...
nodev   autofs

# /sbin/lsmod
Module         Pages    Used by
autofs             2            1

# cat /etc/nsswitch.conf
 ...
automount:      nis

# cat /etc/auto.master

+auto.master
/home   auto.home --timeout 60

# cat /etc/auto.home
+auto.home

# cat /etc/exports
  ...
/home2  wax(rw)

>From the log file /var/log/syslog on grun:
Jan 17 11:44:16 grun automount[7194]: attempting to mount entry /home/exdb
Jan 17 11:44:16 grun automount[7323]: lookup(file): looking up exdb
Jan 17 11:44:16 grun automount[7323]: lookup(file): lookup for exdb failed

So it seems to fail to find exdb, but why?? Remember I can log
in as exdb on grun. exdb's passwd/shadow is handled using NIS on wax.

When I expect wax's /var/log/syslog I find:

Jan 17 19:44:54 wax automount[5095]: lookup(file): looking up edb
Jan 17 19:44:54 wax automount[5095]: lookup(file): edb -> -rw,hard,intr^I
grun:/home2/exdb
Jan 17 19:44:54 wax automount[5095]: expanded entry: -rw,hard,intr^I
grun:/home2/exdb
Jan 17 19:44:54 wax automount[5095]: parse(sun): gathered options: rw,hard,intr
Jan 17 19:44:54 wax automount[5095]: parse(sun): core of entry: grun:/home2/exdb
Jan 17 19:44:54 wax automount[5095]: mount(nfs): calling mkdir /home/exdb
Jan 17 19:44:54 wax automount[5095]: mount(nfs): calling mount -t nfs -o
rw,hard,intr grun:/home2/exdb /home/exdb
Jan 17 19:44:54 wax automount[5095]: mount(nfs): mounted grun:/home2/exdb on
/home/exdb


Any help would be greatly appreciated -- this problem is really slowing things
up. Also amd is installed but not used on the server wax, but it is not
installed on
grun, should I install amd on grun also?

Ed.

Reply via email to