Set pre-encrypted passwords for users

Mathias Friman mathias.friman at knorca.se
Wed Mar 31 09:26:01 CEST 2010


Hi!

I use some old scripts to create users on a FAI-install system. In them
I run the 30-demo script from simple examples:

$ROOTCMD adduser --disabled-login --gecos "fai demo user" demo
echo "demo:$ROOTPW" | $ROOTCMD chpasswd --encrypted

Since Ubuntu 9.10 the chpasswd command does not accept the --encrypted
switch anymore, so it is impossible to supply a pre-encrypted password that
way.

Is there any other way to do this and still not write the password in clear text?

Kindest regards,
Mathias


More information about the linux-fai mailing list