Bug#362453: [Pkg-shadow-devel] Bug#362453: passwd: useradd does not put the password into /etc/shadow

Tomasz Kłoczko kloczek at zie.pg.gda.pl
Thu Apr 13 16:23:10 UTC 2006


Dnia 13-04-2006, czw o godzinie 16:30 +0200, Ralf Hildebrandt
napisał(a):
> Package: passwd
> Version: 1:4.0.15-4
> Severity: important
> 
> 
> # userdel testhansel
> # useradd -d /home/vpn -g vpnusers -s /bin/bash -p "$1$YeNsbWdH$6LnOIKo3IjXi6EYDLFa3E1" testhansel
> # grep testhansel /etc/shadow
> testhansel:LnOIKo3IjXi6EYDLFa3E1:13251:0:99999:7:::
> 
> This is only a SUBSTRING of the crypted password specified with -p:
> "$1$YeNsbWdH$6LnOIKo3IjXi6EYDLFa3E1"
> vs.
>              "LnOIKo3IjXi6EYDLFa3E1"
> 
> Naturally, the user cannot log in using the passwort I crypted...
> Where is the rest of my crypted password?

This not shadow bug :)

Please use:

# useradd -d /home/vpn -g vpnusers -s /bin/bash -p '$1$YeNsbWdH
$6LnOIKo3IjXi6EYDLFa3E1' testhansel

You are incorrectly escape used $ characters in -p parameter :)

kloczek





More information about the Pkg-shadow-devel mailing list