Why standard user mailnull (26:26) is missing from /usr/ports/UIDs?

Matthew Seaman matthew at FreeBSD.org
Thu Dec 29 15:32:07 UTC 2016


On 29/12/2016 13:21, Alexey Dokuchaev wrote:
> Hence there're two questions:
> 
> 1) $subj
> 2) Is it OK to add `mailnull' to /usr/ports/UIDs similar to `smmsp'?  Or,
> 3) every port should not abuse default system users and create their own?

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=smmsp is mail/sendmail, but several other ports use the smmsp
user.  Contrarywise none of the dns/bindNNN ports have USERS=bind, 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




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20161229/9651b3d6/attachment.sig>


More information about the freebsd-ports mailing list