[yocto] Setting root password
Andy Pont
andy.pont at sdcsystems.com
Thu Sep 24 09:21:41 PDT 2015
Rudi wrote
> > Still, I think is a good ideia to understand what is going wrong with
> > EXTRA_USERS_PARAMS, other users may having the same problem.
>
> EXTRA_USERS_PARAMS works for me all the time. The stanza is what I am
using
> in my image recipes:
>
> EXTRA_USERS_PARAMS = "\
> groupadd developers; \
> useradd -p `openssl passwd ${DEV_PASSWORD}` developer; \
> useradd -g developers developer; \
> usermod -p `openssl passwd ${ROOT_PASSWORD}` root; \
>"
>
> If this is an accurate copy of what you are using
>
> EXTRA_USERS_PARAMS = "usermod -P <encrypted_password> root;"
>
> then the issue probably is the capital -P. It should be lowercase.
Good spot. I copied and pasted it from an article I found on the web!
Having changed it to lower case it now works as expected!
Thanks,
Andy.
More information about the yocto
mailing list