[yocto] Set root password from a recipe

Mauro Ziliani mauro at faresoftware.it
Wed May 16 02:00:23 PDT 2018


Sorry

inherit extrausers


Il 16/05/2018 10:46, Mauro Ziliani ha scritto:
> Hi all.
>
> I need to set a well know password for root user.
>
> I follow the istruction to do this with
>
>
> inherit extra_users
>
> EXTRA_USERS_PARAMS = " \
>
>     usermod -P secret root; \
>
> "
>
>
> But it does not work.
>
> I think the problem i for usermod
>
> I sse the man page and the -p parameter needs the output of crypt(3) 
> function.
>
> While -P parameter (p-uppercase) is not a valid parameter for usermod
>
>
> Any idea?
>
>
> Thanks
>
>    Mauro
>



More information about the yocto mailing list