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/<user>/mount_point, where /path/<user> 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 <user>
> echo ":/path/$1/mount_point"
>

Is this an autofs5-only feature? That could be useful I think...

-- 
Francesco P. Lovergine

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

Reply via email to