Skip to content

Enable the ability to force a password change on boot

Mark Hatle openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1extrausers: Add ability to force password change on first loginmeta/classes/extrausers.bbclass meta/conf/documentation.conf+28 -27 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] Enable the ability to force a password change on boot

As noted in the commit message, the shadow(5) indicates that the third parameter of the /etc/shadow file, when set to 0, can be used to force a password change on login. Note, a login program that supports this behavior is required.

It was added to extrausers.bbclass as it has the same dependencies as the other components of extrausers and should often be used in with adding/creating new accounts.

This was verified by adding the following to the conf/local.conf:

INHERIT += "extrausers"

EXTRA_FORCE_PASSWORD_CHANGE_append = " root"

$ bitbake core-image-minimal
$ runqemu

Login as root, and it should prompt for a password change.

This was further verified by setting a default root password, as well as adding a new user to the system. In both cases it worked as expected.

Finally adding an invalid user to the list, and an appropriate error is generated.

Mark Hatle (1):
extrausers: Add ability to force password change on first login

 meta/classes/extrausers.bbclass | 29 +++++++++++++++++++++++++++--
 meta/conf/documentation.conf    |  1 +
 2 files changed, 28 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1