All of lore.kernel.org
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: Mauro Ziliani <mauro@faresoftware.it>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Set root password from a recipe
Date: Wed, 16 May 2018 17:19:20 +0800	[thread overview]
Message-ID: <73c581a0-101f-b58a-bec5-fb34400582e2@windriver.com> (raw)
In-Reply-To: <706c8cbc-b5ac-e456-5a30-199aeb596766@faresoftware.it>

Such setting should be in global conf files like <distro>.conf or 
local.conf.
Setting root password from a recipe does not have effect.

If you really want to set a root password from recipe, maybe you need to 
take a look at base-passwd recipe.

'-P' is an option added to support clear text password. The patch only 
applies to shadow-native.
So it does not affect the shadow on target.

Best Regards,
Chen Qi

On 05/16/2018 04:46 PM, Mauro Ziliani wrote:
> Hi all.
>
> I need to set a well know password for root user.
>
> I follow the istruction to do this with
>
>
> inherit extra_users
>
> EXTRA_USERS_PARAMS = " \
>
>     usermod -P secret root; \
>
> "
>
>
> But it does not work.
>
> I think the problem i for usermod
>
> I sse the man page and the -p parameter needs the output of crypt(3) 
> function.
>
> While -P parameter (p-uppercase) is not a valid parameter for usermod
>
>
> Any idea?
>
>
> Thanks
>
>    Mauro
>



      parent reply	other threads:[~2018-05-16  9:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-16  8:46 Set root password from a recipe Mauro Ziliani
2018-05-16  9:00 ` Mauro Ziliani
2018-05-16  9:19 ` ChenQi [this message]

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=73c581a0-101f-b58a-bec5-fb34400582e2@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=mauro@faresoftware.it \
    --cc=yocto@yoctoproject.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 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.