Add new user, set password and change root password in Yocto

Created a new image recipe like below and named it as, recipes-images/images/

inherit extrausers
SUMMARY = "A small image just capable of allowing a device to boot."




inherit core-image


        useradd -P password124 lynxbee; \
        usermod -P password124 root; \"

Compile the image as,

$ bitbake lynxbee-core-image-minimal

and run as,

$ runqemu qemuarm

On, login menu you should be able to use the user & passwords as defined above.

Reference : Yocto manual

Hive OS Rig Password Security x
Hive OS Rig Password Security

Leave a Comment

Sign up to our newsletter!

ADB Commands Android Android Applications Android Build system Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development, Debugging and Performance Tools Development and Build Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia NDK / Middleware / HAL Operating System Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web Design and Development Website Hosting Wordpress Yocto Embedded Linux