Hello Peter,

thanks for the solution!

Many greetings,
Matthias

-----Ursprüngliche Nachricht-----
Von: Peter Bergin <pe...@berginkonsult.se> 
Gesendet: Dienstag, 31. August 2021 09:45
An: Matthias Klein <matthias.kl...@optimeas.de>; yocto@lists.yoctoproject.org
Betreff: Re: [yocto] extrausers-bbclass: plaintext password (since shadow 
update to 4.9)

Hi Matthias,

On 2021-08-31 09:03, Matthias Klein wrote:
> But I have not found a way to set the password with EXTRA_USERS_PARAMS.
> Do you know a working variant?

Is it a requirement that you need to regenerate the hash on every build? 
If not one solution can be:

     inherit extrausers

     #
     # HASH generated with this command:
     # python3 -c "import crypt; print(crypt.crypt('toor', 
crypt.METHOD_SHA512))"
     #
     HASH =
"\\\$6\\\$8Z5vMcqCIB19PgY8\\\$Sv4kAfsH1k.SANHL5JVb6hdqmQWHOeH0Rjrjyii7fGAK20Gclj/.qiBvUPnAfh.WSsr1.XV0pUNom2L9oYYDV/"

     EXTRA_USERS_PARAMS = " \
        usermod -p ${HASH} root; \
     "

Best regards,
/Peter

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54619): https://lists.yoctoproject.org/g/yocto/message/54619
Mute This Topic: https://lists.yoctoproject.org/mt/85249985/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to