No port should need root for make fetch

Peter Jeremy peter at
Thu Dec 15 19:44:37 UTC 2016

On 2016-Dec-15 09:43:51 +0100, Mathieu Arnold <mat at> wrote:
>Le 14/12/2016 à 06:17, Peter Jeremy a écrit :
>> On 2016-Dec-13 21:32:36 +0100, "Julian H. Stacey" <jhs at> wrote:
>>> IMO No port should need root for 
>>> 	cd /usr/ports; make -i fetch
>> In a stock FreeBSD install, all ports require root to both fetch and build.
>> You have customised your system in a non-standard way so you are getting
>> non-standard behaviour which doesn't match you expectations.
>That is plain not true.

By default, /usr/ports/distfiles is mode 0775 root:wheel and the only member
of wheel is root.  Fetching a port requires writing to /usr/ports/distfiles,
hence root is the only user that can fetch distfiles.

Likewise, by default, ports are built it /usr/ports/CATEGORY/NAME/work.
/usr/ports/CATEGORY/NAME is only writable by root so only root can create
the work directory in which to build ports.

If you change the above defaults (which I suspect most people do) then you
are correct that only a handful of ports need root to fetch or build (and
I think that is still too many) - but I explicitly specified "stock install".

Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <>

More information about the freebsd-ports mailing list