From owner-freebsd-questions@FreeBSD.ORG Wed Nov 15 07:46:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2B8416A40F for ; Wed, 15 Nov 2006 07:46:00 +0000 (UTC) (envelope-from jonathan@hst.org.za) Received: from sirian.hst.org.za (sirian.hst.org.za [209.203.2.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64B8243D5D for ; Wed, 15 Nov 2006 07:45:50 +0000 (GMT) (envelope-from jonathan@hst.org.za) Received: from localhost (localhost.hst.org.za [127.0.0.1]) by sirian.hst.org.za (Postfix) with ESMTP id 53E0331C7AE for ; Wed, 15 Nov 2006 09:50:37 +0200 (SAST) Received: from sirian.hst.org.za ([127.0.0.1]) by localhost (sirian.hst.org.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 72164-09 for ; Wed, 15 Nov 2006 09:50:37 +0200 (SAST) Received: by sirian.hst.org.za (Postfix, from userid 1004) id 00C9331C780; Wed, 15 Nov 2006 09:50:36 +0200 (SAST) Received: from sysadmin.int.dbn.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) by sirian.hst.org.za (Postfix) with ESMTP id 227E031C5AE for ; Wed, 15 Nov 2006 09:50:36 +0200 (SAST) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-questions@freebsd.org Date: Wed, 15 Nov 2006 09:48:18 +0200 User-Agent: KMail/1.7.2 References: <20061109144600.GA71721@siloamsprings.com> <20061114232456.GB5408@wantadilla.lemis.com> In-Reply-To: <20061114232456.GB5408@wantadilla.lemis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611150948.18427.jonathan@hst.org.za> X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on sirian.hst.org.za X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=ham version=2.61 X-Virus-Scanned: by amavisd-new at hst.org.za Subject: Re: multiple ports trees 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: Wed, 15 Nov 2006 07:46:01 -0000 On Wednesday 15 November 2006 01:24, Greg 'groggy' Lehey wrote: > On Thursday, 9 November 2006 at 8:46:00 -0600, Christopher M. Hobbs wrote: [sharing ports tree] > > Also, what about user accounts between machines? > > With NFS you typically have the same user ID on all related machines. > > > I got to thinking that because some of the servers have the same > > user accounts, would it be possible to share a password file or home > > directories? > > Yes, again with some caveats. The biggest ones are configuration > files in the home directory that contain references to the system > you're working on. My biggest problem is the .emacs file: it refers > to packages that I have installed on some systems only. The issue which bit me when doing this was that many ports add a user using pw(8) (as indeed the Porter's handbook advises them to), and this uses the ``next available'' uid. In my case, on one server I added net/isc-dhcp3-server from ports before setting up LDAP: the result was a uid clash between the dhcpd user created by the port, and a human user in LDAP. Even if LDAP had been set up, I would still have had to note, the next time I needed to add a human user, that the ``next available'' uid was being used by a port on one particular server. I'm now in the process of creating two ranges of user numbers: one available to pw(1) and ports (through pw.conf(5) settings) and a separate range for human users - see my earlier post to this list (12 Oct 2006) for more. Jonathan