From owner-freebsd-jail@FreeBSD.ORG Sun Jan 27 07:35:45 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B132716A417 for ; Sun, 27 Jan 2008 07:35:45 +0000 (UTC) (envelope-from andrew@modulus.org) Received: from email.octopus.com.au (host-122-100-2-232.octopus.com.au [122.100.2.232]) by mx1.freebsd.org (Postfix) with ESMTP id 721AB13C442 for ; Sun, 27 Jan 2008 07:35:44 +0000 (UTC) (envelope-from andrew@modulus.org) Received: by email.octopus.com.au (Postfix, from userid 1002) id C4C04145CF; Sun, 27 Jan 2008 18:35:42 +1100 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on email.octopus.com.au X-Spam-Level: X-Spam-Status: No, score=-1.4 required=10.0 tests=ALL_TRUSTED autolearn=failed version=3.2.3 Received: from anzac.hos (132.169.233.220.exetel.com.au [220.233.169.132]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: admin@email.octopus.com.au) by email.octopus.com.au (Postfix) with ESMTP id DE2F61406B for ; Sun, 27 Jan 2008 18:35:38 +1100 (EST) Message-ID: <479C344A.4010207@modulus.org> Date: Sun, 27 Jan 2008 18:35:38 +1100 From: Andrew Snow User-Agent: Thunderbird 2.0.0.0 (X11/20070426) MIME-Version: 1.0 To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: sysctl exposures in jails X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 07:35:45 -0000 Hi, Is anyone concerned about exposure of certain sysctl values inside jails? Is it possible to hide some of them? Would there be any side-effects? If not, is it worth adding this feature to the system? - Andrew From owner-freebsd-jail@FreeBSD.ORG Mon Jan 28 11:07:04 2008 Return-Path: Delivered-To: freebsd-jail@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5F0416A4CE for ; Mon, 28 Jan 2008 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9480413C455 for ; Mon, 28 Jan 2008 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0SB74hG016362 for ; Mon, 28 Jan 2008 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0SB73Xi016358 for freebsd-jail@FreeBSD.org; Mon, 28 Jan 2008 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Jan 2008 11:07:03 GMT Message-Id: <200801281107.m0SB73Xi016358@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2008 11:07:04 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/89528 jail [jail] [patch] impossible to kill a jail o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail 2 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with o kern/68192 jail [quotas] [jail] Cannot use quotas on jailed systems o kern/72498 jail [libc] [jail] timestamp code on jailed SMP machine gen o kern/74314 jail [resolver] [jail] DNS resolver broken under certain ja o kern/84215 jail [jail] [patch] wildcard ip (INADDR_ANY) should not bin o kern/89989 jail [jail] [patch] Add option -I (ASCII 73) PID to specif o kern/97071 jail [jail] [patch] add security.jail.jid sysctl o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/119305 jail [jail] [patch] jexec(8): jexec -n prisonname: selectio 9 problems total. From owner-freebsd-jail@FreeBSD.ORG Wed Jan 30 21:13:25 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 292B016A417 for ; Wed, 30 Jan 2008 21:13:25 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by mx1.freebsd.org (Postfix) with ESMTP id E30A013C442 for ; Wed, 30 Jan 2008 21:13:24 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so376304wri.3 for ; Wed, 30 Jan 2008 13:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=DC159Cf1XysH4+TQ/H4P7eWlW1TlSycU3Wit7s4anrU=; b=iPn8dC2BOlmyXPaVblGIygKFj/BBgiRUOUlDfp07/vZdNFOZ6VQXTisLLgFyDtEZMiO1nSH0Fg9BLZWdtK1eMOSMu2niKo+EFXhqVm4zipC8AcRZrmiZ7tyKX/+yT9+mw+26GwxIyFSYywhbD/cfMioCnqdCYdjBWwHRQrfrnrk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YoFFeV7rBllh9eSsoqJDHpCmK0EOSmzDYJiVLUvVsypKgUzyKMpEOx1hpwPasveqN5N1WfRSkz7BgldrvlufeKtZEsnoP7O2Z0VilkjwmygqR0zlwTsXpFYP/jIB5K3HUT7BVVEAzqU9nUfkL//QpomRhvu3T2nfDXCbWC1EP6w= Received: by 10.142.76.4 with SMTP id y4mr698593wfa.31.1201726097225; Wed, 30 Jan 2008 12:48:17 -0800 (PST) Received: by 10.142.87.9 with HTTP; Wed, 30 Jan 2008 12:48:17 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 12:48:17 -0800 From: "Kurt Buff" To: freebsd-jail@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 21:13:25 -0000 All, I'm trying to set up my first jail, and have been following the handbook, Chapter 15, and a printout of 'man 8 jail' from the freebsd.org web site. I've followed the steps in the handbook through 15.4 (the 'make distribution' step got an error, which I ignored after reading the notes) up to the point where I entered the following in my /etc/rc.conf. jail_enable="YES" jail_list="wotan" jail_wotan_rootdir="/jails/wotan" jail_wotan_hostname="wotan.mycompany.com" jail_wotan_ip="192.168.24.123" jail_wotan_devfs_enable="YES" jail_wotan_devfs_ruleset="wotan_ruleset" I then did /etc/rc.d/jail /start wotan and that didn't work, giving the following lines: Starting jails: cannot start jail "wotan": jail: getpwnam: root: no such file or directory I googled a bit, but only find a reference to this on the -current list, regarding ZFS, which I'm not using. What am I missing? Thanks, Kurt From owner-freebsd-jail@FreeBSD.ORG Wed Jan 30 21:38:35 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2FFA16A418 for ; Wed, 30 Jan 2008 21:38:34 +0000 (UTC) (envelope-from jon.passki@hursk.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 93EB513C468 for ; Wed, 30 Jan 2008 21:38:34 +0000 (UTC) (envelope-from jon.passki@hursk.com) Received: by nf-out-0910.google.com with SMTP id b2so75903nfb.33 for ; Wed, 30 Jan 2008 13:38:33 -0800 (PST) Received: by 10.78.200.20 with SMTP id x20mr2019119huf.43.1201729112435; Wed, 30 Jan 2008 13:38:32 -0800 (PST) Received: by 10.78.187.8 with HTTP; Wed, 30 Jan 2008 13:38:32 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 15:38:32 -0600 From: "Jon Passki" To: "Kurt Buff" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-jail@freebsd.org Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 21:38:35 -0000 On 1/30/08, Kurt Buff wrote: > All, > > I'm trying to set up my first jail, and have been following the > handbook, Chapter 15, and a printout of 'man 8 jail' from the > freebsd.org web site. > > I've followed the steps in the handbook through 15.4 (the 'make > distribution' step got an error, which I ignored after reading the > notes) up to the point where I entered the following in my > /etc/rc.conf. If possible, can you post all of the steps? > jail_enable="YES" > jail_list="wotan" > jail_wotan_rootdir="/jails/wotan" > jail_wotan_hostname="wotan.mycompany.com" > jail_wotan_ip="192.168.24.123" > jail_wotan_devfs_enable="YES" > jail_wotan_devfs_ruleset="wotan_ruleset" > > I then did /etc/rc.d/jail /start wotan `/etc/rc.d/jail start wotan` # notice no forward slash in front of 'start' Also, I don't see a "jail_exec_start" statement nor a "jail_wotan_exec_start" statement anywhere. This could easily cause problems. You should have something like: jail_wotan_exec_start="/bin/sh /etc/rc" # command to execute in jail for starting jail_wotan_exec_stop="/bin/sh /etc/rc.shutdown" # command to execute in jail for stopping Somewhere. If you remove the "wotan" from the above, then that will be the default setting. > > and that didn't work, giving the following lines: > > Starting jails: cannot start jail "wotan": > jail: getpwnam: root: no such file or directory Does /jails/wotan/etc/passwd, /jails/wotan/etc/master.passwd, /jails/wotan/etc/pwd.db, and /jails/wotan/etc/spwd.db exist? > I googled a bit, but only find a reference to this on the -current > list, regarding ZFS, which I'm not using. Red herring, methinks. Jon From owner-freebsd-jail@FreeBSD.ORG Wed Jan 30 22:20:51 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41B7316A418 for ; Wed, 30 Jan 2008 22:20:51 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.247]) by mx1.freebsd.org (Postfix) with ESMTP id 0091213C4D5 for ; Wed, 30 Jan 2008 22:20:50 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by hs-out-2122.google.com with SMTP id h53so390206hsh.11 for ; Wed, 30 Jan 2008 14:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=sjaRljyv7LD/gRhVyS9wETlbt3b1yT+Z6E9cyIkbzdg=; b=cp5qkIo7rfFiRYiwrpBpH3XstFyHaySVXaTGAF+4iuSqo1JeNapr5jJq3O6YdvLJmKK8h0vrTS7vS33ziadQ91Xgh+MLhTv9tQ3bGGcfYkyD6v9b00a/xRvHGrR4JWdkjGKe4oI84o2oFOo0MQ1svr0bOtelAF5z5ZwYAHRALFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=M1H/mptjGwKWRHJPlxRHvDzOPqsAX3fyXxx3kHtYHNeOf5Th/p4IKU1Yrg5R7dS2FwLHevd/SesIMN6SBDjXYuqT2jznqtOPA51i0UKRDNpOY6O2YSciKeo1iD8tEUSHCVbEMnBMgE+ImTVmWHUgW2E3jPe6/pWKFgy/8/wDSSg= Received: by 10.110.39.5 with SMTP id m5mr687123tim.55.1201730170112; Wed, 30 Jan 2008 13:56:10 -0800 (PST) Received: from ?192.168.1.4? ( [24.229.62.9]) by mx.google.com with ESMTPS id i37sm723152wxd.12.2008.01.30.13.56.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Jan 2008 13:56:08 -0800 (PST) From: Glen Barber To: freebsd-jail@freebsd.org Date: Wed, 30 Jan 2008 16:56:03 -0500 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801301656.03087.glen.j.barber@gmail.com> Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 22:20:51 -0000 On Wednesday 30 January 2008 03:48:17 pm Kurt Buff wrote: > I've followed the steps in the handbook through 15.4 (the 'make > distribution' step got an error, which I ignored after reading the > notes) up to the point where I entered the following in my > /etc/rc.conf. > What was the error? Did you change directories to 'etc' as instructed in the handbook? (If so, `cd /usr/src; make distribution DESTDIR=$D', and see if you get the same error.) Not changing directories on my system successfully built the distribution. > > I then did /etc/rc.d/jail /start wotan > Are you typing `/etc/rc.d/jail /start wotan' ? If so, it *should* be: `/etc/rc.d/jail start wotan' Note the lack of a '/' before start. HTH -- Glen Barber (570)328-0318 From owner-freebsd-jail@FreeBSD.ORG Thu Jan 31 02:02:28 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E75AD16A421 for ; Thu, 31 Jan 2008 02:02:28 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id 9083413C4E9 for ; Thu, 31 Jan 2008 02:02:28 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so495291wxd.7 for ; Wed, 30 Jan 2008 18:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=gWpbg9C/QMjVEpTIUhGi4T9L0VabJCgBFwXMNc739mc=; b=pJ0qHCr6S9HF6d2vRm2r7lfyb01zbCWTmkdGiR+VgJT89spL/3o4ZW+XyBMZBCezMwq2htihw9RMRinEEO0nNNMNiXHDdSp66pk1JSTMZPyOO48KwxE2g2YV9Dew9cOfMMihYbKsirw9HgZobWVm8Nwqvm39nHbJC3YiZUESh8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=xnpdnO91ELjE/7HIFsKQ74fiqxxjbIKNZahjIv+T2NuQtg49kefth0zWT1xHN76To2eb9myAGITYCBq8hQYzGU+5s2X05ZY/aiNkqJ1vsgALlLiJ0v/HgpdMLGn2i/rjTlV8W67I0dKziKWfEv3anctTMQtPdc+BdOnZK1QlKqw= Received: by 10.142.246.8 with SMTP id t8mr850982wfh.199.1201744946579; Wed, 30 Jan 2008 18:02:26 -0800 (PST) Received: by 10.142.87.9 with HTTP; Wed, 30 Jan 2008 18:02:26 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 18:02:26 -0800 From: "Kurt Buff" To: "Jon Passki" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-jail@freebsd.org Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 02:02:29 -0000 On Jan 30, 2008 1:38 PM, Jon Passki wrote: > On 1/30/08, Kurt Buff wrote: > > All, > > > > I'm trying to set up my first jail, and have been following the > > handbook, Chapter 15, and a printout of 'man 8 jail' from the > > freebsd.org web site. > > > > I've followed the steps in the handbook through 15.4 (the 'make > > distribution' step got an error, which I ignored after reading the > > notes) up to the point where I entered the following in my > > /etc/rc.conf. > > If possible, can you post all of the steps? # mkdir -p /jails/wotan # setenv D /jails/wotan # cd /usr/src # makeworld DESTDIR=$D && make distribution DESTDIR=$D && mount_devfs devfs $D $D/dev I then edited /etc/rc.conf to include the lines below. > > jail_enable="YES" > > jail_list="wotan" > > jail_wotan_rootdir="/jails/wotan" > > jail_wotan_hostname="wotan.mycompany.com" > > jail_wotan_ip="192.168.24.123" > > jail_wotan_devfs_enable="YES" > > jail_wotan_devfs_ruleset="wotan_ruleset" > > > > I then did /etc/rc.d/jail /start wotan > > `/etc/rc.d/jail start wotan` # notice no forward slash in front of 'start' Yes - that's a typo on my part - I did actually omit the slash at the command line. > Also, I don't see a "jail_exec_start" statement nor a > "jail_wotan_exec_start" statement anywhere. This could easily cause > problems. You should have something like: > > jail_wotan_exec_start="/bin/sh /etc/rc" # command to > execute in jail for starting > jail_wotan_exec_stop="/bin/sh /etc/rc.shutdown" # command to > execute in jail for stopping > > Somewhere. If you remove the "wotan" from the above, then that will > be the default setting. Good to know. I'm assuming that they can be put in with the rest of the lines in /etc/rc.conf? > > > > and that didn't work, giving the following lines: > > > > Starting jails: cannot start jail "wotan": > > jail: getpwnam: root: no such file or directory > > Does /jails/wotan/etc/passwd, /jails/wotan/etc/master.passwd, > /jails/wotan/etc/pwd.db, and /jails/wotan/etc/spwd.db exist? No, I'm afraid not. > > I googled a bit, but only find a reference to this on the -current > > list, regarding ZFS, which I'm not using. > > Red herring, methinks. > > Jon > From owner-freebsd-jail@FreeBSD.ORG Thu Jan 31 02:10:11 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47CD616A41A for ; Thu, 31 Jan 2008 02:10:11 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id F3D8613C44B for ; Thu, 31 Jan 2008 02:10:10 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so497853wxd.7 for ; Wed, 30 Jan 2008 18:10:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=dgv5zx2n3Qj7XSJ3MGQpacXHi61ftwD87mW9kPiy4UQ=; b=elaCdUIPs9fnM+xZVpJqfMeVm8g10aQXDMhXGPtD4gdHi8U7GrARdjFXZYNMc88APOkZalIxG6D5qAlh/nq4vt2GMDLoB2ikIllP2PcCAK9pjl1gnZ6oXw4lcXbYjgNJFTKQh7HSMCghG0DdfLMwmqlxYTUkRP+xRtwVBGI9Iok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pJyVh3YrnFkF/zsQdOfj0oQi9GnAlL8S7ICJu0HS1VGgGR1S/6sSHzqHFK+9bBa/nD6aXxKd4CcrSqzu4FkE0fBpQNqolLYTzw/rVU4c7A4X6v7aqhgjfg1oIW0Y8JOYrWqnugFPxQrKU8WL+849eFxw+xNqEPWPUQ1x9DvX/3I= Received: by 10.142.213.9 with SMTP id l9mr874532wfg.71.1201745409391; Wed, 30 Jan 2008 18:10:09 -0800 (PST) Received: by 10.142.87.9 with HTTP; Wed, 30 Jan 2008 18:10:09 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 18:10:09 -0800 From: "Kurt Buff" To: "Glen Barber" In-Reply-To: <200801301656.03087.glen.j.barber@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200801301656.03087.glen.j.barber@gmail.com> Cc: freebsd-jail@freebsd.org Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 02:10:11 -0000 On Jan 30, 2008 1:56 PM, Glen Barber wrote: > On Wednesday 30 January 2008 03:48:17 pm Kurt Buff wrote: > > > I've followed the steps in the handbook through 15.4 (the 'make > > distribution' step got an error, which I ignored after reading the > > notes) up to the point where I entered the following in my > > /etc/rc.conf. > > > > What was the error? Did you change directories to 'etc' as instructed in the > handbook? (If so, `cd /usr/src; make distribution DESTDIR=$D', and see if you > get the same error.) Not changing directories on my system successfully > built the distribution. > > > > > I then did /etc/rc.d/jail /start wotan > > > > Are you typing `/etc/rc.d/jail /start wotan' ? If so, it *should* be: > `/etc/rc.d/jail start wotan' > Note the lack of a '/' before start. > > HTH > -- > Glen Barber > (570)328-0318 I've started over, at this point. I've blown away /jails/wotan (and used chflags -R noschg * to make sure nothing was left), and am using this command line to leave this running overnight - I'll check on it when I get back in the morning: # mkdir /jails/wotan && setenv D /jails/wotan && cd /usr/src && make world DESTDIR=$D && cd etc && make distribution DESTDIR=$D && mount_devfs devfs $D/dev Kurt From owner-freebsd-jail@FreeBSD.ORG Thu Jan 31 02:41:51 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61A3816A418 for ; Thu, 31 Jan 2008 02:41:51 +0000 (UTC) (envelope-from jon.passki@hursk.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id CF8FB13C4CE for ; Thu, 31 Jan 2008 02:41:50 +0000 (UTC) (envelope-from jon.passki@hursk.com) Received: by fk-out-0910.google.com with SMTP id b27so528658fka.11 for ; Wed, 30 Jan 2008 18:41:49 -0800 (PST) Received: by 10.78.204.7 with SMTP id b7mr2346704hug.54.1201747308483; Wed, 30 Jan 2008 18:41:48 -0800 (PST) Received: by 10.78.187.8 with HTTP; Wed, 30 Jan 2008 18:41:48 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 20:41:48 -0600 From: "Jon Passki" To: "Kurt Buff" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-jail@freebsd.org Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 02:41:51 -0000 On 1/30/08, Kurt Buff wrote: > On Jan 30, 2008 1:38 PM, Jon Passki wrote: > > On 1/30/08, Kurt Buff wrote: > > > All, > > > > > > I'm trying to set up my first jail, and have been following the > > > handbook, Chapter 15, and a printout of 'man 8 jail' from the > > > freebsd.org web site. > > > > > > I've followed the steps in the handbook through 15.4 (the 'make > > > distribution' step got an error, which I ignored after reading the > > > notes) up to the point where I entered the following in my > > > /etc/rc.conf. What was the error, by the way? This step is what creates the password database files. > > If possible, can you post all of the steps? > > > # mkdir -p /jails/wotan > > # setenv D /jails/wotan > > # cd /usr/src > > # makeworld DESTDIR=$D && make distribution DESTDIR=$D && mount_devfs > devfs $D $D/dev The mount_devfs isn't necessary, since you're using the /etc/rc.conf command below. Also, I'm assuming you had a space in 'make world' above. The manual page is assuming you aren't necessarily using /etc/rc.conf. Maybe an opportunity to update the manual page :-) > I then edited /etc/rc.conf to include the lines below. > > > > jail_enable="YES" > > > jail_list="wotan" > > > jail_wotan_rootdir="/jails/wotan" > > > jail_wotan_hostname="wotan.mycompany.com" > > > jail_wotan_ip="192.168.24.123" > > > jail_wotan_devfs_enable="YES" > > > jail_wotan_devfs_ruleset="wotan_ruleset" I missed this before. Unless you created a devfs ruleset called wotan_ruleset, remove this line. The /etc/rc.d/jail script will use the default jail devfs ruleset. > > > I then did /etc/rc.d/jail /start wotan > > > > `/etc/rc.d/jail start wotan` # notice no forward slash in front of 'start' > > Yes - that's a typo on my part - I did actually omit the slash at the > command line. :-) > > Also, I don't see a "jail_exec_start" statement nor a > > "jail_wotan_exec_start" statement anywhere. This could easily cause > > problems. You should have something like: > > > > jail_wotan_exec_start="/bin/sh /etc/rc" # command to > > execute in jail for starting > > jail_wotan_exec_stop="/bin/sh /etc/rc.shutdown" # command to > > execute in jail for stopping > > > > Somewhere. If you remove the "wotan" from the above, then that will > > be the default setting. > > Good to know. I'm assuming that they can be put in with the rest of > the lines in /etc/rc.conf? Yep. > > > > > > and that didn't work, giving the following lines: > > > > > > Starting jails: cannot start jail "wotan": > > > jail: getpwnam: root: no such file or directory > > > > Does /jails/wotan/etc/passwd, /jails/wotan/etc/master.passwd, > > /jails/wotan/etc/pwd.db, and /jails/wotan/etc/spwd.db exist? > > No, I'm afraid not. This is what's causing the getpwnam error in the first place. Basically, your system is saying return the root account information, but when it tries to look it up in the password database (defaults to the files above, basically), nothing is there. The make distribution should have automatically went into src/etc and created a default /jails/wotan/etc/passwd and friends install. As for the `make distribution DESTDIR=$D` and not changing into src/etc, that should be OK. The Makefile.inc for RELENG_6_2, RELENG_6_3, and RELENG_7_0 does it automatically. The src/etc/Makefile for RELENG_6_2, RELENG_6_3, and RELENG_7_0 all explicitly create the password database files by calling pwd_mkdb. But, you don't have the files... As you mentioned, an error occurred during make distribution. That to me seems the issue... Jon From owner-freebsd-jail@FreeBSD.ORG Thu Jan 31 02:51:38 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C00C416A418 for ; Thu, 31 Jan 2008 02:51:38 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by mx1.freebsd.org (Postfix) with ESMTP id 7512713C46E for ; Thu, 31 Jan 2008 02:51:38 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so511532wxd.7 for ; Wed, 30 Jan 2008 18:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=gjSA+bcaUk6b3v5afP1oUeLyRTCCQ57mPj4zdSIvt6I=; b=BrYWMwenBINSk4A3g7o/6m965/on/OOS6y8r7BhhzqtaBCTwAm2ZdLbmXWo0lgX7HhBhsQnVGtS7UvlXl3c007Nrf1TLkP0fe0ZIOL38xFZgrGNjo+23xFwyfvzVjtD18dblpbenRQTY6lWRtXZbfSYKzP9SFq5yVOHQ+/aJU6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Tc29K4jzuqBLkh0prQMC26m4puPoKY8MdTyKWNpxPcbPXmCNmd/QkuVSC3Yma3AkWc7FpL74vqV177zBbO9IueL+zMOj9mwhGOut9afBZ7eyUN7r1fVWNZj+H6tJwj/+BsB4i4ODxHrHvtCbGJKcxW5yFNK33dAIt0SNbdkOxXw= Received: by 10.142.162.5 with SMTP id k5mr860693wfe.171.1201747895912; Wed, 30 Jan 2008 18:51:35 -0800 (PST) Received: by 10.142.87.9 with HTTP; Wed, 30 Jan 2008 18:51:35 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 18:51:35 -0800 From: "Kurt Buff" To: "Jon Passki" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-jail@freebsd.org Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 02:51:38 -0000 On Jan 30, 2008 6:41 PM, Jon Passki wrote: > On 1/30/08, Kurt Buff wrote: > > On Jan 30, 2008 1:38 PM, Jon Passki wrote: > > > On 1/30/08, Kurt Buff wrote: > > > > All, > > > > > > > > I'm trying to set up my first jail, and have been following the > > > > handbook, Chapter 15, and a printout of 'man 8 jail' from the > > > > freebsd.org web site. > > > > > > > > I've followed the steps in the handbook through 15.4 (the 'make > > > > distribution' step got an error, which I ignored after reading the > > > > notes) up to the point where I entered the following in my > > > > /etc/rc.conf. > > What was the error, by the way? This step is what creates the > password database files. The error that I saw was: Starting jails: cannot start jail "wotan": jail: getpwnam: root: no such file or directory Is that the error you mean? > > > > If possible, can you post all of the steps? > > > > > > # mkdir -p /jails/wotan > > > > # setenv D /jails/wotan > > > > # cd /usr/src > > > > # makeworld DESTDIR=$D && make distribution DESTDIR=$D && mount_devfs > > devfs $D $D/dev > > The mount_devfs isn't necessary, since you're using the /etc/rc.conf > command below. Also, I'm assuming you had a space in 'make world' > above. The manual page is assuming you aren't necessarily using > /etc/rc.conf. Maybe an opportunity to update the manual page :-) Yes, another typo :) - I'm retyping this by hand, as I'm running FreeBSD as a VMWare server guest on a Windows XP host. Glad I could provide someone with an opportunity! Heh. > > I then edited /etc/rc.conf to include the lines below. > > > > > > jail_enable="YES" > > > > jail_list="wotan" > > > > jail_wotan_rootdir="/jails/wotan" > > > > jail_wotan_hostname="wotan.mycompany.com" > > > > jail_wotan_ip="192.168.24.123" > > > > jail_wotan_devfs_enable="YES" > > > > jail_wotan_devfs_ruleset="wotan_ruleset" > > > I missed this before. Unless you created a devfs ruleset called > wotan_ruleset, remove this line. The /etc/rc.d/jail script will use > the default jail devfs ruleset. I saw that, but, ya know, there's nothing that I saw about *where* to place the ruleset. I'll admit that I haven't read devfs(8) or devfs.conf(5) pages, though. Perhaps it's explained there. > > > > I then did /etc/rc.d/jail /start wotan > > > > > > `/etc/rc.d/jail start wotan` # notice no forward slash in front of 'start' > > > > Yes - that's a typo on my part - I did actually omit the slash at the > > command line. > > :-) > > > > Also, I don't see a "jail_exec_start" statement nor a > > > "jail_wotan_exec_start" statement anywhere. This could easily cause > > > problems. You should have something like: > > > > > > jail_wotan_exec_start="/bin/sh /etc/rc" # command to > > > execute in jail for starting > > > jail_wotan_exec_stop="/bin/sh /etc/rc.shutdown" # command to > > > execute in jail for stopping > > > > > > Somewhere. If you remove the "wotan" from the above, then that will > > > be the default setting. > > > > Good to know. I'm assuming that they can be put in with the rest of > > the lines in /etc/rc.conf? > > Yep. Good - I'll do that tomorrow, when I get back to work. > > > > > > > > and that didn't work, giving the following lines: > > > > > > > > Starting jails: cannot start jail "wotan": > > > > jail: getpwnam: root: no such file or directory > > > > > > Does /jails/wotan/etc/passwd, /jails/wotan/etc/master.passwd, > > > /jails/wotan/etc/pwd.db, and /jails/wotan/etc/spwd.db exist? > > > > No, I'm afraid not. > > This is what's causing the getpwnam error in the first place. > Basically, your system is saying return the root account information, > but when it tries to look it up in the password database (defaults to > the files above, basically), nothing is there. The make distribution > should have automatically went into src/etc and created a default > /jails/wotan/etc/passwd and friends install. > > As for the `make distribution DESTDIR=$D` and not changing into > src/etc, that should be OK. The Makefile.inc for RELENG_6_2, > RELENG_6_3, and RELENG_7_0 does it automatically. The > src/etc/Makefile for RELENG_6_2, RELENG_6_3, and RELENG_7_0 all > explicitly create the password database files by calling pwd_mkdb. > But, you don't have the files... As you mentioned, an error occurred > during make distribution. That to me seems the issue... > > Jon Alright - I'll look at the results again tomorrow, and keep trying, and posting. Thanks for your help - all of you! Kurt From owner-freebsd-jail@FreeBSD.ORG Thu Jan 31 09:36:13 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C93816A46E for ; Thu, 31 Jan 2008 09:36:13 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by mx1.freebsd.org (Postfix) with ESMTP id 37EC713C4E1 for ; Thu, 31 Jan 2008 09:36:13 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so576221wxd.7 for ; Thu, 31 Jan 2008 01:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=fNy1zglOFqY/9fQV6f3ZVGR27IR0POTxmPLNl0M8V1o=; b=U46k3kVwbHqb91jde9TozZS8Gm2ugRvHbtwLG0SkKCde4V4NpUKIHgpSlS82HdbHC7S1gQrYWb9FH54FXq9REPwsf09xWVHGXJFrVxaXfljY2piZuRUu8wBi+lGiRTN8R57ZP1lkNwh20ieKfL1jtC0W9lrXOBY1lEA0mIbU/hU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=jgukBjKqMythuMJfbDa4StCzR2bGi6JfpVwfUAADu7eNlyGMx8iFYR2B/Pcr1Af0fugraYsbSVat6nc4OKc2zezUsKjRNyYIqERVaAmgMIaHIDDvAf61wVm3/MKMZtMxUZclCOYW4auVCFjxcnj621Rg5JRkuX5MduXyKYUc8HM= Received: by 10.70.50.3 with SMTP id x3mr1175165wxx.72.1201772172387; Thu, 31 Jan 2008 01:36:12 -0800 (PST) Received: from phoenix ( [24.229.62.9]) by mx.google.com with ESMTPS id h20sm1896062wxd.37.2008.01.31.01.36.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Jan 2008 01:36:11 -0800 (PST) Received: from gbarber by phoenix with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JKVq5-0000iD-2v for freebsd-jail@freebsd.org; Thu, 31 Jan 2008 04:36:09 -0500 Date: Thu, 31 Jan 2008 04:36:09 -0500 From: Glen Barber To: freebsd-jail@freebsd.org Message-ID: <20080131093609.GA2618@phoenix> Mail-Followup-To: freebsd-jail@freebsd.org References: <200801301656.03087.glen.j.barber@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 09:36:13 -0000 Kurt Buff said: > > I've started over, at this point. > > I've blown away /jails/wotan (and used chflags -R noschg * to make > sure nothing was left), and am using this command line to leave this > running overnight - I'll check on it when I get back in the morning: > > # mkdir /jails/wotan && setenv D /jails/wotan && cd /usr/src && make > world DESTDIR=$D && cd etc && make distribution DESTDIR=$D && > mount_devfs devfs $D/dev > When you do rebuild your jails, don't change directories after the 'make world' step. It is unnecessary in FreeBSD 6.0+. The command should look like: mkdir /jails/wotan && setenv D /jails/wotan && cd /usr/src && make world DESTDIR=$D && make distribution DESTDIR=$D -- Glen Barber From owner-freebsd-jail@FreeBSD.ORG Thu Jan 31 13:14:28 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE63716A41A for ; Thu, 31 Jan 2008 13:14:28 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 8C07313C461 for ; Thu, 31 Jan 2008 13:14:28 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A554D0.dip.t-dialin.net [84.165.84.208]) by redbull.bpaserver.net (Postfix) with ESMTP id 859182E264; Thu, 31 Jan 2008 14:14:08 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0E5FC8DDEE; Thu, 31 Jan 2008 14:14:01 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m0VDE0cK048322; Thu, 31 Jan 2008 14:14:00 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 31 Jan 2008 14:14:00 +0100 Message-ID: <20080131141400.i2e4tfi0kcooowcc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 14:14:00 +0100 From: Alexander Leidinger To: Glen Barber References: <200801301656.03087.glen.j.barber@gmail.com> <20080131093609.GA2618@phoenix> In-Reply-To: <20080131093609.GA2618@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.746, required 6, BAYES_00 -15.00, RDNS_DYNAMIC 0.10, TW_EV 0.08, TW_ZJ 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-jail@freebsd.org Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 13:14:29 -0000 Quoting Glen Barber (from Thu, 31 Jan 2008 =20 04:36:09 -0500): > Kurt Buff said: >> >> I've started over, at this point. >> >> I've blown away /jails/wotan (and used chflags -R noschg * to make >> sure nothing was left), and am using this command line to leave this >> running overnight - I'll check on it when I get back in the morning: >> >> # mkdir /jails/wotan && setenv D /jails/wotan && cd /usr/src && make >> world DESTDIR=3D$D && cd etc && make distribution DESTDIR=3D$D && >> mount_devfs devfs $D/dev >> > When you do rebuild your jails, don't change directories after the 'make > world' step. It is unnecessary in FreeBSD 6.0+. > > The command should look like: > mkdir /jails/wotan && setenv D /jails/wotan && cd /usr/src && make world > DESTDIR=3D$D && make distribution DESTDIR=3D$D While it is not regarding what you ask, it may be better to forget =20 about this and use the ezjail port instead. Much less work by hand to =20 do. Install, have a look at the config file, and then start =20 creating/using jails within some seconds (if _one_ buildworld was =20 already run with the current sources) Bye, Alexander. --=20 Ferengi Rule of Acquisition #266: =09When in doubt, lie. =09=09-- ST: Legends of the Ferengi http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-jail@FreeBSD.ORG Fri Feb 1 02:23:41 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2680616A503 for ; Fri, 1 Feb 2008 02:23:41 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.freebsd.org (Postfix) with ESMTP id CDB6613C447 for ; Fri, 1 Feb 2008 02:23:40 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so896223wxd.7 for ; Thu, 31 Jan 2008 18:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=rgIdUibFdoLsCEhOZVYxrkwLULy0KYwEAtp+9B0wyPI=; b=mGDqHIeygO53y1MtTPCcmHRFfqTfxLTI3OX2aaS6/C37wiSsx4GANpVdeQbrbgKfxKoP+pz/T7N4P44prQnNepZNjiAthl0rroPEGFyEHpPj7vhfjfigDjEKaPS7WMKEy95iqyjtvRztaDMCqs7yhSPoq6BItu8YxSFaUaflRXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ui9JwETVjnQdm2yTfx8KZdnLHI+1aa1XfCv+Cq11FoyBBd7KeuufqSCgOyh5y5/04Uh+sve7hYr22mT3uQVlpIb4t1O6FAM7aLhT1auHVykCN5OUbr3wl0DfFAepc8rdXojypaYbUO1ad4z1PeNUZPVdO7/kcZXHKepn7ZkhkZY= Received: by 10.142.127.10 with SMTP id z10mr1797919wfc.216.1201832618729; Thu, 31 Jan 2008 18:23:38 -0800 (PST) Received: by 10.142.87.9 with HTTP; Thu, 31 Jan 2008 18:23:38 -0800 (PST) Message-ID: Date: Thu, 31 Jan 2008 18:23:38 -0800 From: "Kurt Buff" To: freebsd-jail@freebsd.org In-Reply-To: <20080131093609.GA2618@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200801301656.03087.glen.j.barber@gmail.com> <20080131093609.GA2618@phoenix> Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 02:23:41 -0000 On Jan 31, 2008 1:36 AM, Glen Barber wrote: > Kurt Buff said: > > > > I've started over, at this point. > > > > I've blown away /jails/wotan (and used chflags -R noschg * to make > > sure nothing was left), and am using this command line to leave this > > running overnight - I'll check on it when I get back in the morning: > > > > # mkdir /jails/wotan && setenv D /jails/wotan && cd /usr/src && make > > world DESTDIR=$D && cd etc && make distribution DESTDIR=$D && > > mount_devfs devfs $D/dev > > > When you do rebuild your jails, don't change directories after the 'make > world' step. It is unnecessary in FreeBSD 6.0+. > > The command should look like: > mkdir /jails/wotan && setenv D /jails/wotan && cd /usr/src && make world > DESTDIR=$D && make distribution DESTDIR=$D Yes, that's what the handbook said, too. I figured it couldn't hurt, though. I haven't been able to look at this today - I've been installing a new set of firewalls all day. More tomorrow. Kurt