Subject: Re: Wrong permissions?
To: Ossi Herrala <>
From: Michael Schabert <>
List: current-users
Date: 03/30/2003 09:07:32
On Saturday, March 29, 2003, at 04:44AM, Ossi Herrala <> wrote:

>On Fri, Mar 28, 2003 at 01:15:06PM -0500, Andrew Brown wrote:
>> >>./ -D /usr/dist -U install=/
>> >
>> indeed.  i don't know for sure, but i am suspecting that the -U is
>> what's fouling things up for you when things are installed.  try
>> again, as root, but without that flag?
>From /usr/src/BUILDING:
>     3.   # ./ -U -D /path/to/destdir install=/
>          As root, install to / the distribution that was built by example 2.
>          Even though this is run as root, -U is required so that the permis-
>          sions stored in /path/to/destdir/METALOG are correctly applied to
>          the files as they're copied to /.
>I do my builds with following commands:
>   ./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -rU tools
>   ./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU build
>   ./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU kernel=TXPO
>   Install kernel with cp
>   ./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU install=/

But the *very* important step that you're leaving out is that you must su(d0) 
to root before the install. If you perform those steps in exactly the order that 
you list, then you either (1) were root the whole time (making -U useless), 
or (2) could not have done the proper install with permissions because you were 
not root ever.