From: ChenQi <Qi.Chen@windriver.com>
To: <yocto@yoctoproject.org>
Subject: Re: add a user via recipe
Date: Mon, 1 Dec 2014 17:43:26 +0800 [thread overview]
Message-ID: <547C383E.6030600@windriver.com> (raw)
In-Reply-To: <4009F04F5925CD4C95FBD9BE756381FE02848F2A6B@MSSRVS5.atlas.de>
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
On 12/01/2014 04:46 PM, Matthias.Heise@atlas-elektronik.com wrote:
>
> Hi there,
>
> I’m still trying to add a user via recipe. The method with
>
> inherit extrausers
>
> EXTRA_USER_PARAMS = "useradd -p
> '\$6\$53uYm/0Fnll\$Nc0RbHSvqRrd63Tw98TO3V1n25ORK9oR4QHqRIriXzLy0il/7.LIacX7mz7RJ1tdPIWiCJLNyQa7dKBNURqEg1'
> fstuser;"
>
EXTRA_USERS_PARAMS instead of EXTRA_USER_PARAMS
Also, clear password is supported. E.g.
EXTRA_USERS_PARAMS = "useradd -P 'hello' tester;"
> Does not work (no errors just no user in image), as well as this :
>
> ROOTFS_POSTPROCESS_COMMAND += "add_a_user;"
>
> add_a_user(){
>
> useradd -p
> '\$6\$53uYm/0Fnll\$Nc0RbHSvqRrd63Tw98TO3V1n25ORK9oR4QHqRIriXzLy0il/7.LIacX7mz7RJ1tdPIWiCJLNyQa7dKBNURqEg1'
> fstuser;
>
> }
>
> Which results in an error during bitbake :
>
> useradd: /etc/passwd.23966: Permission denied
>
> useradd cannot lock /etc/passwd; try again later
>
You need to pass '--root xxx' option to it.
//Chen Qi
> any ideas to that ?
>
> thanks,
>
> regards
>
> Mat
>
>
>
[-- Attachment #2: Type: text/html, Size: 5795 bytes --]
next prev parent reply other threads:[~2014-12-01 9:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-01 8:46 add a user via recipe Matthias.Heise
2014-12-01 9:43 ` ChenQi [this message]
2014-12-01 12:19 ` Matthias.Heise
2014-12-01 12:41 ` Matthias.Heise
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=547C383E.6030600@windriver.com \
--to=qi.chen@windriver.com \
--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.