From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Joseph Reynolds <jrey@linux.ibm.com>,
OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] add new extrausers command passwd-expire
Date: Tue, 27 Oct 2020 19:41:29 +0000 [thread overview]
Message-ID: <f154c498c88dfc436d4b9547b889e3aa8436fc41.camel@linuxfoundation.org> (raw)
In-Reply-To: <978bccd7-a2f4-9aa0-9c77-9c10c81e068f@linux.ibm.com>
Hi Joseph,
On Mon, 2020-10-26 at 15:41 -0500, Joseph Reynolds wrote:
> 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 ... sofia; passwd-expire
> sofia;"
>
> 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>
> ---
> meta/classes/extrausers.bbclass | 3 +++
> meta/classes/useradd_base.bbclass | 18 ++++++++++++++++++
> 2 files changed, 21 insertions(+)
>
> diff --git a/meta/classes/extrausers.bbclass
> b/meta/classes/extrausers.bbclass
> index 32569e9..90811bf 100644
> --- a/meta/classes/extrausers.bbclass
> +++ b/meta/classes/extrausers.bbclass
> @@ -46,6 +46,9 @@ set_user_group () {
> usermod)
> perform_usermod "${IMAGE_ROOTFS}" "-R
> ${IMAGE_ROOTFS}
> $opts"
Unfortunately this patch is coming through line wrapped which makes it
hard to apply. Can you resend it without the line wrapping, or point at
a git tree with the patch in please?
I do remember the patch from the last time around and I think this was
the issue last time as well, I couldn't get it to apply. It does seem
like a reasonable addition and it would be good to work with openBMC on
common issues like this!
Cheers,
Richard
next prev parent reply other threads:[~2020-10-27 19:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-26 20:41 [PATCH] add new extrausers command passwd-expire Joseph Reynolds
2020-10-27 19:41 ` Richard Purdie [this message]
2020-10-27 23:19 ` [OE-core] [PATCH] add new extrausers command passwd-expire - moved to PR 63 Joseph Reynolds
2020-10-27 23:40 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f154c498c88dfc436d4b9547b889e3aa8436fc41.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=jrey@linux.ibm.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox