Date: Tue, 6 Apr 1999 18:56:39 -0300 (EST) From: Aldrin L <aldrin@americasnet.com> To: "Paul D. Schmidt" <pds@uberhacker.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/passwd limits Message-ID: <Pine.BSF.4.05.9904061850150.284-100000@athome.logicStudios.org> In-Reply-To: <Pine.BSF.4.10.9904061605460.22560-100000@uberhacker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 6 Apr 1999, Paul D. Schmidt wrote: > How do I find out the max length of the password, full name, etc fields on > a FreeBSD system? I think there are none for gecos (full name) and userid. A reading on /usr/include/pwd.h reveals nothing about it. Hm... lemme grab a posix book. Yeah, none. I think it happens because getpwnam(3) is mostly libc dependent. Passwords should have a limit of 32 chars, as far as i know. I can't remember where i read about it. Uh, i remember: MD5 hashes are 128 bits (16 bytes) long. An armored one would take 256 bits (32 bytes) of string length. Here's your magic number. The shell and $HOME field should be dependent on the size of FILENAME_MAX, defined under stdio.h. This means, 1024 bytes. i hope that helps. done, Aldrin Leal <aldrin@americasnet.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9904061850150.284-100000>