[yocto] Setting root password
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Sep 29 02:04:54 PDT 2015
On Thursday 24 September 2015 08:17:02 Rudolf J Streif wrote:
> On Thursday, September 24, 2015 11:20:37 AM Daniel. 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 (from you first email)
>
> > EXTRA_USERS_PARAMS = "usermod -P <encrypted_password> root;"
>
> then the issue probably is the capital -P. It should be lowercase.
FYI the -P option is a custom option that we have patched into the native
versions of the useradd/usermod commands that we build. It's the only way you
can set a password in plain text rather than having to encrypt it first.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list