Search code examples
rootyoctoopenembedded

Yocto Jethro: Is root login completely disabled when I remove "debug-tweaks"


I removed "debug-tweaks" from EXTRA_IMAGE_FEATURES in my local.conf. Does this completely disable root logins? Or just that root password has defaulted to some other password?

I do not see anything set to EXTRA_IMAGE_FEATURES

$ bitbake -e | grep "^EXTRA_IMAGE_FEATURES"
EXTRA_IMAGE_FEATURES=""

Solution

  • http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-features-image

    If you don't enable debug-tweaks (or more specifically, empty-root-password) then it is up to you to set the root password. If you didn't set it then the root user has no password, so they can't login.

    To set users and passwords you can use the extrausers class:

    http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-classes-extrausers