From owner-freebsd-small@FreeBSD.ORG Mon Oct 17 18:50:01 2005 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A8E016A420 for ; Mon, 17 Oct 2005 18:50:01 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEEF243D76 for ; Mon, 17 Oct 2005 18:49:51 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10) with ESMTP id j9HInnMm077083; Mon, 17 Oct 2005 14:49:50 -0400 (EDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10/Submit) id j9HInn7t077082; Mon, 17 Oct 2005 14:49:49 -0400 (EDT) (envelope-from mwlucas) Date: Mon, 17 Oct 2005 14:49:49 -0400 From: "Michael W. Lucas" To: Marco Molteni Message-ID: <20051017184949.GA77066@bewilderbeast.blackhelicopters.org> References: <20051017134257.GA74997@bewilderbeast.blackhelicopters.org> <20051017204634.42bca795.molter@tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051017204634.42bca795.molter@tin.it> User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Cc: "Michael W. Lucas" , small@freebsd.org Subject: Re: Separate password files on diskless boxes? X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 18:50:01 -0000 On Mon, Oct 17, 2005 at 08:46:34PM +0200, Marco Molteni wrote: > On Mon, 17 Oct 2005 09:42:57 -0400 > "Michael W. Lucas" wrote: > > > I'm using nanobsd.sh on 6.0RC to provide a small world for diskless > > boxes. These are for small single-purpose machines -- i.e., DNS > > server, FTP server, etc, served off read-only NFS. Nothing exciting > > there, it just works. > > > > The last problem I'm having is the password file. I need to assign > > separate password files to each, and separate root passwords on each > > diskless station. The problem, of course, is the MFS /etc, so changes > > are not permanent. > > > > Is there any way to make passwd(1) talk to a different password file? > > I really don't want to use read/write mounts on my NFS server. Or, > > has anyone come up with a clever way to do this? All the tutorials in > > Google talk about using the server's password file, which I > > specifically don't want to do... > > you can use the /conf override directory as explained in > man diskless: > > /conf/default/10.0.0.1/etc/master.passwd > /conf/default/10.0.0.1/etc/passwd > > /conf/default/10.0.0.2/etc/master.passwd > /conf/default/10.0.0.2/etc/passwd Yes, but on boot /etc/ is a MFS. I can change the password, but on the next boot it reverts back to whatever's saved on the hard drive. I'd like to avoid doing kerberos or NIS for half a dozen little boxes, but if that's the only choice that's what I'll have to do. -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur