[poky] Default root password without 'debug-tweaks'?

Bryan Evenson bevenson at melinkcorp.com
Thu Jul 25 04:53:20 PDT 2013


Paul,

Thank you for the explanation.  And just earlier this morning, I found this
description of how to change the root password for an image:
http://bec-systems.com/site/967/setting-the-root-password-in-an-openembedded-image.

If this would be a suggested method of performing the task, I could
write a patch for the documentation to add the details about the 
root account being locked and the suggested method for modifying the
root password.  If you could point me to a good place to add this
detail, I'll send out a patch.

Thanks,
Bryan


> -----Original Message-----
> From: Paul Eggleton [mailto:paul.eggleton at linux.intel.com]
> Sent: Thursday, July 25, 2013 7:47 AM
> To: Bryan Evenson
> Cc: poky at yoctoproject.org
> Subject: Re: [poky] Default root password without 'debug-tweaks'?
> 
> Hi Bryan,
> 
> On Wednesday 24 July 2013 14:56:36 Bryan Evenson wrote:
> > I have an image that I built without the 'debug-tweaks' image
> feature,
> > just to confirm that there is a root password.  Sure enough, I need
> to
> > type something in to login as root.  Unfortunately, the default root
> > password for the image is not something obvious, and I haven't been
> > able to track down what the default is set to.
> >
> > Does anyone know what the default root password is set to when you
> > turn off the 'debug-tweaks' image feature?
> 
> When debug-tweaks is not in IMAGE_FEATURES, there is no valid password
> set for root, i.e. the account is effectively locked.
> 
> > While we're at it, what's a good method to set the default root
> > password to a different value for an image?
> 
> One way to do it would be to define a shell function in your image
> recipe (or a class that your image recipes all inherit, if you have
> more than one) that modifies ${IMAGE_ROOTFS}/etc/passwd, and then add
> that function to ROOTFS_POSTPROCESS_COMMAND.
> 
> Cheers,
> Paul
> 
> --
> 
> Paul Eggleton
> Intel Open Source Technology Centre



More information about the poky mailing list