From owner-freebsd-questions Wed Oct 3 22: 6:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id F211637B406 for ; Wed, 3 Oct 2001 22:06:14 -0700 (PDT) Received: (qmail 58920 invoked by uid 100); 4 Oct 2001 05:06:09 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15291.60993.118605.189011@guru.mired.org> Date: Thu, 4 Oct 2001 00:06:09 -0500 To: Tim Singletary Cc: questions@freebsd.org Subject: Re: `cp -Rp' vs `pax -r -w'; setting up multiple jails In-Reply-To: <15291.6111.656978.545356@macaw.hq.vetinsite.com> References: <66297919@toto.iv> <15290.57750.60631.476946@guru.mired.org> <15291.6111.656978.545356@macaw.hq.vetinsite.com> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tim Singletary types: > > Both tar and cpio handle hard links correctly. If you plan to keep a > > cpio, tar, and pax handle hard links correctly, but they don't set > the schg flag (man 1 chflags). cp sets the schg flag but doesn't > handle hard links. I was looking for something that does both. Arrgh, I missed the problem with the second one. Sorry about that. In this case, the one working solution I know of would be to create the template on a file-backed vn disk, dump that, then restore it to create new versions of the template. You might also give the cpdup port a look, as Matt tends to get such details right. If you do, please let me know how it works. > I'm not sure if the schg flag is important in jails. Will I lose > anything if it isn't set? schg basically lets you say "You can't change this file without a reboot" by setting securelevel appropriately. It provides a way to let people have root access in the jail and still not be able to write on files you don't want them to change. If you need that, then yes, you need schg. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message