All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Enable the ability to force a password change on boot
@ 2021-03-08 18:08 Mark Hatle
  2021-03-08 18:08 ` [PATCH 1/1] extrausers: Add ability to force password change on first login Mark Hatle
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Hatle @ 2021-03-08 18:08 UTC (permalink / raw)
  To: openembedded-core

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(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-03 21:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 18:08 [PATCH 0/1] Enable the ability to force a password change on boot Mark Hatle
2021-03-08 18:08 ` [PATCH 1/1] extrausers: Add ability to force password change on first login Mark Hatle
2021-03-08 18:50   ` [OE-core] " Khem Raj
2021-03-08 19:11     ` Mark Hatle
2021-03-09  2:02   ` Chen Qi
2021-03-09 18:46     ` Mark Hatle
2022-05-24 20:37       ` Livius
2022-06-03 21:42         ` Livius
2021-03-09  9:15   ` [OE-core] " Quentin Schulz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.