[yocto] Set root password with SHA512?

Paul Eggleton paul.eggleton at linux.intel.com
Wed Oct 28 07:38:41 PDT 2015


On Wednesday 28 October 2015 10:07:31 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?

Not sure if this is relevant, but since you mention you're on an old release I 
recall fixing something relating to this a while back:

  http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=68fbbd1008a76d78c7cef141dc06696d27fe2d0c

The first release to have this fix in it was 1.6 (daisy).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list