How to set root password
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
Any help is welcome !
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
No body know how to change root password ? I am quite sure poky have a feature for that, no ?
Patrick
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_passwordQuoted 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
You can find your answer in these places:
core-image.bbclass - at the end of this filezap_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>
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
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.bbclassI could see that if debug-tweaks is in
IMAGE_FEATURESthe 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