All of lore.kernel.org
 help / color / mirror / Atom feed
From: chris barry <Christopher.Barry@qlogic.com>
To: autofs@linux.kernel.org
Subject: fairly complex nested filesystems question
Date: Thu, 20 Dec 2007 18:29:51 -0500	[thread overview]
Message-ID: <1198193391.6195.33.camel@localhost> (raw)

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


My home mounts fine via nfs, and is chrooted (when I ftp in), but the
other mounts do not occur, and no errors are thrown. Thinking it was a
timing issue, and the chroot had occurred before the local mounts
happened, I came in via ssh (which is not chrooted, but will not be
available to users later), and I get the same results. Finding any
examples of this kind of map has been challenging to say the least. 

I'm assuming my map syntax is incorrect, or is this type of thing simply
impossible?


Unfortunately, I have to stay at these versions.
RHEL4U5 2.6.9-55.ELsmp
ProFTPD  Version 1.3.1
Linux automount version 4.1.3-199.3


What am I doing wrong here?


Thanks,
-C

             reply	other threads:[~2007-12-20 23:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 23:29 chris barry [this message]
2007-12-21 11:44 ` fairly complex nested filesystems question Ian Kent
     [not found]   ` <1198246430.10225.15.camel@localhost>
     [not found]     ` <1198247849.3488.44.camel@raven.themaw.net>
2007-12-21 14:51       ` chris barry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1198193391.6195.33.camel@localhost \
    --to=christopher.barry@qlogic.com \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.