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>

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

[-- Attachment #1 --]
On Wed, Jul 07, 2004 at 09:57:52AM +0200, Harti Brandt wrote:
> 
> Hi all,
> 
> is there an easy way for a non-root user to test the installworld target?
> I came up with
> 
> make SHAREOWN=harti SHAREGRP=harti LIBOWN=harti LIBGRP=harti \
> NOFSCHG=yes INFOMODE=644 INFOOWN=harti INFOGRP=harti MANOWN=harti \
> MANGRP=harti BINOWN=harti BINGRP=harti DESTDIR=/t/scratch/harti/root/ \
> installworld
> 
> but that one breaks in libexec/pt_chown (which has a hard-coded 
> BINOWN=root).
> 
> Perhaps I can't see the obvious solution?
> 
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,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA669LqRfpzJluFF4RAgSXAJ48yFQORQ2p+YTPqx3g5GAKWHq9kQCcC0/J
zAYAUt7dVUM0buk9o8BDp4U=
=YAZQ
-----END PGP SIGNATURE-----
help

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