Temp files in /etc

Ed Schouten ed at 80386.nl
Sat Sep 6 08:10:41 UTC 2008


* Joshua Piccari <jpiccari at 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.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080906/52026148/attachment.pgp


More information about the freebsd-hackers mailing list