Date: Sat, 6 Sep 2008 09:45:54 +0200 From: Ed Schouten <ed@80386.nl> To: Joshua Piccari <jpiccari@bblocked.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Temp files in /etc Message-ID: <20080906074554.GB99951@hoeg.nl> In-Reply-To: <15d3bc360809051940t70f0b884mb9a80132acc50b45@mail.gmail.com> References: <15d3bc360809051940t70f0b884mb9a80132acc50b45@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--vMU6QONnIyeQN1NO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Joshua Piccari <jpiccari@bblocked.org> 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 <ed@80386.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080906074554.GB99951>