Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2022 01:04:05 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Sanity limit for length of user/group names?
Message-ID:  <YT2PR01MB97304F4066E62581CF01DC00DDEC9@YT2PR01MB9730.CANPRD01.PROD.OUTLOOK.COM>

next in thread | raw e-mail | index | archive | help
Hi,=0A=
=0A=
The NFSv4 RFCs do not specify an upper limit for the length=0A=
of a user or group (called Owner/Owner_group in NFSv4) string.=0A=
=0A=
However, PR#260546 notes that a sanity upper limit for their=0A=
length is needed.=0A=
=0A=
Is there any constant in FreeBSD that defines the upper limit for=0A=
the length of a user or group name?=0A=
(I can find the maximum length of a hostname and I think that can=0A=
 be used as a safe upper limit for a domain name, as well. The Owner/=0A=
 Owner_group names include "@domain" on them.)=0A=
=0A=
Thanks for any help with this, rick=0A=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YT2PR01MB97304F4066E62581CF01DC00DDEC9>