Re: Sanity limit for length of user/group names?

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Wed, 13 Apr 2022 06:35:59 UTC
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
> 
> 
> 
> 
>