Date: Fri, 16 Dec 2016 06:43:59 +1100 From: Peter Jeremy <peter@rulingia.com> To: Mathieu Arnold <mat@FreeBSD.org> Cc: "Julian H. Stacey" <jhs@berklix.com>, ports@FreeBSD.org Subject: Re: No port should need root for make fetch Message-ID: <20161215194358.GA75755@server.rulingia.com> In-Reply-To: <05247bf0-d31e-6a88-57ab-69687f5f1af1@FreeBSD.org> References: <201612132032.uBDKWaVK017178@fire.js.berklix.net> <20161214051706.GS61036@server.rulingia.com> <05247bf0-d31e-6a88-57ab-69687f5f1af1@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <mat@FreeBSD.org> wrote: >Le 14/12/2016 =E0 06:17, Peter Jeremy a =E9crit : >> On 2016-Dec-13 21:32:36 +0100, "Julian H. Stacey" <jhs@berklix.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161215194358.GA75755>