From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 01:43:52 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4601637B401 for ; Thu, 26 Jun 2003 01:43:52 -0700 (PDT) Received: from sferics.mongueurs.net (sferics.mongueurs.net [81.80.147.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 819C943F85 for ; Thu, 26 Jun 2003 01:43:51 -0700 (PDT) (envelope-from david@landgren.net) Received: from landgren.net (81-80-147-206.bpinet.com [81.80.147.206]) by sferics.mongueurs.net (Postfix) with ESMTP id 140F8A959; Thu, 26 Jun 2003 10:43:50 +0200 (CEST) Message-ID: <3EFAB1A0.2010004@landgren.net> Date: Thu, 26 Jun 2003 10:41:04 +0200 From: David Landgren Organization: A thousand golden eyes are watching User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David.Bear@asu.edu References: <20030625112947.B23424@asu.edu> In-Reply-To: <20030625112947.B23424@asu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: max group name length X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 08:43:52 -0000 David Bear wrote: > was just trying to determine the maximum string length of a group > name. > > found > struct group { > char *gr_name; /* group name */ > > but no size. > > any pointers (with limits)? Hmm, I had a browse through the kernel source for a while but didn't find anything definite. What I do know is that you should endeavour to keep the length no greater than 8. Up to 15 is probably ok as well on modern kernels, and group names longer than 15 is getting a bit silly. Sorry no to have anything more precise. David