FreeBSD maximum password length

Brandon Gooch jamesbrandongooch at
Tue Jun 18 02:19:50 UTC 2013

On Mon, Jun 17, 2013 at 6:35 AM, takCoder <tak.official at> wrote:
> Thank you, Mark, for your helpful answer :)
> yes, i am aware of the max username length of 16characters.. I just wanted
> to become sure about password max length, cause i need to moderate it in my
> self-built user interface..
> Thank you again :)
> On Mon, Jun 17, 2013 at 3:44 PM, Mark Felder <feld at> wrote:
>> There isn't a max password length as far as I'm aware, but there is a max
>> username length that drive me insane sometimes. I should really file a PR
>> about that...

Perhaps your PR is unnecessary:

$ svn log -v -r243023 /usr/src/sys/sys/param.h
r243023 | bapt | 2012-11-14 04:58:12 -0600 (Wed, 14 Nov 2012) | 8 lines
Changed paths:
   M /head/sys/sys/param.h

Allow usernames up to 32 chars

PR:             kern/161091 [1],
                misc/133926 [2]
Submitted by:   Stephane Lapie <darksoul at> [1],
                Chris Dillon <cdillon at> [2]
Reviewed by:    cognet, kib


The above would have saved me a few local diffs as well a few years ago...


More information about the freebsd-questions mailing list