From owner-freebsd-ports@FreeBSD.ORG Fri Jun 18 14:49:13 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBFDE16A4CE for ; Fri, 18 Jun 2004 14:49:13 +0000 (GMT) Received: from isbox.insidesystems.net (isbox.insidesystems.net [209.123.232.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id C037C43D2F for ; Fri, 18 Jun 2004 14:49:13 +0000 (GMT) (envelope-from kevin@insidesystems.net) Received: from [68.86.192.177] (helo=[10.0.1.2]) by isbox.insidesystems.net with asmtp (Exim 4.34; FreeBSD) id 1BbKeu-000PoK-2Y; Fri, 18 Jun 2004 10:48:00 -0400 In-Reply-To: <20040618141945.GD83682@numachi.com> References: <20040618141945.GD83682@numachi.com> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7D71E62F-C136-11D8-B835-000A957B1E86@insidesystems.net> Content-Transfer-Encoding: 7bit From: Kevin Way Date: Fri, 18 Jun 2004 07:47:58 -0700 To: Brian Reichert X-Mailer: Apple Mail (2.618) cc: FreeBSD Ports Subject: Re: A proper way to install ports into a jail, from the host machine X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2004 14:49:14 -0000 The issue occurs when you want to setup/upgrade machines that have N jails on them. Right now I can install the majority of ports like this: jail_portinstall shells/zsh all and zsh will get installed into every single jail. The place where this falls apart is jails that do user/group management. The checks for user/group existence, and the commands for adding users/groups are generally hard coded such that it's not possible to specify an alternate etc directory, or to ensure that you set file ownership correctly if you modify it manually. We're looking for feedback on whether a patchset that attempts to modularize the user/group tests would receive any acceptance, and also to find out if anybody else is currently looking at solving this problem. Kevin Way InsideSystems On Jun 18, 2004, at 7:19 AM, Brian Reichert wrote: > On Thu, Jun 17, 2004 at 07:58:08AM -0700, Kevin Way wrote: >> The first problem is that scripts which check for and create users >> (and >> change ownership on files/directories) aren't currently setup to do so >> with respect to a jailed environment. > > Why not install ports/packages from within the jail? > >> Kevin Way >> InsideSystems > > -- > Brian Reichert > 37 Crystal Ave. #303 Daytime number: (603) 434-6842 > Derry NH 03038-1713 USA BSD admin/developer at large