make installworld for non-root user

Ruslan Ermilov ru at FreeBSD.ORG
Wed Jul 7 01:07:44 PDT 2004


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 at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040707/68d4f5cf/attachment.bin


More information about the freebsd-hackers mailing list