From owner-freebsd-ports@freebsd.org Thu Dec 29 15:32:07 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 0F5A4C9644F for ; Thu, 29 Dec 2016 15:32:07 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9431E17D1 for ; Thu, 29 Dec 2016 15:32:06 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:1c1d:86a1:a200:b700]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 1291890B3 for ; Thu, 29 Dec 2016 15:31:57 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/1291890B3; dkim=none; dkim-atps=neutral Subject: Re: Why standard user mailnull (26:26) is missing from /usr/ports/UIDs? To: freebsd-ports@freebsd.org References: <20161229132135.GA90049@FreeBSD.org> From: Matthew Seaman Message-ID: <7aebe839-44c5-3e6e-08ca-c64f9c358f92@FreeBSD.org> Date: Thu, 29 Dec 2016 15:31:45 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161229132135.GA90049@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ipeCS6edPXNdeAuJCxoH5GG2R9rfRQsTQ" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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, 29 Dec 2016 15:32:07 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ipeCS6edPXNdeAuJCxoH5GG2R9rfRQsTQ Content-Type: multipart/mixed; boundary="RFSwH7iExGhqMPtAHseIgn49uAEWWOhJO"; protected-headers="v1" From: Matthew Seaman To: freebsd-ports@freebsd.org Message-ID: <7aebe839-44c5-3e6e-08ca-c64f9c358f92@FreeBSD.org> Subject: Re: Why standard user mailnull (26:26) is missing from /usr/ports/UIDs? References: <20161229132135.GA90049@FreeBSD.org> In-Reply-To: <20161229132135.GA90049@FreeBSD.org> --RFSwH7iExGhqMPtAHseIgn49uAEWWOhJO Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 29/12/2016 13:21, Alexey Dokuchaev wrote: > Hence there're two questions: >=20 > 1) $subj > 2) Is it OK to add `mailnull' to /usr/ports/UIDs similar to `smmsp'? O= r, > 3) every port should not abuse default system users and create their ow= n? Given the mailnull user exists as part of the base system (and in DFly too), you don't need to add anything to a generated pkg to create that UID. So you can just set file ownership to mailnull in pkg-plist or run daemons as the mailnull user from your rc script without having to add a USERS or GROUPS line to your port Makefile. However, adding it to your Makefile (and inter-alia to UIDs) should do no harm -- see the setting for USERS_BLACKLIST in bsd.port.mk Existing practise seems pretty inconsistent. The only port that has USERS=3Dsmmsp is mail/sendmail, but several other ports use the smmsp user. Contrarywise none of the dns/bindNNN ports have USERS=3Dbind, but three other ports do: dns/credns, dns/curvedns and dns/maradns none of which have anything to do with bind other than they implement DNS stuff. Cheers, Matthew --RFSwH7iExGhqMPtAHseIgn49uAEWWOhJO-- --ipeCS6edPXNdeAuJCxoH5GG2R9rfRQsTQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJYZSxnXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATqIwQAK6umKcKOIBv+wh29yNSrpvc LUnnumTltFqK/WIagYzETghdaNfOk6uYqWmlz3NNFjBEPkwbCAOsxnVI/PvBi7Xu fX9hg5HyEFulNFMJcwbtw5YEcMXxGxfGit1VMe6eG4ENqAx0a6aQDm4LG2zHUh3p AGWB7tMVy836uIEsGJOJnxUoScSfrPFdimbZKiYk/Tj4NMXCKFi2i84BVmY0carx AUWEAbzN2Vo4rihUN62LXhUdrGSH6S722chQfQ5jiNPutcz4dpNBEZpcSLcLCLe8 k4tLHtOiKcJpKQ0vnbsnfV47AuhHWfSwuRypFJWZPbx1E0bWmuoX5V53HSCPxY4Q wJH5g5xJoehnjCIVRl+X3zVHbQ+EkHwch2vwBGfBpm1VQjJddUZiiqpOJJnwd5Qo juS2aUBrbGN9eErGwEQOjPmyjHPuFheo9kYQBb9D5HCl7jeqKHA4rqWUZLAJJtgr tClEyWe6zgPF7J5Wo65tyERO922JvUaEy6CJfAKqFlazdVbkAVqEY8Oc+HC+HuFl rTV6B0ZLM37q4rrZ+vgHzYj72B9BeVhqziDwkKojNczfP05FeE6P+tMTmHAlqhQv wY9Abijm8S0bZoXj/T3pzqyLTOXrnVvR97EGPj1fIf708jmRQvpzI06KMDBvET11 9WXxoNdBdRx+usRglbuf =+Z6X -----END PGP SIGNATURE----- --ipeCS6edPXNdeAuJCxoH5GG2R9rfRQsTQ--