Fixed version declaring pass in clear text:


ROOTPW='r00tPA55'



$ROOTCMD /bin/bash -c "echo -e \"$pass\\n$pass\" | passwd root"

________________________________
From: Matteo Guglielmi
Sent: Saturday, July 4, 2020 5:35:21 PM
To: fully automatic installation for Linux
Subject: Re: FAI (root password change on errors)


I found the cause of it buried in one of my scripts.


Here it is:


$ROOTCMD echo -e "$ROOTPW\n$ROOTPW" | passwd root


which actually changes the root pass of FAI itself

and not the root pass of the client being installed

in /target



Changed to this now:


$ROOTCMD usermod -p "$ROOTPW" root




________________________________
From: linux-fai <[email protected]> on behalf of Thomas Lange 
<[email protected]>
Sent: Wednesday, July 1, 2020 11:27:46 AM
To: fully automatic installation for Linux
Subject: Re: FAI (root password change on errors)

>>>>> On Thu, 18 Jun 2020 18:34:40 +0000, Matteo Guglielmi 
>>>>> <[email protected]> said:

    > what happens is reported in the "second session" of
I think this is a log log from changing the root pw inside the chroot
of /target. You should verify, if really the hash in /etc/shadow is
changed.

Using alt-F2 or alt-F3 you can always get a shell without login in.
--
regards Thomas

Antwort per Email an