username and groupname question

Juergen Unger j.unger at jpru.de
Mon Apr 16 01:02:22 UTC 2007


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



More information about the freebsd-questions mailing list