On Wed, 16 Aug 2000, EXT Graham Cameron wrote:
> Has anyone had any success with automount/NIS ?
> 
> I am having difficulty making this work.
> 
> I know my maps are ok, as I'm using it fine on other
> unixes (AIX).
> 
> When I try to log in to my linux box, here's what I see:
> 
> --
> No directory /home/grahamc!
> Logging in with home = "/".
> --
> 
> and here's what's in /var/log/messages
> --
> Aug 16 08:51:55 poseidon automount[17104]: attempting to mount entry
> /home/grahamc
> Aug 16 08:51:55 poseidon automount[19742]: lookup(yp): lookup for grahamc
> failed: No such map in server's domain
> --
> 
> and here are my maps
> --
> $ ypcat -k auto.master
> /home /etc/auto.home
        ^^^^^
..that's the problem. On other unixes you can have /etc/auto.home which
says:
+auto.home

and then you can have local entries too. Doesn't work with linux :(
Try the attached patch - it works around the problem by stripping the
leading /etc/ from the map name. A kludge, yes, but works well for me.

        - Panu -

> /net -hosts
> $ ypcat -k auto.home
> grahamc -rw,hard,intr   zeus:/home.local/&
> * -rw,hard,intr   zeus:/home.local/&
> --
> 
> and here is the version
> --
> # /usr/sbin/automount -v
> Linux automount version 3.1.4
> # uname -a
> Linux poseidon 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
> --
> 
> Ideas anyone ?
> 
> 
> Graham
> 
> 
> 
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list
> 
--- autofs.orig.rh62    Fri Aug 18 16:37:33 2000
+++ autofs      Fri Aug 18 16:38:59 2000
@@ -115,7 +115,7 @@
                        -a x`echo "$map" | cut -c1` != 'x-' ]
            then
                #convert -t to --timeout and save elsewhere
-               map=`echo "$map" | sed -e 's/^auto_/auto./'`
+               map=`echo "$map" | sed -e 's/^auto_/auto./;s/\/etc\///'`
                if echo $options | grep -- '-t' >/dev/null 2>&1 ; then
                    mountoptions="--timeout $(echo $options | \
                      sed 's/^.*-t\(imeout\)*[ \t]*\([0-9][0-9]*\).*$/\2/g')"

Reply via email to