* Set root password from a recipe
@ 2018-05-16 8:46 Mauro Ziliani
2018-05-16 9:00 ` Mauro Ziliani
2018-05-16 9:19 ` ChenQi
0 siblings, 2 replies; 3+ messages in thread
From: Mauro Ziliani @ 2018-05-16 8:46 UTC (permalink / raw)
To: yocto
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Set root password from a recipe
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
1 sibling, 0 replies; 3+ messages in thread
From: Mauro Ziliani @ 2018-05-16 9:00 UTC (permalink / raw)
To: yocto
Sorry
inherit extrausers
Il 16/05/2018 10:46, Mauro Ziliani ha scritto:
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Set root password from a recipe
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
1 sibling, 0 replies; 3+ messages in thread
From: ChenQi @ 2018-05-16 9:19 UTC (permalink / raw)
To: Mauro Ziliani, yocto
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-16 9:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.