Hi,

> I can't seem to figure out a *very* simple automount configuration
> (I've done this before, but it was over two years ago :-( ).
> 
> After much work (and not enough understanding!), I have succeed in
> automounting a remote /home directory on a local client using
> 'autofs'.
> 
> Unfortunately, the mounted directory on the client is under /home/home
> instead of /home.

usually automount is used like this:
* you create a dedicated directory where all your automounted directories
  shall live, e.g. /net, and tell the master map about it
] (/etc/auto.master)
] /net  /etc/auto.net
* you create that map specifying where each possible subdirectory should be
  mounted from upon request, e.g.
] (/etc/auto.net)
] share -fstype=nfs     server1:/srv/share
  resulting in a working automounted share
] /net/share <-> server1:/srv/share.

This map (auto.net) is called "indirect". If you want to have /home itself
automounted, you won't get anywhere with indirect maps, because that
would mean that / had to be governed by an automount daemon. Have a look at

/usr/share/doc/autofs/README.direct

and pay attention to the warnings at the bottom of it. When everything
is set up, don't forget to edit /etc/default/autofs in order to switch off
DISABLE_DIRECT.


Regards,

Jan

Attachment: signature.asc
Description: Digital signature

Reply via email to