On Thu, 2007-12-20 at 18:29 -0500, chris barry wrote:
> Greetings,
> 
> I'm trying to create a nested filesystem structure that combines an
> automounted nfs home directory, with bind mounts from the local machine.
> 
> The structure will look like this:
> /
> |-home
>    `-user1        <-(nfs somehost:/home/user1)
>        |-myftp    <-(bind /var/ftp/users/user1)
>        `-pub_ftp  <-(bind /var/ftp/pub)
> 
> The entire structure needs to get automounted as a group on login, and
> then is chrooted as users ftp into this box.
> 
> My auto.master looks like this:
> /home   /etc/auto.home --timeout=30
> 
> My auto.home looks like this:
> *              -fstype=nfs,rw,intr   10.20.30.40:/home/& \
> /home/&/myftp  -fstype=file          :/var/ftp/users/& \
> /home/&/ftp    -fstype=file          :/var/ftp/pub

This is not valid for a couple of reasons.
First the * will match every key and so nothing else will be seen.
The second and third entries aren't valid map entries for an indirect
map either. Even if they were then the & can't be used on the left hand
side of a map entry. This is because the & is replaced by the key that
has been matched and so can't be used within the key itself. The -fstype
should refer to a valid filesystem but I don't think file is a valid
filesystem. If you're intending this to indicate a bind mount then just
leave out the -fstype=file and leave the :<path>. 

Ian


_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to