[yocto] Set root password with SHA512?

Paul Eggleton paul.eggleton at linux.intel.com
Thu Oct 29 03:01:25 PDT 2015


(Adding mailing list back onto CC)

I believe that was another issue that got solved a bit more recently:

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

Cheers,
Paul

On Thursday 29 October 2015 11:55:48 Juha Vuorivirta wrote:
> Thank you for answers, I got it working with Paul's fix by adding that line
> to the .bbappend file. One notice though, without debug-tweaks this does
> not work.
> 
> br,
> 
> jv
> 
> 2015-10-28 16:38 GMT+02:00 Paul Eggleton <paul.eggleton at linux.intel.com>:
> > 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=68fbbd1008a76d78
> > c7cef141dc06696d27fe2d0c
> > 
> > The first release to have this fix in it was 1.6 (daisy).
> > 
> > Cheers,
> > Paul
> > 
> > --
> > 
> > Paul Eggleton
> > Intel Open Source Technology Centre

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list