Date: Wed, 13 Apr 2022 08:35:59 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: Rick Macklem <rmacklem@uoguelph.ca>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: Sanity limit for length of user/group names? Message-ID: <837488522.1046.1649831759547@localhost> In-Reply-To: <YT2PR01MB97304F4066E62581CF01DC00DDEC9@YT2PR01MB9730.CANPRD01.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_1045_1422177910.1649831759544 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, A google search gives me this page: https://forums.freebsd.org/threads/username-length-16.28189/ . It talks about MAXLOGNAME and limits in utmp. Regards, Ronald Van: Rick Macklem <rmacklem@uoguelph.ca> Datum: 13 april 2022 03:08 Aan: freebsd-current <freebsd-current@freebsd.org> Onderwerp: Sanity limit for length of user/group names? > > > Hi, > > The NFSv4 RFCs do not specify an upper limit for the length > of a user or group (called Owner/Owner_group in NFSv4) string. > > However, PR#260546 notes that a sanity upper limit for their > length is needed. > > Is there any constant in FreeBSD that defines the upper limit for > the length of a user or group name? > (I can find the maximum length of a hostname and I think that can > be used as a safe upper limit for a domain name, as well. The Owner/ > Owner_group names include "@domain" on them.) > > Thanks for any help with this, rick > > > > > ------=_Part_1045_1422177910.1649831759544 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body>Hi,<div><br /></div><div>A google search gives me this page: <a href="https://forums.freebsd.org/threads/username-length-16.28189/">https://forums.freebsd.org/threads/username-length-16.28189/</a> .</div><div>It talks about MAXLOGNAME and limits in utmp. </div><div><br /></div><div>Regards,</div><div>Ronald</div><div><br /><p><small><strong>Van:</strong> Rick Macklem <rmacklem@uoguelph.ca><br /><strong>Datum:</strong> 13 april 2022 03:08<br /><strong>Aan:</strong> freebsd-current <freebsd-current@freebsd.org><br /><strong>Onderwerp:</strong> Sanity limit for length of user/group names?<br /></small></p><blockquote style="margin-left: 5px; border-left: 3px solid #ccc; margin-right: 0px; padding-left: 5px;"><div class="MessageRFC822Viewer do_not_remove" id="P"><!-- P --> <!-- processMimeMessage --><div class="TextPlainViewer do_not_remove" id="P.P"><!-- P.P -->Hi,<br /> <br /> The NFSv4 RFCs do not specify an upper limit for the length<br /> of a user or group (called Owner/Owner_group in NFSv4) string.<br /> <br /> However, PR#260546 notes that a sanity upper limit for their<br /> length is needed.<br /> <br /> Is there any constant in FreeBSD that defines the upper limit for<br /> the length of a user or group name?<br /> (I can find the maximum length of a hostname and I think that can<br /> be used as a safe upper limit for a domain name, as well. The Owner/<br /> Owner_group names include "@domain" on them.)<br /> <br /> Thanks for any help with this, rick<br /> <br /> </div><!-- TextPlainViewer --> <hr /> </div><!-- MessageRFC822Viewer --> </blockquote><br /><br /><br /></div></body></html> ------=_Part_1045_1422177910.1649831759544--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?837488522.1046.1649831759547>