[yocto] Set root password with SHA512?

Mark Hatle mark.hatle at windriver.com
Wed Oct 28 07:29:05 PDT 2015


On 10/28/15 3:07 AM, Juha Vuorivirta wrote:
> I'm able to set the root password in /etc/shadow with adding
> ROOTFS_POSTPROCESS_COMMAND to .bb file. It seems that only DES works
> (yocto/oe-core etc. layers are pretty old though). Is it possible to enable
> SHA512 hashing for root password?
> Just replacing DES password with SHA512 is not enough, could not log in even
> password hash is correct in /etc/shadow file. Noticed that DES is default
> encryption method(in recipes-extended/shadow/...), how can I set it to SHA512,
> or is it even possible with this older set up?

If you are using PAM, you should be able to adjust the settings to enable SHA512
passwords.

I've not done it in a while, but this page might help you find the right settings.

https://wiki.archlinux.org/index.php/SHA_password_hashes

If you find things not working, please let us know.... it likely means they are
not using PAM and using their own password validation.

--Mark

> br,
> 
> 
> jv
> 
> 




More information about the yocto mailing list