Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2007 02:41:09 +0200
From:      Juergen Unger <j.unger@jpru.de>
To:        Vulpes Velox <v.velox@vvelox.net>
Cc:        'FreeBSD Questions' <freebsd-questions@freebsd.org>
Subject:   Re: username and groupname question
Message-ID:  <20070416004109.GA74357@jpru.ffm.jpru.de>
In-Reply-To: <20070415200952.11c899b2@vixen42>
References:  <20070415200952.11c899b2@vixen42>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi !

On Sun, Apr 15, 2007 at 08:09:52PM -0400, Vulpes Velox wrote:
> Just looking at implementing some ACL stuff and just got wondering,
> what is the max length of those?

/usr/include/sys/user.h says 17 for LOGNAME but I think this
includes the extra char for '\0' for security reasons.
16 should be correct for username and groupname I think.
At least is this the maximum user- and groupname lenght
which is displayed by various tools.

bye,
  Juergen




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