From owner-freebsd-questions@FreeBSD.ORG Fri May 8 03:22:19 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF6EE106566C for ; Fri, 8 May 2009 03:22:19 +0000 (UTC) (envelope-from kingedgar@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 65F2C8FC1F for ; Fri, 8 May 2009 03:22:19 +0000 (UTC) (envelope-from kingedgar@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so702231ywe.13 for ; Thu, 07 May 2009 20:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:cc:content-type; bh=sKGGM7ynqTKfprAc4sD5Vo4nTQ4qSU440zcb7PEgngk=; b=abP7fmcXeqV2/GAKjK7Tu585qcIF8CrLWIgcsetLOqdnDMl02iBtzwxu8DR2rfwnCx vWJdAZwRMjP4F3dWcjMxh8YmHhbhsgrBgG5HM4sy2J7DqPJJOwhHrwrXhBNC+JDQ+1be esbuz6V3ZZS8RwQRgqyCXiFibq718gG/P4O9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=orFar8XSVxpQWniA4lTi/LVrjrGdslpg/VzDlIxr+CHrwVzYHwjMqGm/rWH1trtwhL QOpd6YwtXtRuZfaAQcUYpRrF82rU1vY2pdZZ0GbEx+Q3Y6NKbSfBMHMe45TvDZrWuaTm OfQW2DabDkhZcnvmVHFV/6+KGy+lDsR9VIFd8= MIME-Version: 1.0 Received: by 10.90.49.8 with SMTP id w8mr947296agw.74.1241752561250; Thu, 07 May 2009 20:16:01 -0700 (PDT) In-Reply-To: References: <20090507035523.GA6073@lpthe.jussieu.fr> Date: Thu, 7 May 2009 22:16:01 -0500 Message-ID: <970380130905072016gecc607cr1e5401d8e396366b@mail.gmail.com> From: Jason Garrett Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Autofs howto X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2009 03:22:20 -0000 On Thu, May 7, 2009 at 10:14, Paul Schmehl wrote: > --On Wednesday, May 06, 2009 22:55:23 -0500 Michel Talon < > talon@lpthe.jussieu.fr> wrote: > > >> Paul Schmehl wrote: >> >> I'm wondering if I can use autofs on FreeBSD. Last time I asked the >>> question someone said I need amd, which I found rather cryptic. >>> >> >> Indeed it is cryptic, let me gave an example which works: >> >> niobe% cat /etc/amd.conf >> [global] >> auto_dir = /.amd >> log_file = /var/log/amd.log >> log_options = error,fatal,user >> map_type = file >> search_path = /etc >> [/Cd] >> map_name = amd.cdrom >> # For nfs mounts >> [/Net] >> map_name = amd.net >> >> >> >> niobe% cat /etc/amd.cdrom >> cdrom type:=cdfs;opts:=ro,nosuid;dev:=/dev/acd0;fs:=${autodir}/cdrom >> >> >> niobe% cat /etc/amd.net >> /defaults type:=host;fs:=${autodir}/${rhost};rhost:=${key} >> * opts:=rw,grpid,resvport,nosuid,nodev,soft >> >> Now some comments. I use amd without options so it just uses >> /etc/amd.conf to configure itself. When you try to access /Cd >> it uses the configuration in /etc/amd.cdrom, and if you try to access >> /Net it uses the configuration in /etc/amd.net. >> >> Finally if you try to access /Net/ada for example, the key is ada, and >> so is the remote host. It is queried for NFS mounts and everything is >> mounted. After >> niobe% cd /Net/ada >> i have: >> niobe% df >> ... >> ada:/ada 36196652 26972064 7356232 79% /.amd/ada/ada >> ada:/ada1 287391356 246682696 26109996 90% /.amd/ada/ada1 >> ada:/ada2 288362876 180649856 93064956 66% /.amd/ada/ada2 >> ada:/ada3 99188500 80794628 13273960 86% /.amd/ada/ada3 >> ada:/adm 36204684 1682772 32653156 5% /.amd/ada/adm >> >> Note that autodir is /.amd and fs is ${autodir}/${rhost} as you can >> see. >> >> Getting out of /Net/ada those mounts are unmounted. >> >> I hope this helps explaining some of the mysteries of amd. >> >> > Indeed it does, and I thank you very much for that example. > While cryptic, It has worked well for me with multiple FreeBSD and Linux hosts on my network. > > -- > Paul Schmehl, Senior Infosec Analyst > As if it wasn't already obvious, my opinions > are my own and not those of my employer. > ******************************************* > Check the headers before clicking on Reply. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >