From owner-freebsd-ports@freebsd.org Thu Dec 15 19:44:37 2016 Return-Path: Delivered-To: freebsd-ports@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 9C3A4C82DC7 for ; Thu, 15 Dec 2016 19:44:37 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 817C41721 for ; Thu, 15 Dec 2016 19:44:37 +0000 (UTC) (envelope-from peter@rulingia.com) Received: by mailman.ysv.freebsd.org (Postfix) id 80D79C82DC6; Thu, 15 Dec 2016 19:44:37 +0000 (UTC) Delivered-To: ports@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 80789C82DC5 for ; Thu, 15 Dec 2016 19:44:37 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 14FC41720; Thu, 15 Dec 2016 19:44:36 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp59-167-167-3.static.internode.on.net [59.167.167.3]) by vps.rulingia.com (8.15.2/8.15.2) with ESMTPS id uBFJi7bc097713 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Dec 2016 06:44:13 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id uBFJi0en076099 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 16 Dec 2016 06:44:01 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id uBFJhxEe076086; Fri, 16 Dec 2016 06:43:59 +1100 (AEDT) (envelope-from peter) Date: Fri, 16 Dec 2016 06:43:59 +1100 From: Peter Jeremy To: Mathieu Arnold Cc: "Julian H. Stacey" , ports@FreeBSD.org Subject: Re: No port should need root for make fetch Message-ID: <20161215194358.GA75755@server.rulingia.com> References: <201612132032.uBDKWaVK017178@fire.js.berklix.net> <20161214051706.GS61036@server.rulingia.com> <05247bf0-d31e-6a88-57ab-69687f5f1af1@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <05247bf0-d31e-6a88-57ab-69687f5f1af1@FreeBSD.org> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.7.1 (2016-10-04) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 19:44:37 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2016-Dec-15 09:43:51 +0100, Mathieu Arnold wrote: >Le 14/12/2016 =E0 06:17, Peter Jeremy a =E9crit : >> On 2016-Dec-13 21:32:36 +0100, "Julian H. Stacey" wrot= e: >>> IMO No port should need root for=20 >>> cd /usr/ports; make -i fetch >> In a stock FreeBSD install, all ports require root to both fetch and bui= ld. >> 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= ". --=20 Peter Jeremy --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJYUvJ+XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0KX0P/2ui0WAvri6x3aQ1ZORIj2OX uWieuUCstmTWKOy7N2gAGlRiTQkazdd9eOcWhFxG+P+dmstUa+vqOPucbIxUnFZf 3Aw6ee91yWCHSJjMss/dTlB5tcbedPnNbROxBKreKxgu5Kb8gggllyRiDX0g4/i8 +vVfzTFO4P/Iu6CQ5DySvc/KZul67Cy+xuiVtCfsplMRWjCaClNY0NjNNhqKodm3 qlHNSljMowXqxhRzJ2KmobStFFh/kA65FZAkJWw8UKZDHLy1dZVk+AbMtu8B2COU UcvyyJbZrO5UvSrb+fQCXljvD9z9SPFpviU9HrzB6vvQtlyQFVxJJF1dlrt895LV FGDtS1Khb5FFVDX3NsGOTIhA6IwO0SAjJQVPHzeJIcidXb4gux/a7DC686KuU0ck NL54BG18FfvSQUxlnfBvUCiveM7M2DHVfUIFT+s67YPQoG+uxgC1GFGO81NuQvuH xqiFgXMjrWOvTSS8oHMKJ4Elj5J8Jvebxp8+0E6rof3k/PRXppqvwJ+t3KQpGBEx dl9L9v/oQW9oYxs20uXvLPpmwpyN73UWLPloSjr7VFm+sFA5Dud0+PfPD8aw8Siy VSephVIKJQuhzJWtNgdjvk1jN0tY2v2cgy/IV8M6wG+EH3eQPXYXd0hNMknOgLL6 mLdplygAjGdd5qD4t6Ga =WtNp -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--