I'm a bit rusty on configuring AutoFS - I basically want to mount any Windows share from a system on my RHEL 5.4 system.
I got a bit stuck and checked my logic against:
I'm now using their auto.cifs file instead of the supplied auto.smb. Everything seems set ok, but when I do a listing of:
I get a ": No such file or directory" error. I've enabled debug on AutoFS and I think it is a name resolution issue as the error I have is:
Sep 24 18:25:06 linuxbox automount: attempting to mount entry /mnt/windowsserver
Sep 24 18:25:06 linuxbox automount: lookup_mount: lookup(program): looking up windowsserver
Sep 24 18:25:29 linuxbox automount: lookup(program): lookup for windowsserver failed
Sep 24 18:25:29 linuxbox automount: dev_ioctl_send_fail: token = 15
Sep 24 18:25:29 linuxbox automount: failed to mount /mnt/windowsserver
The system does not have access to DNS or NIS; the windowsserver is configured in /etc/hosts. I checked nsswitch.conf and I have:
automount: files nisplus
So I'm not sure why it is still struggling to resolve the Windows server (ping works fine to the hostname) - any ideas or suggestions?