如何在Yocto / Poky图像上设置root密码? [英] How to set root password on Yocto / Poky image?
本文介绍了如何在Yocto / Poky图像上设置root密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Yocto / Poky版本Daisy 1.6.3。构建图像。
在哪里设置根密码的正确方法或配置文件是什么?默认密码为空,我找不到指定该密码的地方。
I am building an image with Yocto/Poky release Daisy 1.6.3.
What is the correct way or config file where to set the root password? The default password is empty and I can't find a place where to specify it.
推荐答案
这是您要做的
inherit extrausers
EXTRA_USERS_PARAMS = "usermod -P p@ssw0rd root;"
其中p @ ssw0rd是您希望root用户拥有的密码。
where p@ssw0rd is the password you want root user to have.
此链接可能会对您有所帮助。
This link may help you.
调试调整的目标是将root用户的密码设置为空,则必须将其从EXTRA_IMAGE_FEATURES中删除。
As "debug-tweaks"'s goal is to set root's password empty, you must remove it from your EXTRA_IMAGE_FEATURES.
这篇关于如何在Yocto / Poky图像上设置root密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文