Bug#406046: [Pkg-shadow-devel] Bug#406046: Useradd: limits password to eight characters

Nicolas François nicolas.francois at centraliens.net
Tue Jan 9 09:59:42 CET 2007

On Tue, Jan 09, 2007 at 08:14:52AM +0100, tinaweb at bestemselv.com wrote:
> The user(s) was created using:
> useradd -c "Real Name" -g group -m -p encryptedpass username
> Referring to useradd manpage I used crypt() to encrypt the password.

crypt indicates that it uses only the 7 bits of each of the first eight
characters (in the default DES form of crypt).

Also, you should use adduser to create users.

I'm considering adding something like that in the DESCRIPTION section of
the Debian's useradd man page:

    useradd is a low level utility for adding users. On Debian,
    administrators should use adduser(8) instead.

Kind Regards,

More information about the Pkg-shadow-devel mailing list