From owner-freebsd-questions@FreeBSD.ORG Wed Sep 26 02:42:38 2007 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 33D9A16A41A for ; Wed, 26 Sep 2007 02:42:38 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by mx1.freebsd.org (Postfix) with ESMTP id 00E4513C447 for ; Wed, 26 Sep 2007 02:42:37 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by bravo.pjkh.com (Postfix) with ESMTP id EADAE13C7E9; Tue, 25 Sep 2007 19:59:06 -0700 (PDT) Received: by bravo.pjkh.com (Postfix, from userid 1000) id CF33313C7E6; Tue, 25 Sep 2007 19:59:06 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by bravo.pjkh.com (Postfix) with ESMTP id CC3CC13C404; Tue, 25 Sep 2007 19:59:06 -0700 (PDT) Date: Tue, 25 Sep 2007 19:59:06 -0700 (PDT) From: Philip Hallstrom To: aminuddin@datarunding.com.my In-Reply-To: <46f9ac0f.27f8720a.1eea.2115@mx.google.com> Message-ID: <20070925195732.R87299@bravo.pjkh.com> References: <46f9ac0f.27f8720a.1eea.2115@mx.google.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-questions@freebsd.org Subject: Re: Sharing application jail and host? 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, 26 Sep 2007 02:42:38 -0000 > Hi freebsd gurus, > I'm playing with jail setup and wanted to provide a virtual server to my > external remote users to login by ssh and run a couple of applications. > > Do I need to install the application using the ports in the jail itself or > can I just install the application in the host environment? Is there any > methods to enable sharing of the application across the jail and host? > > Example, if I want to let jail to run pure-ftpd, do I need to install > pure-ftpd in each of the jail that I will be creating? You can share directories b/n the host and the jails using nullfs. I do that to share /usr/ports. If you're just starting out look into the ezjail package. It makes life a *lot* simpler if you're going to be managing several jails. It uses this trick to create a master jail such that future jails only take up about 10mb (base install anyway). Good stuff.