[meta-freescale] default root password or password request

Matthias.Heise at atlas-elektronik.com Matthias.Heise at atlas-elektronik.com
Fri Nov 14 02:01:21 PST 2014

I'm still fighting with adding a password. The only thing I could achieve so far is adding a user by adding this to the local.conf in the build directory :

INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "useradd -p ' ' tester;"

I then can login with "tester". As soon as I add a password, I'm prompted for it at login but when entering it the login fails. (no password also fails) this is independent from the "debug-tweaks". 
I also tried (would be preferred) to add this option to the image recipe, with 

inherit extrausers   
EXTRA_USERS_PARAMS = "useradd -p ' ' tester;"

But that doesn't work at all.
What am I doing wrong/am I missing ?
-----Ursprüngliche Nachricht-----
Von: otavio.salvador at gmail.com [mailto:otavio.salvador at gmail.com] Im Auftrag von Otavio Salvador
Gesendet: Donnerstag, 13. November 2014 15:26
An: Lucas Nunes
Cc: Heise, Matthias; meta-freescale at yoctoproject.org
Betreff: Re: [meta-freescale] default root password or password request

On Thu, Nov 13, 2014 at 12:04 PM, Lucas Nunes <ldnunes at ossystems.com.br> wrote:
> 2014-11-13 11:52 GMT-02:00 <Matthias.Heise at atlas-elektronik.com>:
>> Thank you very much, will try, just another question to that : how is 
>> that „default” user “root” added in the first place ?
> If I'm reading the source correctly, this is done by poky, on the 
> following
> file:
> sources/poky/meta/classes/useradd.bbclass
>> can’t I also tweak on that site ?
> While you can do that for testing, it is really not recommended. You 
> should only change the source if you intend to create a patch to send 
> back to the community.
Just for the sake of completeness, you also can disable root password (for development purposes) using the 'debug-tweaks' in EXTRA_IMAGE_FEATURES[1].

1. http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#var-EXTRA_IMAGE_FEATURES

Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

More information about the meta-freescale mailing list