All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Ziliani <mauro@faresoftware.it>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Set root password from a recipe
Date: Wed, 16 May 2018 10:46:20 +0200	[thread overview]
Message-ID: <706c8cbc-b5ac-e456-5a30-199aeb596766@faresoftware.it> (raw)

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



             reply	other threads:[~2018-05-16  8:46 UTC|newest]

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

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=706c8cbc-b5ac-e456-5a30-199aeb596766@faresoftware.it \
    --to=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.