Enable the ability to force a password change on boot
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | extrausers: Add ability to force password change on first loginmeta/ meta/ | +28 | 7 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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