On 2020-12-20 10:16, Khem Raj wrote:
On Sat, Dec 19, 2020 at 11:58 AM Sourabh Banerjee
<[email protected]> wrote:
[Edited Message Follows]
The image I generated seems to use MD5 for root password hashing.
I understood this from the /etc/shadow file in the image., the file
has following line:
root:$1$b7X30f8f$au21weqL.9.ExM4N84AtA0:18614:0:99999:7:::
Is there an OE config I can change to change password hashing from MD5
to SHA256?
somewhere you must be setting the password something like this in
local.conf
EXTRA_USERS_PARAMS += "\
useradd admin; \
usermod -p 'XXXXXX' admin; \
"
Now how you generate the password could be done separately via
something like ( for setting password to me 'test' )
python3 -c 'import crypt; print(crypt.crypt("test",
crypt.mksalt(crypt.METHOD_SHA256)))'
Replace XXXXXX with the output of the above cmd
aside from this its perhaps better to use sha512 than sha256
I am using Thud version.
--
Regards,
Sourabh
Thanks Khem! I will try this and get back.
--
Regards,
Sourabh
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146028):
https://lists.openembedded.org/g/openembedded-core/message/146028
Mute This Topic: https://lists.openembedded.org/mt/79070438/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-