From owner-freebsd-questions@freebsd.org Sun Jun 18 22:32:44 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4F80D8FAEC for ; Sun, 18 Jun 2017 22:32:44 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 653867EEA2 for ; Sun, 18 Jun 2017 22:32:44 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x236.google.com with SMTP id m47so48358553iti.0 for ; Sun, 18 Jun 2017 15:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=i0KeEuKTJ7XSNqbLPTUlJouxMdiJX9tO/4gy1JVWXaU=; b=pbJpALI6LAgZmQ/aWbi/2NGJfl6XVfI2kMHtDW3JRGYGmIz7KNaxGqDzfNILnEa21p PgQjJjEQlfAifEBMdKvbFTgGegZbZ/gywgjL8aUE00hjaNUITTitLMrSDGHb6oM+AfVg gJL5UwsZlXG4Dy/KTq+YK2rtK0AU7eX6YmCqTPbtNFsZmDkVKtnPgtW4zATZsIw+LYNy BrfQvRuJsJmVCBNkPpRNKCvc6FPBuuqe1IAwhal10pqETlTs06KTe0D/hsteVixIFxmv 6KXjnO+laUl+i0xIyLVYbP/1w5EKiKU7WWxJV+Su0pHgPghcJWJaTi85C8urxeA+yQai qMSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=i0KeEuKTJ7XSNqbLPTUlJouxMdiJX9tO/4gy1JVWXaU=; b=FPyY5LErvcTKCcJ3qNNsgj+CdWrxNKhR4e8Ws039TH+tHtS0n9R9AA+qUZa13fi5cX 6Iowcl6JPm/6EWI+qp75eRwniyBjqJd9agH9hWwFjBmrwYJm6shmi1wLwk1Xf32/e98A ZOHA1e9CBYdEblGOdiIItxyKxo3FhQ2WpmHgJfKwY4MX/hSTH4ENmmHMMOAXoXaeIU9F YOh+VS3DHMB022BJMdTg05KG7Jj6dJo7FbQhmnUqBZ9q6CDk2ttJD5fPWjauAxC4kNI2 XNctEa7PJvKY4Ih8+fCqXgxAOsZ1FL0tqSb6pNmoj+DTOuXU72ZHjEiL36n8grlFnAHc us8w== X-Gm-Message-State: AKS2vOxtsVmHp5ucs6On/Cw/DtKwXR3vNHMhL1dOiIiAEoDm09e0O/GU VilfrXFmljbH8NF3ZAA5qdktXTVyiA== X-Received: by 10.36.161.67 with SMTP id n3mr19770970iti.7.1497825163820; Sun, 18 Jun 2017 15:32:43 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.10.86 with HTTP; Sun, 18 Jun 2017 15:32:23 -0700 (PDT) In-Reply-To: <20170611081000.0916e602.freebsd@edvax.de> References: <44y3t19e5i.fsf@lowell-desk.lan> <872fe20f-fece-9980-2c8f-10e9492ab786@columbus.rr.com> <20170610052351.000ca108.freebsd@edvax.de> <20170611001151.d3d76bf8.freebsd@edvax.de> <9c41c5df-9874-3e37-8f8c-f58c63419887@columbus.rr.com> <20170611081000.0916e602.freebsd@edvax.de> From: Ed Maste Date: Sun, 18 Jun 2017 18:32:23 -0400 X-Google-Sender-Auth: 5tC8Np5XnDdVM-zGbOe6PTf1wOo Message-ID: Subject: Re: Building base source To: Polytropon Cc: Baho Utot , FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 22:32:44 -0000 On 11 June 2017 at 02:10, Polytropon 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.