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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to