我该如何在Yocto dora bitbake系统中更改root密码? [英] How do i change the root password in the Yocto dora bitbake system?

查看:304
本文介绍了我该如何在Yocto dora bitbake系统中更改root密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆