Skip to contentSkip to conversation

How to set root password

DISCUSSION Patrick 3 participants 6 messages Jun 12, 2012 – Jun 14, 2012

lore
Share & tools
lore
author
#1 lore raw
Quoted 7 lines · Patrick

Dear all,

How could I set the root password on my own images ? I have found this post on the FAQ but no answer...
https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password

Quoted 7 lines

Any help is welcome !

Patrick
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

No body know how to change root password ? I am quite sure poky have a feature for that, no ?

Patrick

#2 lore raw
Quoted 16 lines · Patrick
Quoted 7 lines · Patrick

Dear all,

How could I set the root password on my own images ? I have found this post on the FAQ but no answer...
https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password

Quoted 7 lines

Any help is welcome !

Patrick
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Quoted 10 lines

No body know how to change root password ? I am quite sure poky have a feature for that, no ?

Patrick
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Hello,

Set // change the root password... when exactly? When building the images or when using it live / install?

Signature · 2 lines
Mihai Lindner
Yocto Project @ Intel OTC
#3 lore raw
In reply to Patrick

You can find your answer in these places:

core-image.bbclass - at the end of this file
zap_root_password () - from image.bbclass

@g
*
*

Quoted 15 lines · Patrick

Dear all,

How could I set the root password on my own images ?
I have found this post on the FAQ but no answer...
https://wiki.yoctoproject.org/**wiki/FAQ:How_do_I_set_or_**
change_the_root_password<https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password>

Any help is welcome !

Patrick
______________________________**_________________
poky mailing list
[email protected]
https://lists.yoctoproject.**org/listinfo/poky<https://lists.yoctoproject.org/listinfo/poky>

author
#4 lore raw
Quoted 5 lines · Andrei Gherzan

You can find your answer in these places:

core-image.bbclass - at the end of this file
zap_root_password () - from image.bbclass

I could see that if debug-tweaks is in IMAGE_FEATURES the root password is set to *, but we would like to set a real password.

Do we have to generate a password hash and put it in /etc/passwd ?

Patrick

#5 lore raw

Indeed. You can sed
root::0:0:root:/home/root:/bin/sh
from base-passwd.

This was how i did it. Don't know of there another solution on this.

@g

Quoted 15 lines · Patrick
Quoted 6 lines · Andrei Gherzan

You can find your answer in these places:

core-image.bbclass - at the end of this file
zap_root_password () - from image.bbclass

I could see that if debug-tweaks is in IMAGE_FEATURES the root password is set to *, but we would like to set a real password.

Do we have to generate a password hash and put it in /etc/passwd ?

Patrick