change root password for clients installation

Holger Schurig hs4233 at mail.mn-solutions.de
Fri Nov 5 13:41:17 CET 2004


On Friday 05 November 2004 11:55, Gerald Houart wrote:
> perhaps a stupid question but i was not able to modify root password
> for clients installation!
>
> when i do so with an existing password (from password or shadow file)
> on another debian linux computer it is not usable after installation
> what kind of encryption is used to generate root password in fai? how
> to generate a password to insert in DEFAULT.var ?
>

I have this script:


scripts/DEFAULT/S10-etc-passwd:
--------------------------------------
#!/bin/sh

$ROOTCMD shadowconfig on
perl -pi -e 's{^root::}{root:$ENV{rootpw}:}' $target/etc/shadow
--------------------------------------


and in classes/<classname>.var I have:
--------------------------------------
rootpw='$1$DW59daXn$EfS4ThGSF44.JGaPybPnD/'
--------------------------------------



I optained the hash by logging in normally, using the normal "passwd" command
and then I copied the md5-hash from /etc/shadow.



More information about the linux-fai mailing list