From: Jeff Moyer Subject: Re: Looking for a per user submount... Date: Mon, 04 Feb 2008 10:57:46 -0500 Message-ID: References: <20080128101153.GE5803@mithrandir> <1201570926.3072.17.camel@raven.themaw.net> <479F37BD.3050900@anl.gov> <20080129143348.GA3972@mithrandir> <479F44E1.9070708@anl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <479F44E1.9070708@anl.gov> (Douglas E. Engert's message of "Tue\, 29 Jan 2008 09\:23\:13 -0600") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: "Douglas E. Engert" Cc: autofs@linux.kernel.org "Douglas E. Engert" writes: > Francesco Paolo Lovergine wrote: >> On Tue, Jan 29, 2008 at 08:27:09AM -0600, Douglas E. Engert wrote: >>> >>> Ian Kent wrote: >>>> On Mon, 2008-01-28 at 11:11 +0100, Francesco P. Lovergine wrote: >>>>> I was looking for some sort of automounting for per-user subtrees. >>>>> Essentially I need to bind-mount on demand some per user (users are sql-based) >>>>> subdir like /path//mount_point, where /path/ is a true >>>>> dir. I'm missing something or it cannot be performed using autofs >>>>> without >>>>> adding each entry explicitly for every users ? >>> Have you looked at using an executable map? Something like in the master map: >>> /topdir program:/etc/auto_per_user >>> >>> /etc/auto_per_user: >>> #!/bin/sh >>> # $1 is >>> echo ":/path/$1/mount_point" >>> >> >> Is this an autofs5-only feature? That could be useful I think... > > No, works with autofs 4 and on Solaris. On Solaris you don't use the "program:" > it checks the exec bits on the file instead. You don't need to specify the mount type for the Linux automounter, either. Cheers, Jeff