From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 7 08:07:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2539F16A4CE; Wed, 7 Jul 2004 08:07:44 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DA9843D41; Wed, 7 Jul 2004 08:07:43 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i6787ZRv041095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Jul 2004 11:07:36 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i6787dc8066386; Wed, 7 Jul 2004 11:07:39 +0300 (EEST) (envelope-from ru) Date: Wed, 7 Jul 2004 11:07:39 +0300 From: Ruslan Ermilov To: Harti Brandt Message-ID: <20040707080739.GB66260@ip.net.ua> References: <20040707095457.J3232@beagle.kn.op.dlr.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Content-Disposition: inline In-Reply-To: <20040707095457.J3232@beagle.kn.op.dlr.de> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: hackers@FreeBSD.ORG Subject: Re: make installworld for non-root user X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2004 08:07:44 -0000 --Y7xTucakfITjPcLV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 07, 2004 at 09:57:52AM +0200, Harti Brandt wrote: >=20 > Hi all, >=20 > is there an easy way for a non-root user to test the installworld target? > I came up with >=20 > make SHAREOWN=3Dharti SHAREGRP=3Dharti LIBOWN=3Dharti LIBGRP=3Dharti \ > NOFSCHG=3Dyes INFOMODE=3D644 INFOOWN=3Dharti INFOGRP=3Dharti MANOWN=3Dhar= ti \ > MANGRP=3Dharti BINOWN=3Dharti BINGRP=3Dharti DESTDIR=3D/t/scratch/harti/r= oot/ \ > installworld >=20 > but that one breaks in libexec/pt_chown (which has a hard-coded=20 > BINOWN=3Droot). >=20 > Perhaps I can't see the obvious solution? >=20 Many bits hardcode owners/groups/modes/flags, but it's still possible to install as non-root. In fact, buildworld already does this for you -- it uses src/tools/install.sh as INSTALL to do it (see the BMAKEENV setting in Makefile.inc1). Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --Y7xTucakfITjPcLV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA669LqRfpzJluFF4RAgSXAJ48yFQORQ2p+YTPqx3g5GAKWHq9kQCcC0/J zAYAUt7dVUM0buk9o8BDp4U= =YAZQ -----END PGP SIGNATURE----- --Y7xTucakfITjPcLV--