Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 2004 11:07:39 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Harti Brandt <harti@FreeBSD.ORG>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: make installworld for non-root user
Message-ID:  <20040707080739.GB66260@ip.net.ua>
In-Reply-To: <20040707095457.J3232@beagle.kn.op.dlr.de>
References:  <20040707095457.J3232@beagle.kn.op.dlr.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040707080739.GB66260>