From owner-freebsd-fs@FreeBSD.ORG Thu Dec 20 14:16:56 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF7F516A418 for ; Thu, 20 Dec 2007 14:16:56 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id A1E6C13C458 for ; Thu, 20 Dec 2007 14:16:56 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1J5Lsv-000ID9-4g for freebsd-fs@freebsd.org; Thu, 20 Dec 2007 16:56:25 +0300 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 56BFE762F for ; Thu, 20 Dec 2007 16:55:06 +0300 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 9454317023; Thu, 20 Dec 2007 16:55:25 +0300 (MSK) Date: Thu, 20 Dec 2007 16:55:25 +0300 From: Dmitry Marakasov To: freebsd-fs@freebsd.org Message-ID: <20071220135525.GA3804@hades.panopticon> Mail-Followup-To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp65.agava.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Subject: alternative automounter solution X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 14:16:57 -0000 Hi! I have all my data on NAS available via NFS. NAS uses zfs, so there are many filesystems for movies, music, iso's etc. I use standart AMD to automatically mount all the filesystems on my desktop, and it works well, but I also have vsftpd in jail, and I want to make some data accessible via that ftp as well. Actually, I don't want to run amd inside the jail for security. NFS has no secrity at all, and I don't want all filesystems to be mountable from within the jail. Using host system amd could work, but there's problem with symlinks. While on host system everything is OK: /.amd_mnt/nas/music /data/music -> /.amd.mnt/nas/music it won't work for the jail: /ftpjail/.amd_mnt/nas/music /ftpjail/anonftp/music -> /ftpjail/.amd.mnt/nas/music i.e. amd creates absolute symlink, which won't work in /ftpjail chroot. What will work is: /ftpjail/anonftp/music -> /.amd.mnt/nas/music /ftpjail/anonftp/music -> ../.amd.mnt/nas/music But as far as I understand there's no way to make amd behave like that. Any solutions? The best thing will be amd alternative with clearer config and map syntax. -- Dmitry A. Marakasov | jabber: amdmi3@jabber.ru amdmi3@amdmi3.ru | http://www.amdmi3.ru