On 11/30/2016 05:28 PM, ChenQi wrote:
We could make use of EXTRA_USERS_PARAMS here.
More details are in meta/classes/extrausers.bbclass.
I haven't tested it myself, but maybe lines below could work:
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "\
usermod -p 'root' root; \
"
It should be '-P'
We could make use of EXTRA_USERS_PARAMS here.
More details are in meta/classes/extrausers.bbclass.
I haven't tested it myself, but maybe lines below could work:
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "\
usermod -p 'root' root; \
"
This info could also be found in
Hello,
According to the discussions, here are things that we may do,
please feel free to give your comments.
1) Add an image feature like "production", which will conflict with
debug-tweaks, and check for some common security issues ?
2) Add a way like ROOT_PASSWD to let user can set root
Fixed 2 bugs:
- Can't login as root when debug-tweaks/empty-root-password is not in
IMAGE_FEATURES since no passwd.
- When set root passwd and debug-tweaks/empty-root-password is in
IMAGE_FEATURES, passwd is *required* to login.
Filed https://bugzilla.yoctoproject.org/show_bug.cgi?id=10710,