我该如何在Yocto dora bitbake系统中更改root密码? [英] How do i change the root password in the Yocto dora bitbake system?
问题描述
我正在Yocto的Dora分支(Poky 1.2)上工作,仅需要在此分支上工作.
I am working on the Dora branch (Poky 1.2) of Yocto and need to work on this branch only.
我需要将空白的root密码更改为其他值,以防止在开发过程中映像中出现安全漏洞.
I need to change the blank root password to some other value in order to prevent a security hole in the image during development.
如何设置root密码?
How do I set the root password?
我想使用local.conf文件.
I would like to use the local.conf file.
此处描述的方法不起作用: 如何在Yocto/Poky图片上设置root密码?
The method described here does not work: How to set root password on Yocto / Poky image?
推荐答案
在您的build/conf/local.conf
中添加以下行,或转到您的meta-dir
并添加以下行以获取git patch.
Add the below line in your build/conf/local.conf
or go to your meta-dir
and add the below line for taking git patch.
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "useradd admin; \
usermod -p $(openssl passwd abc123) admin; \
usermod -p $(openssl passwd knockknock) root; \
"
这篇关于我该如何在Yocto dora bitbake系统中更改root密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!