Re: [yocto] Yocto build to add root password

2019-11-27 Thread andy.p...@sdcsystems.com
Mauro wrote... Actually I'm using: EXTRA_USERS_PARAMS = " usermod -p '$(openssl passwd -6 myrootpassword)' root;" ... But at this point I'm not sure if ${ROOT_PASSWORD} works (I'm using the password wrote on the command, not passed by variable). Switching to the ‘$(openssl …)’ form has

Re: [yocto] Yocto build to add root password

2019-11-27 Thread Mauro
On 27/11/19 12:06, Andy Pont wrote: I tried this out on a build that I am working on for which I needed to add a root password and to create a non-root user with a password. If I use: EXTRA_USERS_PARAMS += "usermod -p `openssl passwd -6 ${ROOT_PASSWORD}` root;” When I try to login to the

Re: [yocto] Yocto build to add root password

2019-11-27 Thread andy.p...@sdcsystems.com
Mauro wrote... pay attention that "openssl passwd ${ROOT_PASSWORD}" command handles only passwords up to 8 characters (the extra characters will be truncated and the generated hash is for the first eight). If you want to use more than 8 characters in the password, use another password

Re: [yocto] Yocto build to add root password

2019-11-25 Thread JH
Thanks Gabriele, Rudolf and Mauro, brilliant. On 11/26/19, Mauro wrote: > On 25/11/19 17:24, Rudolf J Streif wrote: >> Hi, >> >> That's done via the extrausers class in an image recipe. Add this to >> your image recipe: >> >> >> >> inherit extrausers >> >> ROOT_PASSWORD = "secret" >> >>

Re: [yocto] Yocto build to add root password

2019-11-25 Thread Mauro
On 25/11/19 17:24, Rudolf J Streif wrote: Hi, That's done via the extrausers class in an image recipe. Add this to your image recipe: >> inherit extrausers ROOT_PASSWORD = "secret" EXTRA_USERS_PARAMS = "usermod -p `openssl passwd ${ROOT_PASSWORD}` root;" << Make sure you use the

Re: [yocto] Yocto build to add root password

2019-11-25 Thread Rudolf J Streif
Hi, That's done via the extrausers class in an image recipe. Add this to your image recipe: >> inherit extrausers ROOT_PASSWORD = "secret" EXTRA_USERS_PARAMS = "usermod -p `openssl passwd ${ROOT_PASSWORD}` root;" << Make sure you use the backticks (`). :rjs On 11/23/19 2:25 PM, JH

Re: [yocto] Yocto build to add root password

2019-11-25 Thread Gabriele
Hi JH, Take a look at this manual section, last example: https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#ref-classes-extrausers Regards, Gabriele On Mon, Nov 25, 2019 at 11:19 AM JH wrote: > Hi, > > I built a Yocto image and I could log into the root without password, >

[yocto] Yocto build to add root password

2019-11-25 Thread JH
Hi, I built a Yocto image and I could log into the root without password, how could I set up the Yocto build in a receipt to set password for logging? Thank you. Kind regards, - jh -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#47404):