]> code.ossystems Code Review - openembedded-core.git/commit
add new extrausers command passwd-expire
authorJoseph Reynolds <joseph-reynolds@charter.net>
Tue, 10 Nov 2020 03:56:42 +0000 (11:56 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Nov 2020 10:08:07 +0000 (10:08 +0000)
commit1bdcfa4b0d378947a6759fb91872a4edc9a42622
treea6d2925eb0262a5a9bd836b75eea9728f97f2b93
parente434627b29a1a01b06473efeb291783a4afdd50f
add new extrausers command passwd-expire

This enhances extrausers with a new passwd-expire command that causes
a local user's password to be expired as if the `passwd --expire`
command was run, so the password needs to be changed on initial login.

Example: EXTRA_USERS_PARAMS += " useradd ... USER; passwd-expire USER;"

Tested: on useradd accounts
When configured with Linux-PAM, console login prompts for and can
successfully change the password.  OpenSSH server works.  Dropbear
SSH server notes the password must be changed but does not offer a
password change dialog and rejects the login request.

Signed-off-by: Joseph Reynolds <joseph-reynolds@charter.net>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/extrausers.bbclass
meta/classes/useradd_base.bbclass