From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 6 08:10:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C19991065670 for ; Sat, 6 Sep 2008 08:10:41 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [87.251.61.211]) by mx1.freebsd.org (Postfix) with ESMTP id 91E0A8FC27 for ; Sat, 6 Sep 2008 08:10:41 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 5C77D1CC73; Sat, 6 Sep 2008 09:45:54 +0200 (CEST) Date: Sat, 6 Sep 2008 09:45:54 +0200 From: Ed Schouten To: Joshua Piccari Message-ID: <20080906074554.GB99951@hoeg.nl> References: <15d3bc360809051940t70f0b884mb9a80132acc50b45@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vMU6QONnIyeQN1NO" Content-Disposition: inline In-Reply-To: <15d3bc360809051940t70f0b884mb9a80132acc50b45@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Hackers Subject: Re: Temp files in /etc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2008 08:10:41 -0000 --vMU6QONnIyeQN1NO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Joshua Piccari wrote: > Hi all, > I am setting up a few jails and I want them all to use the same /etc files > (with the exception of the files related to the password files and > databases), so I mounted a shared /etc folder as a nullfs with read-only > permissions. The problem is that using utilities like pw or chpass create > temporary files in /etc and that file system is mounted read-only. > So is there a way to force any utilities that create temp files in /etc to > use another location, something like /usr/local/etc for example? You could mount a unionfs on top. If the bottom mount is read-only, it will store modifications on the top mount. --=20 Ed Schouten WWW: http://80386.nl/ --vMU6QONnIyeQN1NO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkjCNTIACgkQ52SDGA2eCwVC5QCfa8kNm1vcJLxRxzz4rMnINWJ9 SQgAn29VsVXgJ+0RPfqCOdWNQ1FPvTeQ =O7N0 -----END PGP SIGNATURE----- --vMU6QONnIyeQN1NO--