Hi Jakob,

On Mon, Feb 27, 2017 at 03:34:59PM +0100, Jakob Hasse wrote:
> Hello,
> 
> I tried to add a user to my image, like described in the FAQ here:
> https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password
> 
> However, if I added that two lines to my recipe, it doesn't have any effect
> (still only root user available).
> What else do I need to change to make this work? And is the recipe the right
> place for this line (FAQ doesn't mention this)?

The "extrausers" class is generally used for image level user/group 
configuration.
"useradd" class is recommended for recipe level user/group configurations.

So, please use it in your local.conf as below:

eg:
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "\
useradd -p '' tester1; \
"

Hope this helps.

> Kind Regards,
> Jakob
> 
> -- 
> Jakob Hasse
> Software Developement
> 
> E: [email protected]
> T: +41 44 552 02 66
> 
> Smart Home Technology GmbH
> www.smart-home-technology.ch

Best Regards,
Maxin
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to