grml-debootstrap
grml-debootstrap copied to clipboard
chpasswd using different format in shadow than passwd
Quoting from IRC:
The root password for grml-debootstrap is added with $1$ to /etc/shadow (MD5?), and not $6$ (SHA256?) what
passwddoes.
Needs investigation whether we can do something about it.
A walk around ...
CHPASSWD_OPTION=
if chpasswd --help 2>&1 | grep -q -- '-m,' ; then
CHPASSWD_OPTION='--md5'
fi
if chpasswd --help 2>&1 | grep -q -- '-e,' ; then
CHPASSWD_OPTION='--encrypted'
fi