Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2017 18:32:23 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        Polytropon <freebsd@edvax.de>
Cc:        Baho Utot <baho-utot@columbus.rr.com>,  FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Building base source
Message-ID:  <CAPyFy2C5MNki8s0-U3BpU8FjiPF1T77Ds4bgR6oA8HXbGoDO6Q@mail.gmail.com>
In-Reply-To: <20170611081000.0916e602.freebsd@edvax.de>
References:  <e4198baf-27e2-2e25-c9b5-9f4dbaccde7e@columbus.rr.com> <44y3t19e5i.fsf@lowell-desk.lan> <872fe20f-fece-9980-2c8f-10e9492ab786@columbus.rr.com> <20170610052351.000ca108.freebsd@edvax.de> <df541c25-2a05-f3b9-9da6-138c55d7e73f@columbus.rr.com> <20170611001151.d3d76bf8.freebsd@edvax.de> <9c41c5df-9874-3e37-8f8c-f58c63419887@columbus.rr.com> <20170611081000.0916e602.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 June 2017 at 02:10, Polytropon <freebsd@edvax.de> wrote:
>
> That is a precise answer, thank you. It illustrates very well
> the difference between the security concepts implemented in
> FreeBSD vs. in Linux. The install* targets require root access
> (because that's what they do: they install stuff to the location
> given in DESTDIR, and doing "root only stuff" belongs to that
> task). It seems to be impossible to run the install* targets
> as a non-root user (except you modify the parts that require
> root permissions manually).

In fact you can run the install targets without root, with something like:

make -DNO_ROOT DESTDIR=/some/path \
  installworld installkernel distribution

but the installed files won't be directly usable, because none of the
"root only" tasks will have been performed. The -DNO_ROOT installation
will create a METALOG file in the destdir which can be used with
makefs to create a filesystem image.



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